From a145ef78722c1ae6d044154940ec589a03d0fe37 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 14 Nov 2006 21:58:46 +0000 Subject: DESTDIR support. --- lang/py24-html-docs/Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'lang/py24-html-docs/Makefile') diff --git a/lang/py24-html-docs/Makefile b/lang/py24-html-docs/Makefile index a83d8acd106..06bbd6165c4 100644 --- a/lang/py24-html-docs/Makefile +++ b/lang/py24-html-docs/Makefile @@ -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 @@ MAINTAINER= minskim@NetBSD.org 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 @@ NO_BUILD= yes 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" -- cgit v1.2.3