summaryrefslogtreecommitdiff
path: root/lang/py23-html-docs
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 16:38:11 +0000
committerjlam <jlam>2008-03-04 16:38:11 +0000
commit983300b3f559a9ed30543fe7f65213acf187c0bb (patch)
tree3b3e69289dd17a1030bb7365e1cb146dbfea41bd /lang/py23-html-docs
parent59cb8affaf92e8a5b9f11529f3cfcdc95b4585c3 (diff)
downloadpkgsrc-983300b3f559a9ed30543fe7f65213acf187c0bb.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'lang/py23-html-docs')
-rw-r--r--lang/py23-html-docs/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/lang/py23-html-docs/Makefile b/lang/py23-html-docs/Makefile
index 42884978a81..f158af24098 100644
--- a/lang/py23-html-docs/Makefile
+++ b/lang/py23-html-docs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2006/03/04 21:29:55 jlam Exp $
+# $NetBSD: Makefile,v 1.6 2008/03/04 16:38:12 jlam Exp $
#
DISTNAME= html-2.3.3
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.python.org/doc/
COMMENT= HTML Documentation for Python
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/Python-Docs-2.3.3/
DIST_SUBDIR= python
@@ -21,11 +23,11 @@ HTMLDIR= share/doc/html/python2.3
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/${HTMLDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${HTMLDIR}
${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
- cd ${WRKSRC} && ${PAX} -rw -pe [a-z]* ${PREFIX}/${HTMLDIR}
- cd ${PREFIX} && ${FIND} ${HTMLDIR} -type f -print >>${PLIST_SRC}
- cd ${PREFIX} && ${FIND} -d ${HTMLDIR} -type d -print | \
+ cd ${WRKSRC} && ${PAX} -rw -pe [a-z]* ${DESTDIR}${PREFIX}/${HTMLDIR}
+ cd ${DESTDIR}${PREFIX} && ${FIND} ${HTMLDIR} -type f -print >>${PLIST_SRC}
+ cd ${DESTDIR}${PREFIX} && ${FIND} -d ${HTMLDIR} -type d -print | \
${SED} -e "s/^/@dirrm /" >>${PLIST_SRC}
.include "../../mk/bsd.pkg.mk"