pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/py24-html-docs DESTDIR support.
details: https://anonhg.NetBSD.org/pkgsrc/rev/79ac6f5107b3
branches: trunk
changeset: 521600:79ac6f5107b3
user: joerg <joerg%pkgsrc.org@localhost>
date: Tue Nov 14 21:58:46 2006 +0000
description:
DESTDIR support.
diffstat:
lang/py24-html-docs/Makefile | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r 55594f2f16e9 -r 79ac6f5107b3 lang/py24-html-docs/Makefile
--- a/lang/py24-html-docs/Makefile Tue Nov 14 21:22:41 2006 +0000
+++ b/lang/py24-html-docs/Makefile Tue Nov 14 21:58:46 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2006/08/17 19:53:59 perry Exp $
+# $NetBSD: Makefile,v 1.4 2006/11/14 21:58:46 joerg Exp $
#
DISTNAME= html-2.4.3
@@ -11,6 +11,8 @@
HOMEPAGE= http://www.python.org/doc/
COMMENT= HTML Documentation for Python
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/Python-Docs-2.4.3/
DIST_SUBDIR= python
@@ -20,12 +22,13 @@
HTMLDIR= share/doc/html/python2.4
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
+INSTALLATION_DIRS= ${HTMLDIR}
+
do-install:
- ${INSTALL_DATA_DIR} ${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"
Home |
Main Index |
Thread Index |
Old Index