Add files from parent branch HEAD:
[pkgsrc.git] / databases / py-PgSQL / patches / patch-ab
1 $NetBSD$
2
3 --- setup.py.orig       2004-01-17 14:10:14.000000000 +0100
4 +++ setup.py    2004-01-17 14:11:27.000000000 +0100
5 @@ -82,7 +82,7 @@
6  
7  def main():
8      # Set this to 1 if you need to use your own settings
9 -    USE_CUSTOM = 0
10 +    USE_CUSTOM = 1
11  
12      # Default settings, may be overriden for specific platforms
13      pypgsql_rt_dirs = None
14 @@ -98,8 +98,9 @@
15         "port/strtok.c"]
16  
17      if USE_CUSTOM:
18 -       include_dirs = YOUR_LIST_HERE
19 -       library_dirs = YOUR_LIST_HERE
20 +       LOCALBASE = os.environ.get('LOCALBASE', '/usr/pkg')
21 +       include_dirs = ['%s/include/pgsql' % LOCALBASE]
22 +       library_dirs = ['%s/lib' % LOCALBASE]
23      elif sys.platform == "linux2":
24         include_dirs = ["/usr/include", "/usr/include/postgresql",
25             "/usr/include/pgsql"]