diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2011-10-18 13:07:20 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2011-10-18 13:07:20 +0000 |
commit | c6b9dd55f37aad0bd2ad042a6a48d375adde79d8 (patch) | |
tree | 13d2b4daa96797e3676a07091f037e0ab6c3dc9d /sysutils/namefix/Makefile | |
parent | 3e56ed3f2193671b5f1c4deca12ddc6d1bc7a849 (diff) | |
download | ports-c6b9dd55f37aad0bd2ad042a6a48d375adde79d8.tar.gz ports-c6b9dd55f37aad0bd2ad042a6a48d375adde79d8.zip |
Notes
Diffstat (limited to 'sysutils/namefix/Makefile')
-rw-r--r-- | sysutils/namefix/Makefile | 49 |
1 files changed, 33 insertions, 16 deletions
diff --git a/sysutils/namefix/Makefile b/sysutils/namefix/Makefile index 128690002c5d..a4bf6ab0ecec 100644 --- a/sysutils/namefix/Makefile +++ b/sysutils/namefix/Makefile @@ -6,36 +6,53 @@ # PORTNAME= namefix -PORTVERSION= 4.0.r11 -PORTREVISION= 2 -DISTVERSION= 4.RC11 +PORTVERSION= 4.0.2 CATEGORIES= sysutils -MASTER_SITES= CENKES # SF -DISTNAME= ${PORTNAME}.${DISTVERSION} +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}.pl/${PORTVERSION} +DISTNAME= ${PORTNAME}.pl_${PORTVERSION} +EXTRACT_SUFX= .7z MAINTAINER= ports@FreeBSD.org COMMENT= Batch renamer +LICENSE= GPLv2 + +EXTRACT_DEPENDS=7z:${PORTSDIR}/archivers/p7zip RUN_DEPENDS= p5-MP3-Tag>=0:${PORTSDIR}/audio/p5-MP3-Tag \ p5-Tk>=0:${PORTSDIR}/x11-toolkits/p5-Tk \ p5-Tk-JComboBox>=0:${PORTSDIR}/x11-toolkits/p5-Tk-JComboBox \ p5-Tk-DynaTabFrame>=0:${PORTSDIR}/x11-toolkits/p5-Tk-DynaTabFrame -WRKSRC= ${WRKDIR}/namefix.pl +EXTRACT_CMD= 7z +EXTRACT_BEFORE_ARGS= x +EXTRACT_AFTER_ARGS= -bd -y >/dev/null 2>&1 + +WRKSRC= ${WRKDIR}/${PORTNAME}.pl NO_BUILD= yes -USE_BZIP2= yes -USE_PERL5= yes -post-extract: - @${FIND} ${WRKSRC} -name '*~' -delete +USE_PERL5_RUN= yes -post-patch: - @${REINPLACE_CMD} -e\ - 's|$$prog_dir/libs/|${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/|'\ - ${WRKSRC}/${PORTNAME}.pl +do-configure: +.for bin in ${PORTNAME} ${PORTNAME}-cli + @${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/${bin}.in + @${ECHO_CMD} 'namefix_dir=${PREFIX}/${SITE_PERL_REL}/${PORTNAME}' >> ${WRKDIR}/${bin}.in + @${ECHO_CMD} 'cd $${namefix_dir}; exec ./${bin}.pl $$@' >> ${WRKDIR}/${bin}.in +.endfor do-install: - @cd ${WRKSRC}/libs/&&${COPYTREE_SHARE} . ${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/ - @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/ +.for bin in ${PORTNAME} ${PORTNAME}-cli + ${INSTALL_SCRIPT} ${WRKDIR}/${bin}.in ${PREFIX}/bin/${bin} +.endfor + @${MKDIR} ${PREFIX}/${SITE_PERL_REL}/${PORTNAME} +.for data in ${PORTNAME} ${PORTNAME}-cli + ${INSTALL_SCRIPT} ${WRKSRC}/${data}.pl ${PREFIX}/${SITE_PERL_REL}/${PORTNAME} +.endfor + ${INSTALL_DATA} ${WRKSRC}/mem.jpg ${PREFIX}/${SITE_PERL_REL}/${PORTNAME} +.for dir in libs libs/cli libs/gui + @${MKDIR} ${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/${dir} + ${INSTALL_DATA} ${WRKSRC}/${dir}/*.pm ${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/${dir} +.endfor + @${MKDIR} ${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/txt + ${INSTALL_DATA} ${WRKSRC}/txt/*.txt ${PREFIX}/${SITE_PERL_REL}/${PORTNAME}/txt .include <bsd.port.mk> |