Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/libs
In directory
vz-cvs-3.sog:/tmp/cvs-serv17469/10.4/stable/main/finkinfo/10.4-EOL/libs
Modified Files:
libplist-py.info libplist.info
Log Message:
liblist: fix python bindings.
Index: libplist.info
===================================================================
RCS file:
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/libs/libplist.info,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- libplist.info 14 Jan 2012 18:58:02 -0000 1.3
+++ libplist.info 3 Jul 2012 22:28:43 -0000 1.4
@@ -1,6 +1,6 @@
Package: libplist
Version: 1.8
-Revision: 1
+Revision: 3
Description: Library for handling apple .plist files
License: GPL/LGPL
@@ -19,12 +19,23 @@
Source: http://www.libimobiledevice.org/downloads/%n-%v.tar.bz2
Source-MD5: 2a9e0258847d50f9760dc3ece25f4dc6
+# Patch Phase: Fixes taken from git, should be included in 1.9
+PatchScript: <<
+#!/bin/sh -ev
+ sed -i.bak 's|child) return;|child) return -1;|g' libcnary/node.c
+ sed -i.bak 's|*data;|*data = NULL;|g' libcnary/node.c
+ sed -i.bak 's|strlen(strval)|strlen((const char*)strval)|g' src/xplist.c
+ sed -i.bak 's|buf) return;|buf) return NULL;|g' src/base64.c
+ sed -i.bak 's|= 0) return;|= 0) return NULL;|g' src/base64.c
+ sed -i.bak 's|line,|(const char*)line,|g' src/base64.c
+<<
+
# Compile Phase:
CompileScript: <<
#!/bin/sh -ev
mkdir build
cd build
- cmake .. -DCMAKE_INSTALL_PREFIX=%p -DENABLE_SWIG=OFF
+ cmake .. -DCMAKE_INSTALL_PREFIX=%p -DENABLE_SWIG=OFF -DENABLE_CYTHON=OFF
make
<<
Index: libplist-py.info
===================================================================
RCS file:
/cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/libs/libplist-py.info,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- libplist-py.info 14 Jan 2012 18:58:02 -0000 1.3
+++ libplist-py.info 3 Jul 2012 22:28:43 -0000 1.4
@@ -1,8 +1,8 @@
Info2: <<
Package: libplist-py%type_pkg[python]
-Type: python (2.5 2.6 2.7)
+Type: python (2.6 2.7)
Version: 1.8
-Revision: 1
+Revision: 3
Description: Python bindings for libplist
License: GPL/LGPL
@@ -13,6 +13,7 @@
pkgconfig (>= 0.9.0-1),
libxml2 (>= 2.6.32-1),
swig,
+ cython-py%type_pkg[python],
libplist (>= %v-1)
<<
Depends: python%type_pkg[python], libplist1-shlibs (>= %v-1)
@@ -22,6 +23,17 @@
Source: http://www.libimobiledevice.org/downloads/libplist-%v.tar.bz2
Source-MD5: 2a9e0258847d50f9760dc3ece25f4dc6
+# Patch Phase: Fixes taken from git, should be included in 1.9
+PatchScript: <<
+#!/bin/sh -ev
+ sed -i.bak 's|child) return;|child) return -1;|g' libcnary/node.c
+ sed -i.bak 's|*data;|*data = NULL;|g' libcnary/node.c
+ sed -i.bak 's|strlen(strval)|strlen((const char*)strval)|g' src/xplist.c
+ sed -i.bak 's|buf) return;|buf) return NULL;|g' src/base64.c
+ sed -i.bak 's|= 0) return;|= 0) return NULL;|g' src/base64.c
+ sed -i.bak 's|line,|(const char*)line,|g' src/base64.c
+<<
+
# Compile Phase:
CompileScript: <<
#!/bin/sh -ev
@@ -29,6 +41,7 @@
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=%p \
+ -DCYTHON_EXECUTABLE=%p/bin/cython-py%type_pkg[python] \
-DPYTHON_EXECUTABLE=%p/bin/python%type_raw[python] \
-DPYTHON_INCLUDE_DIR=%p/include/python%type_raw[python] \
-DPYTHON_LIBRARY=%p/lib/python%type_raw[python]/config/libpython%type_raw[python].dylib
@@ -42,7 +55,8 @@
mkdir -p -m 755 %i/$SWIGLIB_PATH
cp swig/plist.i %i/$SWIGLIB_PATH
cd build
- make -C swig install DESTDIR=%d
+ make -C swig install DESTDIR=%d
+ make -C cython install DESTDIR=%d
<<
DocFiles: AUTHORS COPYING* README
@@ -60,6 +74,7 @@
DescPort: <<
The automatic detection of python does not work. It easily returns a mix of
system and fink paths of the python executable, the include and the lib folder.
+Cython is only available for python2.6 and 2.7
<<
Homepage: http://www.libimobiledevice.org/
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs