summaryrefslogtreecommitdiff
path: root/databases/py-postgresql
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 /databases/py-postgresql
parent3ba79d294eb62e9c75cc32d37b4af7759af8c9d6 (diff)
downloadpkgsrc-ba171a91fab519f587b027c1a2888cb6e3fce049.tar.gz
Add DESTDIR support.
Diffstat (limited to 'databases/py-postgresql')
-rw-r--r--databases/py-postgresql/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/databases/py-postgresql/Makefile b/databases/py-postgresql/Makefile
index 4633c54fd2c..fef69ff27ad 100644
--- a/databases/py-postgresql/Makefile
+++ b/databases/py-postgresql/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.52 2008/04/25 20:39:07 joerg Exp $
+# $NetBSD: Makefile,v 1.53 2008/06/12 02:14:20 joerg Exp $
DISTNAME= PyGreSQL-3.8.1
PKGNAME= ${PYPKGPREFIX}-postgresql-3.8.1
@@ -11,6 +11,8 @@ MAINTAINER= darcy@NetBSD.org
HOMEPAGE= http://www.PyGreSQL.org/
COMMENT= Python interface to PostgreSQL
+PKG_DESTDIR_SUPPORT= user-destdir
+
MAKE_ENV+= MANDIR=${LOCALBASE}/man
MAKE_ENV+= BINDIR=${LOCALBASE}/bin
USE_TOOLS+= gmake
@@ -25,18 +27,18 @@ PYDISTUTILSPKG= yes
PYBINMODULE= yes
DOCDIR= ${PREFIX}/share/doc/${PYPKGPREFIX}-postgresql
+INSTALLATION_DIRS= ${DOCDIR}/tutorial ${DOCDIR}/docs
+
post-install:
- ${INSTALL_DATA_DIR} ${DOCDIR}/tutorial
- ${INSTALL_DATA_DIR} ${DOCDIR}/docs
set -e; \
cd ${WRKSRC}/tutorial; \
for f in *.py; do \
- ${INSTALL_DATA} "$$f" ${DOCDIR}/tutorial; \
+ ${INSTALL_DATA} "$$f" ${DESTDIR}${DOCDIR}/tutorial; \
done
set -e; \
cd ${WRKSRC}/docs; \
for f in *; do \
- ${INSTALL_DATA} "$$f" ${DOCDIR}/docs; \
+ ${INSTALL_DATA} "$$f" ${DESTDIR}${DOCDIR}/docs; \
done
.include "../../lang/python/extension.mk"