summaryrefslogtreecommitdiff
path: root/math/py-ephem
diff options
context:
space:
mode:
authorjoerg <joerg>2008-06-12 02:14:13 +0000
committerjoerg <joerg>2008-06-12 02:14:13 +0000
commit39d7fb93432416d872ed34e0025741cc93068c06 (patch)
treec12b9c282e2706cb6bac87456615dfdf2b256e55 /math/py-ephem
parentcce8b72ae5b66d3a54ac565ef8ac6780597301bc (diff)
downloadpkgsrc-39d7fb93432416d872ed34e0025741cc93068c06.tar.gz
Add DESTDIR support.
Diffstat (limited to 'math/py-ephem')
-rw-r--r--math/py-ephem/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/math/py-ephem/Makefile b/math/py-ephem/Makefile
index dcc9640fe74..5b1a205915d 100644
--- a/math/py-ephem/Makefile
+++ b/math/py-ephem/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2008/04/25 20:39:10 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2008/06/12 02:14:36 joerg Exp $
#
DISTNAME= pyephem-3.7b
@@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.rhodesmill.org/brandon/projects/pyephem.html
COMMENT= Scientific-grade astronomical computations for Python
+PKG_DESTDIR_SUPPORT= user-destdir
+
# See ../../x11/xephem/Makefile.
LICENSE= xephem-license
RESTRICTED= Combined work is both GPL and non-Free
@@ -18,9 +20,10 @@ NO_BIN_ON_CDROM= ${RESTRICTED}
PYDISTUTILSPKG= true
+INSTALLATION_DIRS= share/doc/${PKGNAME}
+
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${PKGNAME}
- ${INSTALL} ${WRKSRC}/doc/pyephem-manual.html ${PREFIX}/share/doc/${PKGNAME}
+ ${INSTALL} ${WRKSRC}/doc/pyephem-manual.html ${DESTDIR}${PREFIX}/share/doc/${PKGNAME}
.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"