summaryrefslogtreecommitdiff
path: root/databases/py-PgSQL
diff options
context:
space:
mode:
authorrecht <recht>2004-01-17 13:16:06 +0000
committerrecht <recht>2004-01-17 13:16:06 +0000
commit6ccdf25293cf775326f60855fbb4959c9b2d2396 (patch)
treec4d295de34cdf95ad3d9a9d019e749170b671434 /databases/py-PgSQL
parentf4469b6c3634aaec75fae131561cb0ca4fd658b6 (diff)
downloadpkgsrc-6ccdf25293cf775326f60855fbb4959c9b2d2396.tar.gz
Make this pkgsrc-aware: don't let setup.py search for includes and libs.
Based on a patch provided by Michal Pasternak in PR 23830.
Diffstat (limited to 'databases/py-PgSQL')
-rw-r--r--databases/py-PgSQL/distinfo3
-rw-r--r--databases/py-PgSQL/patches/patch-ab25
2 files changed, 27 insertions, 1 deletions
diff --git a/databases/py-PgSQL/distinfo b/databases/py-PgSQL/distinfo
index 3ff97bf4481..8a006f044a6 100644
--- a/databases/py-PgSQL/distinfo
+++ b/databases/py-PgSQL/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2003/09/09 13:46:24 recht Exp $
+$NetBSD: distinfo,v 1.2 2004/01/17 13:16:06 recht Exp $
SHA1 (pyPgSQL-2.4.tar.gz) = 478135830e0bf4fc9496452ee3b88de4c218488f
Size (pyPgSQL-2.4.tar.gz) = 152139 bytes
SHA1 (patch-aa) = f8db2a753eb76bece779936fae69be60794c0327
+SHA1 (patch-ab) = 3d387e7d20db3024a0761570f1bbbeeb3fc8f674
diff --git a/databases/py-PgSQL/patches/patch-ab b/databases/py-PgSQL/patches/patch-ab
new file mode 100644
index 00000000000..2d7f86f5d7a
--- /dev/null
+++ b/databases/py-PgSQL/patches/patch-ab
@@ -0,0 +1,25 @@
+$NetBSD: patch-ab,v 1.1 2004/01/17 13:16:06 recht Exp $
+
+--- setup.py.orig 2004-01-17 14:10:14.000000000 +0100
++++ setup.py 2004-01-17 14:11:27.000000000 +0100
+@@ -82,7 +82,7 @@
+
+ def main():
+ # Set this to 1 if you need to use your own settings
+- USE_CUSTOM = 0
++ USE_CUSTOM = 1
+
+ # Default settings, may be overriden for specific platforms
+ pypgsql_rt_dirs = None
+@@ -98,8 +98,9 @@
+ "port/strtok.c"]
+
+ if USE_CUSTOM:
+- include_dirs = YOUR_LIST_HERE
+- library_dirs = YOUR_LIST_HERE
++ LOCALBASE = os.environ.get('LOCALBASE', '/usr/pkg')
++ include_dirs = ['%s/include/pgsql' % LOCALBASE]
++ library_dirs = ['%s/lib' % LOCALBASE]
+ elif sys.platform == "linux2":
+ include_dirs = ["/usr/include", "/usr/include/postgresql",
+ "/usr/include/pgsql"]