Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/libs/pythonmods
In directory vz-cvs-3.sog:/tmp/cvs-serv19484

Added Files:
        pycurl-py.info pycurl-py.patch 
Log Message:
Move to 10.7.


--- NEW FILE: pycurl-py.patch ---
diff -ru pycurl-7.19.0.orig/setup.py pycurl-7.19.0/setup.py
--- pycurl-7.19.0.orig/setup.py 2008-09-09 13:40:34.000000000 -0400
+++ pycurl-7.19.0/setup.py      2008-09-30 09:45:54.000000000 -0400
@@ -97,7 +97,8 @@
         else:
             extra_compile_args.append(e)
     libs = split_quoted(
-        os.popen("'%s' --libs" % CURL_CONFIG).read()+\
+        os.popen("'%s' --libs" % CURL_CONFIG).read())
+    static_libs = split_quoted(
         os.popen("'%s' --static-libs" % CURL_CONFIG).read())
     for e in libs:
         if e[:2] == "-l":
@@ -110,6 +111,12 @@
             library_dirs.append(e[2:])
         else:
             extra_link_args.append(e)
+    for e in static_libs:
+        if e[:2] == "-l":
+            if e[2:] == 'ssl':
+                define_macros.append(('HAVE_CURL_OPENSSL', 1))
+            if e[2:] == 'gnutls':
+                define_macros.append(('HAVE_CURL_GNUTLS', 1))
     for e in split_quoted(os.popen("'%s' --features" % CURL_CONFIG).read()):
         if e == 'SSL':
             define_macros.append(('HAVE_CURL_SSL', 1))

--- NEW FILE: pycurl-py.info ---
Info2: <<
Package: pycurl-py%type_pkg[python]
Version: 7.19.0
Revision: 1
Type: python (2.6 2.7)
Description: Python bindings for libcurl
DescPackaging: <<
 setup.py installs all docs--so no need for DocFiles--but
 in a non-versioned directory, so we need to rename
 %i/share/doc/pycurl to %i/share/doc/pycurl-py%type_pkg[python].
 
 Patch setup.py to not link in static libs.
<<
Maintainer: Daniel Johnson <[email protected]>
License: GPL
Homepage: http://pycurl.sourceforge.net/

Source: http://pycurl.sourceforge.net/download/pycurl-%v.tar.gz
Source-MD5: 919d58fe37e69fe87ce4534d8b6a1c7b

PatchFile: %{Ni}.patch
PatchFile-MD5: 0da644701607d84870b3cc6126457b41

Depends: python%type_pkg[python], libcurl4-shlibs (>= 7.18.2)
BuildDepends: libcurl4 (>= 7.18.2), system-openssl-dev, fink (>= 0.24.12)

NoSetCPPFLAGS: true
NoSetLDFLAGS: true
SetLDFLAGS: -L%p/lib/system-openssl/lib -lcrypto

CompileScript: <<
 %p/bin/python%type_raw[python] setup.py build --curl-config=%p/bin/curl-config 
--openssl-dir=%p/lib/system-openssl
<<
InstallScript: <<
 %p/bin/python%type_raw[python] setup.py install --root %d
 /bin/mv %i/share/doc/pycurl %i/share/doc/pycurl-py%type_pkg[python]
<<
InfoTest: <<
        TestScript: %p/bin/python%type_raw[python] tests/test_internals.py -q 
|| exit 2
<<
<<


------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to