From 45c88dd8e01c3b644c8717ce8b3f884d024813f4 Mon Sep 17 00:00:00 2001 From: rillig Date: Sat, 4 Feb 2006 23:47:56 +0000 Subject: 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. --- time/cardboard-schedule/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'time') 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 -- cgit v1.2.3