mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
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.
This commit is contained in:
parent
236cdad487
commit
401286ff02
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356759
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user