summaryrefslogtreecommitdiff
path: root/lang/py23-html-docs
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 16:38:11 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 16:38:11 +0000
commit8bf74c5086e810635eb42ee6260913f330977167 (patch)
tree3b3e69289dd17a1030bb7365e1cb146dbfea41bd /lang/py23-html-docs
parent563238a90334d8045ade559a74f641eba13dbc99 (diff)
downloadpkgsrc-8bf74c5086e810635eb42ee6260913f330977167.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"