Explicitly specify unzip as a build dependency, do not just hope it will

be left over from the extract stage. [1]
Clean up the build/install interaction - remove a slew of files at
the build stage, do not modify the work tree during the installation.

Reported by:	pointyhat via kris [1]
This commit is contained in:
Peter Pentchev 2005-11-01 00:16:47 +00:00
parent d5d6dba8e3
commit 01408def1b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=146874

View File

@ -14,6 +14,8 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
MAINTAINER= roam@FreeBSD.org
COMMENT= A simple HTML-based presentation system
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
USE_ZIP= yes
WRKSRC= ${WRKDIR}
@ -23,11 +25,11 @@ S5_SUBDIRS= pix primer s5-blank ui
do-build:
cd ${WRKSRC} && ${UNZIP_CMD} s5-blank.zip
${SED} -e "s,/usr/local,${PREFIX}," ${FILESDIR}/s5-blank.sh > ${WRKDIR}/s5-blank.sh
${FIND} ${WRKDIR} -type f -name .DS_Store -delete
do-install:
${MKDIR} ${S5_DIR}
${CP} ${WRKDIR}/*.html ${S5_DIR}/
${FIND} ${WRKDIR} -type f -name .DS_Store -delete
.for i in ${S5_SUBDIRS}
${CP} -Rp ${WRKDIR}/$i/ ${S5_DIR}/$i/
.endfor