pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/py-PgSQL Make this pkgsrc-aware: don't let s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2120bed1d9f8
branches:  trunk
changeset: 466395:2120bed1d9f8
user:      recht <recht%pkgsrc.org@localhost>
date:      Sat Jan 17 13:16:06 2004 +0000

description:
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:

 databases/py-PgSQL/distinfo         |   3 ++-
 databases/py-PgSQL/patches/patch-ab |  25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r e93560b9a39c -r 2120bed1d9f8 databases/py-PgSQL/distinfo
--- a/databases/py-PgSQL/distinfo       Sat Jan 17 12:58:10 2004 +0000
+++ b/databases/py-PgSQL/distinfo       Sat Jan 17 13:16:06 2004 +0000
@@ -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 -r e93560b9a39c -r 2120bed1d9f8 databases/py-PgSQL/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/py-PgSQL/patches/patch-ab       Sat Jan 17 13:16:06 2004 +0000
@@ -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"]



Home | Main Index | Thread Index | Old Index