Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Markus W. Weißmann committed Nov 11, 2003
1 parent 8561fe4 commit ca10815
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
41 changes: 41 additions & 0 deletions 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"
}
20 changes: 20 additions & 0 deletions 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:

0 comments on commit ca10815

Please sign in to comment.