summaryrefslogtreecommitdiff
path: root/lang/py-html-docs
diff options
context:
space:
mode:
authoragc <agc>1999-04-01 14:07:52 +0000
committeragc <agc>1999-04-01 14:07:52 +0000
commit9a7c454ba681cc22753b8d4c26f74b2e0fed2ae3 (patch)
tree912abdad11a5164aee0a40a8b94b48bf6cea9e79 /lang/py-html-docs
parent60da1ece312a07574750a2c97a062f550fa84256 (diff)
downloadpkgsrc-9a7c454ba681cc22753b8d4c26f74b2e0fed2ae3.tar.gz
Rewrite the extraction commands to be more intuitive.
In the vast majority of cases, nothing has changed (i.e. .tgz, .tar.gz, and .tar.bz2). EXTRACT_USING_PAX can be set as before. For custom extractions, instead of using EXTRACT_BEFORE_ARGS, EXTRACT_AFTER_ARGS and EXTRACT_CMD, simply set EXTRACT_CMD to be the command needed to decompress and extract the lements from the archive. ${DOWNLOADED_DISTFILE} can be used to reference the distfile(s). e.g. for compressed shars, where previously there was: EXTRACT_CMD= ${GZCAT} EXTRACT_BEFORE_ARGS= EXTRACT_AFTER_ARGS= |sh now use: EXTRACT_CMD= ${GZCAT} ${DOWNLOADED_DISTFILE} | ${SH}
Diffstat (limited to 'lang/py-html-docs')
-rw-r--r--lang/py-html-docs/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/lang/py-html-docs/Makefile b/lang/py-html-docs/Makefile
index 6a618fd16a6..ffe6f6f0f56 100644
--- a/lang/py-html-docs/Makefile
+++ b/lang/py-html-docs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 1998/08/20 15:17:08 tsarna Exp $
+# $NetBSD: Makefile,v 1.3 1999/04/01 14:07:54 agc Exp $
#
DISTNAME= html-1.5.1
@@ -10,7 +10,6 @@ EXTRACT_SUFX= .tgz
MAINTAINER= tsarna@netbsd.org
HOMEPAGE= http://www.python.org/doc/
-EXTRACT_ONLY=
NO_CONFIGURE= yes
NO_BUILD= yes
@@ -20,10 +19,7 @@ PLIST_SRC= ${WRKDIR}/.PLIST_SRC
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/${HTMLDIR}
${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
- (cd ${PREFIX}/${HTMLDIR}; \
- ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
- ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
- ${EXTRACT_AFTER_ARGS})
+ (cd ${WRKSRC}; pax -r -w -v -p -e . ${PREFIX}/${HTMLDIR})
(cd ${PREFIX}; find ${HTMLDIR} -type f -print >>${PLIST_SRC})
(cd ${PREFIX}; find -d ${HTMLDIR} -type d -print | \
${SED} -e "s/^/@dirrm /" >>${PLIST_SRC})