summaryrefslogtreecommitdiff
path: root/math/py-ephem
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-06-12 02:14:13 +0000
committerjoerg <joerg@pkgsrc.org>2008-06-12 02:14:13 +0000
commitba171a91fab519f587b027c1a2888cb6e3fce049 (patch)
treec12b9c282e2706cb6bac87456615dfdf2b256e55 /math/py-ephem
parent3ba79d294eb62e9c75cc32d37b4af7759af8c9d6 (diff)
downloadpkgsrc-ba171a91fab519f587b027c1a2888cb6e3fce049.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"