summaryrefslogtreecommitdiff
path: root/japanese/edict/Makefile
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-06-06 10:13:55 +0000
committerJohn Marino <marino@FreeBSD.org>2014-06-06 10:13:55 +0000
commit401286ff02edb084edb02161a6d584c3d9d93126 (patch)
treeae43aa7515025133581ca44f13f639d9ccb7f890 /japanese/edict/Makefile
parent- Fix plist files referencing stagedir by adding USE_PERL+=fixpacklist (diff)
japanese/edict: Remove unnecessary extract target and dependency
This port never needed a roll-your-own extract target; all it needed was the EXTRACT_ONLY definition. While touching this unmaintained port, change it to use TAR instead of UNZIP_CMD during installation. Poudriere-verified to install the same way as before. And pet portlint a bit.
Notes
Notes: svn path=/head/; revision=356759
Diffstat (limited to 'japanese/edict/Makefile')
-rw-r--r--japanese/edict/Makefile23
1 files changed, 7 insertions, 16 deletions
diff --git a/japanese/edict/Makefile b/japanese/edict/Makefile
index 8a256f1e20e1..a524838ca6a1 100644
--- a/japanese/edict/Makefile
+++ b/japanese/edict/Makefile
@@ -16,12 +16,11 @@ MASTER_SITES= \
ftp://ftp.monash.edu.au/pub/nihongo/
EXTRACT_SUFX=
DISTFILES= ${DICTFILES} ${SRCFILES} ${DOCFILES}
+EXTRACT_ONLY= ${SRCFILES}
MAINTAINER= ports@FreeBSD.org
COMMENT= Japanese-English dictionaries with access and maintenance utilities
-BUILD_DEPENDS= ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
-
DIST_SUBDIR= edict
DICTFILES= edict.gz edicth enamdict.gz compdic.gz \
@@ -53,7 +52,7 @@ DOCSDIR= ${PREFIX}/share/doc/xjdic
NO_WRKSUBDIR= yes
-sparc64_BROKEN= Fails to install on sparc64 with error 2
+sparc64_BROKEN= Fails on sparc64 during installation with error 2
OPTIONS_DEFINE= DOCS
@@ -61,25 +60,17 @@ post-patch:
@${GREP} -l '^main' ${WRKSRC}/*.c | ${XARGS} ${REINPLACE_CMD} \
-e '/argv/s/unsigned//'
-do-extract:
- @${RM} -rf ${WRKDIR}
- @${MKDIR} ${WRKDIR}
-.for file in ${SRCFILES}
- (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
- ${_DISTDIR}/${file} ${EXTRACT_AFTER_ARGS})
-.endfor
-
do-install:
(cd ${WRKDIR} && ${INSTALL_PROGRAM} ${BINFILES} ${STAGEDIR}${PREFIX}/bin)
@${MKDIR} ${STAGEDIR}${DATADIR}
${CP} ${_DISTDIR}/edicth ${STAGEDIR}${DATADIR}
-.for file in edict enamdict compdic j_places kanjidic kanjd212 geodic
- ${GZIP_CMD} -cd ${_DISTDIR}/${file}.gz > ${STAGEDIR}${DATADIR}/${file}
+.for f in edict enamdict compdic j_places kanjidic kanjd212 geodic
+ ${GZIP_CMD} -cd ${_DISTDIR}/${f}.gz > ${STAGEDIR}${DATADIR}/${f}
.endfor
-.for file in ediclsd3 lawgledt lingdic pandpdic aviation findic mktdic \
+.for f in ediclsd3 lawgledt lingdic pandpdic aviation findic mktdic \
4jword3_edict concrete
- ${UNZIP_CMD} -o ${_DISTDIR}/${file}.zip ${file:S|edict|edict.euc|} \
- -d ${STAGEDIR}${DATADIR}
+ cd ${STAGEDIR}${DATADIR} && \
+ ${TAR} -xf ${_DISTDIR}/${f}.zip ${f:S|edict|edict.euc|}
.endfor
.for dict in ${DICTFILES:S|_edict|_edict.euc|}
(cd ${STAGEDIR}${DATADIR} && ${STAGEDIR}${PREFIX}/bin/xjdxgen ${dict:R})