diff options
author | agc <agc> | 1999-04-01 14:07:52 +0000 |
---|---|---|
committer | agc <agc> | 1999-04-01 14:07:52 +0000 |
commit | 0e80196c5fa544a8f2ac9cb799fbe25948361831 (patch) | |
tree | 912abdad11a5164aee0a40a8b94b48bf6cea9e79 /lang | |
parent | 131321b966a315123f6c845f7317d4277e5363a2 (diff) | |
download | pkgsrc-0e80196c5fa544a8f2ac9cb799fbe25948361831.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')
-rw-r--r-- | lang/py-html-docs/Makefile | 8 |
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}) |