1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

textproc/no-hunspell: use explicit UNZIP_CMD (requires infozip)

The tool needed for extract is zip.  However UNZIP_CMD explicitly refers
to zipinfo, and UNZIP_NATIVE_CMD isn't available on DragonFly.  To future-
proof the port, convert EXTRACT_CMD and EXTRACT_BEFORE_ARGS to UNZIP_CMD
and the default zip extraction args.  The (small) price is a new
dependency on infozip.  Covered by general infrastructure blanket.
This commit is contained in:
John Marino 2014-05-30 10:14:40 +00:00
parent 58e144b477
commit d0011b8cb1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355815

View File

@ -12,7 +12,7 @@ DIST_SUBDIR= ${PORTNAME}
MAINTAINER= office@FreeBSD.org
COMMENT= Norwegian (Nynorsk and Bokmaal) hunspell dictionaries
USES= zip
USES= zip:infozip
NO_BUILD= yes
PLIST_FILES= %%DATADIR%%/nb_NO.aff \
@ -23,8 +23,8 @@ PLIST_DIRSTRY= %%DATADIR%%
post-extract:
@${MKDIR} ${WRKSRC}
@${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKDIR}/nb_NO.zip -d ${WRKSRC}
@${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${WRKDIR}/nn_NO.zip -d ${WRKSRC}
@${UNZIP_CMD} -qo ${WRKDIR}/nb_NO.zip -d ${WRKSRC}
@${UNZIP_CMD} -qo ${WRKDIR}/nn_NO.zip -d ${WRKSRC}
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}/