the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: postgresql-python-py%type_pkg[python]
Version: 8.2.21
Revision: 2
Distribution: (%type_pkg[python] = 23) 10.3, (%type_pkg[python] = 23) 10.4, (%type_pkg[python] = 24) 10.5
Description: PostgreSQL Python tools
Type: python(2.3 2.4 2.5 2.6)
License: BSD
Maintainer: Benjamin Reed
Depends: <<
postgresql82-shlibs (>= %v-1),
python%type_pkg[python],
python-mx-py%type_pkg[python],
readline5-shlibs
<<
BuildDepends: <<
fink (>= 0.30.0-1),
fink-mirrors (>= 0.28.7.1-2),
postgresql82-dev (>= %v-1),
python%type_pkg[python],
bison,
readline5,
system-openssl-dev
<<
Conflicts: <<
postgresql-python-py%type_pkg[python],
postgresql-ssl-python-py%type_pkg[python] (<< %v-%r),
postgresql-python,
postgresql-ssl-python
<<
Replaces: <<
postgresql-python-py%type_pkg[python],
postgresql-ssl-python-py%type_pkg[python] (<< %v-%r),
postgresql-python,
postgresql-ssl-python
<<
Source: mirror:postgresql:source/v%v/postgresql-%v.tar.bz2
Source-MD5: 6f61c428e6c4acf8619a5534d0c283ac
Source2: ftp://ftp.pygresql.org/pub/distrib/PyGreSQL-4.0.tgz
Source2-MD5: 1aca50e59ff4cc56abe9452a9a49c5ff
PatchScript: sed -e 's|@INSTPREFIX@|%p|g' -e 's|python2.1|python%type_raw[python]|g' < %{PatchFile} | patch -p1
PatchFile: postgresql82.patch
PatchFile-MD5: 964107a0f601e15937e79df17ffea814
SetCPPFLAGS: -DHAVE_OPTRESET -I%p/include/postgresql -I%p/include
SetLIBS: -L%p/lib
NoSetCPPFLAGS: true
NoSetLDFLAGS: true
UseMaxBuildJobs: true
ConfigureParams: --prefix=%p --with-docdir=%p/share/doc --mandir=%p/share/man --enable-multibyte --enable-recode --with-CXX --without-perl --with-python --with-openssl --with-libraries=%p/lib --with-includes=%p/include --without-tcl --without-java --enable-odbc --with-pam --with-rendezvous
CompileScript: <<
#!/bin/sh -ev
export lt_cv_sys_max_cmd_len=65536
export ac_cv_path_PYTHON=%p/bin/python%type_raw[python]
export CPPFLAGS="-I%p/lib/system-openssl/include -I%p/include -DHAVE_OPTRESET -fno-common"
export LDFLAGS="-L%p/lib/system-openssl/lib -L%p/lib"
./configure %c
pushd src/pl/plpython
make BE_DLLLIBS="-bundle_loader %p/bin/postgres"
popd
pushd ../PyGreSQL-4.0
python%type_raw[python] setup.py build
popd
<<
InstallScript: <<
#!/bin/sh -ev
pushd src/pl/plpython
make install DESTDIR=%d INSTALLSITEMAN3DIR=%i/share/man/man3
popd
pushd ../PyGreSQL-4.0
python%type_raw[python] setup.py install --root="%d"
install -d -m 755 %i/share/doc/%N
install -c -m 755 tutorial/* docs/*.txt %i/share/doc/%N/
popd
mv %i/lib/postgresql-8.2/plpython.so %i/lib/postgresql-8.2/plpython-%type_pkg[python].so
<<
DocFiles: COPYRIGHT HISTORY INSTALL README
SplitOff: <<
Package: postgresql-ssl-python-py%type_pkg[python]
Depends: postgresql-python-py%type_pkg[python] (>= %v-%r)
DocFiles: COPYRIGHT HISTORY INSTALL README
<<
PostInstScript: <<
update-alternatives --install %p/lib/postgresql-8.2/plpython.so postgresql-python-plpython.so %p/lib/postgresql-8.2/plpython-%type_pkg[python].so %type_pkg[python]
cat <
To be able to use this (plpython) in PostgreSQL, you will need to
start your database:
sudo %p/bin/pgsql.sh start
...and then run:
sudo -u postgres %p/bin/createlang plpythonu template1
*** WARNING ***
END
<<
PreRmScript: <<
if [ "$1" != "upgrade" ]; then
update-alternatives --remove postgresql-python-plpython.so %p/lib/postgresql-8.2/plpython-%type_pkg[python].so
if [ ! -f %p/lib/postgresql-8.2/plpython.so ]; then
sudo -u postgres %p/bin/droplang plpython template1 >/dev/null 2>&1 || :
fi
fi
<<
Homepage: http://www.postgresql.org/
DescDetail: <<
To be able to use this (plpython) in PostgreSQL, you will need to
start your database:
sudo %p/bin/pgsql.sh start
...and then run:
sudo -u postgres %p/bin/createlang plpythonu template1
<<
<<
--- PyGreSQL-3.5/setup.py Sun Aug 29 20:12:24 2004
+++ PyGreSQL-3.5-new/setup.py Mon Oct 25 12:02:33 2004
@@ -36,8 +36,8 @@
optional_libs=[ 'libpqdll', 'wsock32', 'advapi32' ]
data_files = [ 'libpq.dll' ]
else:
- include_dirs=[getconfig ('includedir'),getconfig('includedir-server')]
- library_dirs=[getconfig('libdir')]
+ include_dirs=['@INSTPREFIX@/include/postgresql','@INSTPREFIX@/include',getconfig ('includedir'),getconfig('includedir-server')]
+ library_dirs=['@INSTPREFIX@/lib/postgresql-7.4', '@INSTPREFIX@/lib',getconfig('libdir')]
optional_libs=['pq']
data_files = []