summaryrefslogtreecommitdiff
path: root/time/cardboard-schedule/Makefile
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-02-04 23:47:56 +0000
committerrillig <rillig@pkgsrc.org>2006-02-04 23:47:56 +0000
commitc98948ad013bd2a6445687e856702b397eddc11f (patch)
tree4bebaa3d1228a0c4d41ea35109c5e17e0c48e7f1 /time/cardboard-schedule/Makefile
parent16ab9ef19f3a565adbf29bd153fbba80b6ca476f (diff)
downloadpkgsrc-c98948ad013bd2a6445687e856702b397eddc11f.tar.gz
Made extraction possible even if unzip(1) is not in the PATH. Instead of
hiding bugs by using unzip || true, test if the needed file has been extracted.
Diffstat (limited to 'time/cardboard-schedule/Makefile')
-rw-r--r--time/cardboard-schedule/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/time/cardboard-schedule/Makefile b/time/cardboard-schedule/Makefile
index 26875b56af5..f91ac9bbdec 100644
--- a/time/cardboard-schedule/Makefile
+++ b/time/cardboard-schedule/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2006/02/04 23:39:50 rillig Exp $
+# $NetBSD: Makefile,v 1.17 2006/02/04 23:47:56 rillig Exp $
#
DISTNAME= cs113ins
@@ -12,15 +12,17 @@ HOMEPAGE= http://cardboard.nu/downloads/
COMMENT= Project and resource management software implemented in Java/Swing
USE_X11BASE= yes
-DEPENDS+= unzip-[0-9]*:../../archivers/unzip
RESTRICTED= "License prohibits redistribution on CDROM"
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
-USE_TOOLS+= gtar
+USE_TOOLS+= gtar unzip
-EXTRACT_CMD= cd ${WRKDIR} && unzip -x ${DOWNLOADED_DISTFILE}
+EXTRACT_CMD= cd ${WRKDIR} && { \
+ ${UNZIP_CMD} -x ${DOWNLOADED_DISTFILE} \
+ || ${TEST} -f InstallerData/Installer.zip; \
+ }
WRKSRC= ${WRKDIR}
CSFILES= cs/images/Logo2.gif \
@@ -34,7 +36,7 @@ CSFILES= cs/images/Logo2.gif \
INSTALLATION_DIRS= bin
post-extract:
- cd ${WRKDIR} && unzip -x InstallerData/Installer.zip
+ cd ${WRKDIR} && ${UNZIP_CMD} -x InstallerData/Installer.zip
do-build:
${SED} -e s,@PREFIX@,${PREFIX},g < ${FILESDIR}/csched.sh > ${WRKDIR}/csched.tmp