diff options
author | joerg <joerg@pkgsrc.org> | 2009-02-16 19:36:42 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-02-16 19:36:42 +0000 |
commit | 6aac19f18fdc04e7a1ac4e850b4b56e5131d00e0 (patch) | |
tree | 55497ce37f9ac6dcbd1c1f71325fb360e8480c19 /databases/py-psycopg | |
parent | ff84f1ba119f68cb16d6385062fa2fc56bb39409 (diff) | |
download | pkgsrc-6aac19f18fdc04e7a1ac4e850b4b56e5131d00e0.tar.gz |
DESTDIR support
Diffstat (limited to 'databases/py-psycopg')
-rw-r--r-- | databases/py-psycopg/Makefile | 6 | ||||
-rw-r--r-- | databases/py-psycopg/distinfo | 4 | ||||
-rw-r--r-- | databases/py-psycopg/patches/patch-aa | 17 |
3 files changed, 20 insertions, 7 deletions
diff --git a/databases/py-psycopg/Makefile b/databases/py-psycopg/Makefile index c27a312575f..2ad57327425 100644 --- a/databases/py-psycopg/Makefile +++ b/databases/py-psycopg/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.31 2009/02/09 21:09:20 joerg Exp $ +# $NetBSD: Makefile,v 1.32 2009/02/16 19:36:42 joerg Exp $ # DISTNAME= psycopg-1.1.21 @@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://initd.org/projects/psycopg1/ COMMENT= PostgreSQL database adapter for Python +PKG_DESTDIR_SUPPORT= user-destdir + GNU_CONFIGURE= YES CONFIGURE_ARGS+= --with-python=${PYTHONBIN:Q} CONFIGURE_ARGS+= \ @@ -20,6 +22,8 @@ BUILD_TARGET= default PY_PATCHPLIST= yes +INSTALLATION_DIRS= ${PYSITELIB} + .include "../../lang/python/extension.mk" .include "../../time/py-mxDateTime/buildlink3.mk" .include "../../mk/pgsql.buildlink3.mk" diff --git a/databases/py-psycopg/distinfo b/databases/py-psycopg/distinfo index b69dbcab857..6107d4f06ba 100644 --- a/databases/py-psycopg/distinfo +++ b/databases/py-psycopg/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.6 2005/11/11 23:10:19 joerg Exp $ +$NetBSD: distinfo,v 1.7 2009/02/16 19:36:42 joerg Exp $ SHA1 (psycopg-1.1.21.tar.gz) = 02d8a8b5dd682306117896c7c63a9a1b518997b6 RMD160 (psycopg-1.1.21.tar.gz) = de74a70b16353f69de7e898059a7a1d8418ad2ee Size (psycopg-1.1.21.tar.gz) = 213753 bytes -SHA1 (patch-aa) = 6423305271831d3d493dc3e47b42b5641f9149a0 +SHA1 (patch-aa) = c83311b3b52c4b28d5c139b8655b7c6cff70d2fd diff --git a/databases/py-psycopg/patches/patch-aa b/databases/py-psycopg/patches/patch-aa index 8a2dd97d427..99f86b8dc3f 100644 --- a/databases/py-psycopg/patches/patch-aa +++ b/databases/py-psycopg/patches/patch-aa @@ -1,8 +1,8 @@ -$NetBSD: patch-aa,v 1.2 2004/04/16 17:21:34 drochner Exp $ +$NetBSD: patch-aa,v 1.3 2009/02/16 19:36:42 joerg Exp $ ---- Makefile.pre.in.orig 2003-08-01 12:12:38.000000000 +0200 -+++ Makefile.pre.in 2003-08-01 18:33:45.000000000 +0200 -@@ -119,7 +119,7 @@ +--- Makefile.pre.in.orig 2005-10-01 02:14:45.000000000 +0200 ++++ Makefile.pre.in +@@ -120,7 +120,7 @@ LIBC= @LIBC@ RANLIB= @RANLIB@ MACHDEP= @MACHDEP@ SO= @SO@ @@ -11,3 +11,12 @@ $NetBSD: patch-aa,v 1.2 2004/04/16 17:21:34 drochner Exp $ BLDSHARED= @LDSHARED@ CCSHARED= @CCSHARED@ LINKFORSHARED= @LINKFORSHARED@ +@@ -179,7 +179,7 @@ install-shmods: $(SHAREDMODS) + @if [ -n "$(SHAREDMODS)" ]; then \ + for mod in $(SHAREDMODS); do \ + echo " install -m 555 $$mod $(PY_MOD_DIR)"; \ +- $(INSTALL) @INSTALLOPTS@ -m 555 $$mod $(PY_MOD_DIR); \ ++ $(INSTALL) @INSTALLOPTS@ -m 555 $$mod ${DESTDIR}$(PY_MOD_DIR); \ + done; \ + fi + |