sip-py stable port information

Info2: <<

Package: sip-py%type_pkg[python]
Version: 4.13.2
Revision: 1
Distribution: (%type_pkg[python] = 24) 10.4, (%type_pkg[python] = 24) 10.5
Type: python (2.4 2.5 2.6 2.7 3.1 3.2)
Source: http://www.riverbankcomputing.com/static/Downloads/sip4/sip-%v.tar.gz
Source-MD5: 5a12ea8e8a09b879ed2b3817e30fbc84

GCC: 4.0
Depends: python%type_pkg[python]
BuildDepends: fink (>= 0.24.12-1)
BuildDependsOnly: false

PatchFile: %{ni}.patch
PatchFile-MD5: 884908ac4512cf62dbcba9e46cac64eb

UseMaxBuildJobs: true
CompileScript: <<
%p/bin/python%type_raw[python] configure.py \
-p macx-g++ \
-v %p/share/sip-py%type_pkg[python] \
INCDIR_OPENGL=/usr/X11R6/include \
LFLAGS_PLUGIN="-bundle `%p/bin/python%type_raw[python]-config --ldflags`"
perl -pi -e 's,exe = \"pythonw\",exe = \"%p/bin/python%type_raw[python]\",g' sipconfig.py
make
<<

InstallScript: <<
make install DESTDIR=%d
<<
DocFiles: LICENSE* NEWS README

SplitOff: <<
Package: %N-bin
Depends: sip-py%type_pkg[python]
Conflicts: <<
sip-py23-bin, sip-py24-bin, sip-py25-bin, sip-py26-bin, sip-py27-bin, sip-py31-bin
<<
Replaces: <<
sip-py24 (<= 4.3.1-3), sip-py23 (<= 4.3.1-3), sip (<< 4.3.1-1006),
sip-py23-bin, sip-py24-bin, sip-py25-bin, sip-py26-bin, sip-py27-bin, sip-py31-bin
<<
Files: bin
DocFiles: LICENSE* NEWS README
License: GPL
<<

DescPackaging: <<
Disable requirement of framework-built python on darwin.
Don't over-ride specs/ for plugin compiler flags on darwin.

Previously maintained by Dave Reiser
<<
Description: Create Python bindings for C and C++ Libs
Homepage: http://www.riverbankcomputing.co.uk/software/sip/intro
License: GPL
Maintainer: Daniel Johnson

<<

sip-py stable port .patch

diff -ru sip-4.12.1.orig/configure.py sip-4.12.1/configure.py
--- sip-4.12.1.orig/configure.py 2011-01-22 08:47:21.000000000 -0500
+++ sip-4.12.1/configure.py 2011-02-21 15:01:28.000000000 -0500
@@ -209,7 +209,7 @@
else:
lib_dir = sysconfig.get_python_lib(plat_specific=1, standard_lib=1)

- plat_py_lib_dir = lib_dir + "/config"
+ plat_py_lib_dir = sysconfig.get_config_var('LIBPL')
plat_bin_dir = sys.exec_prefix + "/bin"
plat_sip_dir = sys.prefix + "/share/sip"

diff -ru sip-4.12.1.orig/siputils.py sip-4.12.1/siputils.py
--- sip-4.12.1.orig/siputils.py 2011-01-22 08:45:38.000000000 -0500
+++ sip-4.12.1/siputils.py 2011-02-21 15:00:43.000000000 -0500
@@ -1183,7 +1183,7 @@
if self.generator == "UNIX":
dst = "$(DESTDIR)" + dst

- mfile.write("\t@%s %s " % (self.chkdir, _quote(dst)))
+ mfile.write("\t%s %s " % (self.chkdir, _quote(dst)))

if self.generator == "UNIX":
mfile.write("|| ")
@@ -1265,14 +1265,7 @@
mfile.write("\n" + target + ":\n")

for d in self._subdirs:
- if self.generator == "MINGW":
- mfile.write("\t@$(MAKE) -C %s%s\n" % (d, tname))
- elif self.generator == "UNIX":
- mfile.write("\t@(cd %s; $(MAKE)%s)\n" % (d, tname))
- else:
- mfile.write("\tcd %s\n" % d)
- mfile.write("\t$(MAKE)%s\n" % tname)
- mfile.write("\t@cd ..\n")
+ mfile.write("\t$(MAKE) -C %s%s\n" % (d, tname))


class PythonModuleMakefile(Makefile):
@@ -1418,10 +1411,7 @@
# can handle extension modules that are bundles or dynamic
# libraries, but python.org versions need bundles (unless built
# with DYNLOADFILE=dynload_shlib.o).
- if sys.platform == "darwin":
- lflags_plugin = ["-bundle"]
- else:
- lflags_plugin = self.optional_list("LFLAGS_PLUGIN")
+ lflags_plugin = self.optional_list("LFLAGS_PLUGIN")

if not lflags_plugin:
lflags_plugin = self.optional_list("LFLAGS_SHLIB")
@@ -1430,7 +1420,7 @@

self.LFLAGS.extend(self.optional_list(lflags_console))

- if sys.platform == "darwin":
+ if 0:
# 'real_prefix' exists if virtualenv is being used.
dl = getattr(sys, 'real_prefix', sys.exec_prefix).split(os.sep)

sip-py _unstable_ port .patch