diff options
author | max <max@FreeBSD.org> | 2005-05-11 11:09:29 +0800 |
---|---|---|
committer | max <max@FreeBSD.org> | 2005-05-11 11:09:29 +0800 |
commit | c75eb4691ddead40b95c1d0fbace7f54d9e83af0 (patch) | |
tree | 435265d372ca186634c67791f0704133a5a3e7ad /textproc/nfbtrans | |
parent | c1a36d9fd707f65f13c85a9400586038e4a2ddd1 (diff) | |
download | freebsd-ports-gnome-c75eb4691ddead40b95c1d0fbace7f54d9e83af0.tar.gz freebsd-ports-gnome-c75eb4691ddead40b95c1d0fbace7f54d9e83af0.tar.zst freebsd-ports-gnome-c75eb4691ddead40b95c1d0fbace7f54d9e83af0.zip |
Do the unzipping of some files in the post-extract target instead of installation
time so that USE_ZIP takes care of the dependency to unzip.
Diffstat (limited to 'textproc/nfbtrans')
-rw-r--r-- | textproc/nfbtrans/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/textproc/nfbtrans/Makefile b/textproc/nfbtrans/Makefile index e943f5abba4b..d42e8301b004 100644 --- a/textproc/nfbtrans/Makefile +++ b/textproc/nfbtrans/Makefile @@ -28,14 +28,18 @@ MAKEFILE= makefile BROKEN= "Does not install on ia64 or amd64 (segfault during install)" .endif +post-extract: + @${UNZIP_CMD} -q -L -a -o ${WRKSRC}/tables.zip -d ${WRKDIR}/tables + @${UNZIP_CMD} -q -L -a -o ${WRKSRC}/spanish.zip -d ${WRKDIR}/spanish + do-install: ${MKDIR} ${PREFIX}/share/nfbtrans/tables ${INSTALL_PROGRAM} ${WRKSRC}/nfbtrans ${PREFIX}/bin .for f in braille.tab back.tab english.dic nfbtrans.cnf menu.cnf ${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/share/nfbtrans .endfor - ${UNZIP_CMD} -q -L -a -o ${WRKSRC}/tables.zip -d ${PREFIX}/share/nfbtrans/tables - ${UNZIP_CMD} -q -L -a -o ${WRKSRC}/spanish.zip -d ${PREFIX}/share/nfbtrans/spanish + @${CP} -pR ${WRKDIR}/tables ${PREFIX}/share/nfbtrans + @${CP} -pR ${WRKDIR}/spanish ${PREFIX}/share/nfbtrans .if !defined(NOPORTDOCS) @${ECHO} '~0 ~-pw=80 ~-ls=99 ~-pl=56 ~-if=12 ~-fc=. ~o5 ~p- ~-ip=0 ~-oc=1' \ | ${CAT} - ${WRKSRC}/nfbtrans.fmt > ${WRKSRC}/nfbprint.fmt |