From ca10815904a3bc76d7d4fd6f73599d5eaa93e914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20W=2E=20Wei=C3=9Fmann?= Date: Tue, 11 Nov 2003 10:24:46 +0000 Subject: [PATCH] Bug: https://trac.macports.org/ticket/1073 Submitted by: mww@opendarwin.org -renamed from pycurl to py-curl -bumped version git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@3920 d073be05-634f-4543-b044-5fe20cf6d1d6 --- python/py-curl/Portfile | 41 ++++++++++++++++++++++++ python/py-curl/files/patch-setup.py.diff | 20 ++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 python/py-curl/Portfile create mode 100644 python/py-curl/files/patch-setup.py.diff diff --git a/python/py-curl/Portfile b/python/py-curl/Portfile new file mode 100644 index 0000000000000..c0b026e31bace --- /dev/null +++ b/python/py-curl/Portfile @@ -0,0 +1,41 @@ +# $Id: Portfile,v 1.1 2003/11/11 10:24:46 mww Exp $ + +PortSystem 1.0 +name py-curl +version 7.10.8 +categories python net devel +maintainers jpm@opendarwin.org +description python interface to libcurl +long_description Python module interface to the cURL library which is \ + a tool for transferring files with URL syntax, supporting many \ + protocols. +platforms darwin +homepage http://pycurl.sourceforge.net +master_sites ${homepage}/download +distname pycurl-${version} +checksums md5 68663ae7bc73979a2f07e9693aed70ea +patchfiles patch-setup.py.diff + +# libcurl needs version dependency - horrible interim solution +depends_lib bin:XXX:curl \ + bin:python:python + +post-patch { + reinplace "s|@include_dirs@|${prefix}/include|g" \ + ${worksrcpath}/setup.py +} + +use_configure no + +build.cmd python setup.py +build.target build +build.args --curl-config=${prefix}/bin/curl-config + +destroot.cmd ${build.cmd} +destroot.args ${build.args} +destroot.destdir --prefix=${destroot}${prefix} +post-destroot { + # remind user to define/add installed path to python path + ui_msg "\nbe sure the install path is included in your python path:" + ui_msg "setenv PYTHONPATH \$PYTHONPATH:${prefix}/lib/python2.2/site-packages\n" +} diff --git a/python/py-curl/files/patch-setup.py.diff b/python/py-curl/files/patch-setup.py.diff new file mode 100644 index 0000000000000..e33bf3f6fe6d9 --- /dev/null +++ b/python/py-curl/files/patch-setup.py.diff @@ -0,0 +1,20 @@ +--- setup.py Sat Aug 16 19:35:17 2003 ++++ setup.py.new Thu Oct 23 23:56:34 2003 +@@ -16,7 +16,7 @@ + from distutils.util import split_quoted + from distutils.version import LooseVersion + +-include_dirs = [] ++include_dirs = ["/opt/local/include"] + define_macros = [] + library_dirs = [] + libraries = [] +@@ -138,7 +138,7 @@ + if sys.platform == "win32": + datadir = os.path.join("doc", PACKAGE) + else: +- datadir = os.path.join("share", "doc", PACKAGE) ++ datadir = os.path.join("share", "doc", "py-curl") + # + files = ["ChangeLog", "COPYING", "INSTALL", "README", "TODO",] + if files: