summaryrefslogtreecommitdiff
path: root/math/py-Scientific-doc
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 17:57:17 +0000
committerjlam <jlam>2008-03-04 17:57:17 +0000
commit227db4fd65c1798f1f06219f896b8a2add93ce0c (patch)
treeea772f1017a149bdf8c86107c24d16246695614e /math/py-Scientific-doc
parent47512d21954e6312a4cd43b04b4c2594596e697b (diff)
downloadpkgsrc-227db4fd65c1798f1f06219f896b8a2add93ce0c.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'math/py-Scientific-doc')
-rw-r--r--math/py-Scientific-doc/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/math/py-Scientific-doc/Makefile b/math/py-Scientific-doc/Makefile
index b62ca8d8ef0..1b8e36e4671 100644
--- a/math/py-Scientific-doc/Makefile
+++ b/math/py-Scientific-doc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2006/03/04 21:30:08 jlam Exp $
+# $NetBSD: Makefile,v 1.7 2008/03/04 18:12:59 jlam Exp $
DISTNAME= ScientificPython-2.4.5
PKGNAME= py-${DISTNAME:S/Python/-doc/}
@@ -12,6 +12,8 @@ COMMENT= Python modules for scientific computing
CONFLICTS+= py-Scientific-*
+PKG_DESTDIR_SUPPORT= user-destdir
+
NO_BUILD= yes
EGDIR= ${PREFIX}/share/examples/py-Scientific
@@ -19,12 +21,12 @@ DOCDIR= ${PREFIX}/share/doc/py-Scientific
HTMLDIR= ${PREFIX}/share/doc/html/py-Scientific
do-install:
- ${INSTALL_DATA_DIR} ${DOCDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
cd ${WRKSRC} && ${INSTALL_DATA} README LICENSE \
- Doc/PDF/manual.pdf ${DOCDIR}
- ${INSTALL_DATA_DIR} ${HTMLDIR}
- cd ${WRKSRC}/Doc/HTML && ${PAX} -rw -pp -pm . ${HTMLDIR}
- ${INSTALL_DATA_DIR} ${EGDIR}
- cd ${WRKSRC}/Examples && ${PAX} -rw -pp -pm . ${EGDIR}
+ Doc/PDF/manual.pdf ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${HTMLDIR}
+ cd ${WRKSRC}/Doc/HTML && ${PAX} -rw -pp -pm . ${DESTDIR}${HTMLDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
+ cd ${WRKSRC}/Examples && ${PAX} -rw -pp -pm . ${DESTDIR}${EGDIR}
.include "../../mk/bsd.pkg.mk"