-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
32 lines (31 loc) · 1.07 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: Portfile,v 1.8 2003/03/03 07:09:36 mij Exp $
PortSystem 1.0
name pycurl
version 7.10.3
revision 0
categories net devel python
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
master_sites http://pycurl.sourceforge.net/download/
checksums md5 33c2d6b2edd319877454acae643ae2d4
# libcurl needs version dependency - horrible interim solution
depends_lib bin:XXX:curl bin:python:python
patchfiles setup.py.diff
post-patch {
reinplace "s|@include_dirs@|${prefix}/include|g" "${worksrcpath}/setup.py"
}
configure {}
build {}
build.cmd python setup.py install --prefix=${destroot}${prefix} \
--curl-config=${prefix}/bin/curl-config
install.target {}
install.destroot {}
post-install {
# 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"
}