Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= curl |
8 |
PORTNAME= curl |
9 |
PORTVERSION= 0.4.4 |
9 |
PORTVERSION= 0.4.5 |
10 |
CATEGORIES= ftp python |
10 |
CATEGORIES= ftp python |
11 |
MASTER_SITES= http://pycurl.sourceforge.net/ |
11 |
MASTER_SITES= http://pycurl.sourceforge.net/ |
12 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
12 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
Lines 18-47
Link Here
|
18 |
LIB_DEPENDS= curl.2:${PORTSDIR}/ftp/curl |
18 |
LIB_DEPENDS= curl.2:${PORTSDIR}/ftp/curl |
19 |
|
19 |
|
20 |
USE_PYTHON= yes |
20 |
USE_PYTHON= yes |
21 |
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \ |
21 |
PLIST_SUB+= PYTHON_SITELIBDIR="lib/${PYTHON_VERSION}/site-packages" |
22 |
SHARE_SUBDIR=${SHARE_SUBDIR} |
|
|
23 |
SHARE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME} |
24 |
PYDIST_SETUP= cd ${WRKSRC} && ${PYTHON_CMD} setup.py |
22 |
PYDIST_SETUP= cd ${WRKSRC} && ${PYTHON_CMD} setup.py |
25 |
|
23 |
|
26 |
REPATCH= cd ${WRKSRC} && ${SED} |
|
|
27 |
REPATCHSUBST= -e 's@"include"@"${LOCALBASE}/include"],library_dirs=["${LOCALBASE}/lib"@' |
28 |
REPATCHFILES= setup.py |
29 |
TMPSUFFIX= .temp |
30 |
|
31 |
post-patch: |
24 |
post-patch: |
32 |
.for file in ${REPATCHFILES} |
25 |
.for file in ${REPATCHFILES} |
33 |
${REPATCH} ${REPATCHSUBST} ${file} > ${file}${TMPSUFFIX} && \ |
26 |
${PERL} -pi -e 's@"include"@"${LOCALBASE}/include"],library_dirs=["${LOCALBASE}/lib"@' \ |
34 |
${CAT} ${file}${TMPSUFFIX} > ${file} |
27 |
${WRKSRC}/setup.py |
35 |
.endfor |
28 |
.endfor |
36 |
|
29 |
|
37 |
do-build: |
30 |
do-build: |
38 |
${PYDIST_SETUP} build |
31 |
${PYDIST_SETUP} build |
39 |
|
32 |
|
40 |
do-install: |
33 |
do-install: |
41 |
${PYDIST_SETUP} install |
34 |
${PYDIST_SETUP} install -c -O1 --prefix=${PREFIX} |
42 |
.if !defined(NOPORTDOCS) |
35 |
.if !defined(NOPORTDOCS) |
43 |
${MKDIR} ${PREFIX}/share/examples/${SHARE_SUBDIR} |
36 |
${MKDIR} ${PREFIX}/share/examples/py-curl |
44 |
cd ${WRKSRC} && ${INSTALL_DATA} tests/* ${PREFIX}/share/examples/${SHARE_SUBDIR} |
37 |
cd ${WRKSRC} && ${INSTALL_DATA} tests/* ${PREFIX}/share/examples/py-curl |
45 |
.endif |
38 |
.endif |
46 |
|
39 |
|
47 |
.include <bsd.port.mk> |
40 |
.include <bsd.port.mk> |