pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/time/cardboard-schedule Made extraction possible even ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ae256a9263f8
branches: trunk
changeset: 507590:ae256a9263f8
user: rillig <rillig%pkgsrc.org@localhost>
date: Sat Feb 04 23:47:56 2006 +0000
description:
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:
time/cardboard-schedule/Makefile | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (39 lines):
diff -r 529451a6eef1 -r ae256a9263f8 time/cardboard-schedule/Makefile
--- a/time/cardboard-schedule/Makefile Sat Feb 04 23:39:50 2006 +0000
+++ b/time/cardboard-schedule/Makefile Sat Feb 04 23:47:56 2006 +0000
@@ -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 @@
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 @@
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
Home |
Main Index |
Thread Index |
Old Index