pynifti-py stable port information

Info2: <<

Package: pynifti-py%type_pkg[python]
Version: 0.20080710.1
Revision: 1
Distribution: (%type_pkg[python] = 24) 10.4, (%type_pkg[python] = 24) 10.5
Type: python (2.4 2.5 2.6)
Maintainer: Tyler Tarabula
HomePage: http://www.brainimagers.info
License: BSD
Description: SWIG wrappers for the NIfTI library
DescDetail: <<
PyNIfTI aims to provide easy access to NIfTI images from within Python.
It uses SWIG-generated wrappers for the NIfTI reference library and provides
the NiftiImage class for Python-style access to the image data.

While PyNIfTI is not yet complete (i.e. doesn't support everything the C
library can do), it already provides access to the most important features
of the NIfTI-1 data format and libniftiio capabilities.
<<
Depends: nifticlib (>= 1.0.0), python%type_pkg[python], swig, numpy-py%type_pkg[python]
BuildDepends: fink (>= 0.24.12)

# Unpack Phase:
Source: mirror:sourceforge:niftilib/pynifti_%v.tar.gz
Source-MD5: b634d2186eaca7d20815ae2fb1c23d96
SourceDirectory: pynifti-%v

# Patch Phase:
PatchFile: pynifti-py.patch
PatchFile-MD5: f70cddebc9d35fc9c8604515f9486196
PatchScript: <<
sed -e 's|@PREFIX@|%p|g' %{PatchFile} | patch -p1
rm -rf bin
<<
#Compile Phase:
CompileScript: python%type_raw[python] setup.py build
DocFiles: AUTHOR Changelog PKG-INFO doc

#Install Phase:
InstallScript: python%type_raw[python] setup.py install --root=%d

<<

pynifti-py stable port .patch

diff -urN pynifti-0.20080710.1/setup.py pynifti-0.20080710.1.patched/setup.py
--- pynifti-0.20080710.1/setup.py 2008-07-10 10:27:28.000000000 -0400
+++ pynifti-0.20080710.1.patched/setup.py 2008-08-18 18:15:06.000000000 -0400
@@ -35,21 +35,15 @@
# determine what libs to link against
link_libs = [ 'niftiio' ]

-# we only know that Debian niftiio is properly linked with znzlib and zlib
-# use local niftilib copy on all others
-if not os.path.exists('/etc/debian_version'):
- link_libs += ['znz', 'z']
- include_dirs.append(os.path.join('3rd', 'nifticlibs'))
- library_dirs.append(os.path.join('3rd', 'nifticlibs'))
-else:
- include_dirs.append('/usr/include/nifti')
-
swig_opts = []
defines = []
-# win32 stuff
-if sys.platform.startswith('win'):
- swig_opts.append('-DWIN32')
- defines.append(('WIN32', None))
+
+# fink stuff
+include_dirs.append('@PREFIX@/include')
+library_dirs.append('@PREFIX@/lib')
+link_libs.append('znz')
+link_libs.append('z')
+swig_opts.append('-I@PREFIX@/include')

# Notes on the setup
# Version scheme is:

pynifti-py _unstable_ port .patch