diff options
author | Patrick Li <pat@FreeBSD.org> | 2002-04-01 17:27:29 +0000 |
---|---|---|
committer | Patrick Li <pat@FreeBSD.org> | 2002-04-01 17:27:29 +0000 |
commit | 33f2b10e79a5e866eb965f94193dff6fea3acf50 (patch) | |
tree | d319d157aefeb79f5d906a1357f29e8273ec64de /ftp/py-curl | |
parent | eda2982e615630d60b0e5c6b1c365383c85851f4 (diff) | |
download | ports-33f2b10e79a5e866eb965f94193dff6fea3acf50.tar.gz ports-33f2b10e79a5e866eb965f94193dff6fea3acf50.zip |
Notes
Diffstat (limited to 'ftp/py-curl')
-rw-r--r-- | ftp/py-curl/Makefile | 21 | ||||
-rw-r--r-- | ftp/py-curl/distinfo | 2 | ||||
-rw-r--r-- | ftp/py-curl/pkg-plist | 20 |
3 files changed, 18 insertions, 25 deletions
diff --git a/ftp/py-curl/Makefile b/ftp/py-curl/Makefile index 9ee7dd7a48ec..9d73d134fe37 100644 --- a/ftp/py-curl/Makefile +++ b/ftp/py-curl/Makefile @@ -6,7 +6,7 @@ # PORTNAME= curl -PORTVERSION= 0.4.4 +PORTVERSION= 0.4.5 CATEGORIES= ftp python MASTER_SITES= http://pycurl.sourceforge.net/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -18,30 +18,23 @@ BUILD_DEPENDS= ${PYDISTUTILS} LIB_DEPENDS= curl.2:${PORTSDIR}/ftp/curl USE_PYTHON= yes -PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \ - SHARE_SUBDIR=${SHARE_SUBDIR} -SHARE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME} +PLIST_SUB+= PYTHON_SITELIBDIR="lib/${PYTHON_VERSION}/site-packages" PYDIST_SETUP= cd ${WRKSRC} && ${PYTHON_CMD} setup.py -REPATCH= cd ${WRKSRC} && ${SED} -REPATCHSUBST= -e 's@"include"@"${LOCALBASE}/include"],library_dirs=["${LOCALBASE}/lib"@' -REPATCHFILES= setup.py -TMPSUFFIX= .temp - post-patch: .for file in ${REPATCHFILES} - ${REPATCH} ${REPATCHSUBST} ${file} > ${file}${TMPSUFFIX} && \ - ${CAT} ${file}${TMPSUFFIX} > ${file} + ${PERL} -pi -e 's@"include"@"${LOCALBASE}/include"],library_dirs=["${LOCALBASE}/lib"@' \ + ${WRKSRC}/setup.py .endfor do-build: ${PYDIST_SETUP} build do-install: - ${PYDIST_SETUP} install + ${PYDIST_SETUP} install -c -O1 --prefix=${PREFIX} .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/examples/${SHARE_SUBDIR} - cd ${WRKSRC} && ${INSTALL_DATA} tests/* ${PREFIX}/share/examples/${SHARE_SUBDIR} + ${MKDIR} ${PREFIX}/share/examples/py-curl + cd ${WRKSRC} && ${INSTALL_DATA} tests/* ${PREFIX}/share/examples/py-curl .endif .include <bsd.port.mk> diff --git a/ftp/py-curl/distinfo b/ftp/py-curl/distinfo index 89db9bb97815..24efda68f9be 100644 --- a/ftp/py-curl/distinfo +++ b/ftp/py-curl/distinfo @@ -1 +1 @@ -MD5 (pycurl-0.4.4.tar.gz) = 11bc292b8241ac20239e636be8004460 +MD5 (pycurl-0.4.5.tar.gz) = 799437ed00c0cdf3611fb16940cb8f4a diff --git a/ftp/py-curl/pkg-plist b/ftp/py-curl/pkg-plist index 25e56980986f..b0f84e0b7d7a 100644 --- a/ftp/py-curl/pkg-plist +++ b/ftp/py-curl/pkg-plist @@ -1,11 +1,11 @@ -%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test.py -%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_cb.py -%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_getinfo.py -%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/basicfirst.py -%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/basicfirst2.py -%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_xmlrpc.py -%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_gtk.py -%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_xmlrpc2.py -%%PORTDOCS%%@dirrm share/examples/%%SHARE_SUBDIR%% -@cwd %%LOCALBASE%% %%PYTHON_SITELIBDIR%%/pycurl.so +%%PORTDOCS%%share/examples/py-curl/basicfirst.py +%%PORTDOCS%%share/examples/py-curl/basicfirst2.py +%%PORTDOCS%%share/examples/py-curl/test.py +%%PORTDOCS%%share/examples/py-curl/test_cb.py +%%PORTDOCS%%share/examples/py-curl/test_getinfo.py +%%PORTDOCS%%share/examples/py-curl/test_gtk.py +%%PORTDOCS%%share/examples/py-curl/test_stringio.py +%%PORTDOCS%%share/examples/py-curl/test_xmlrpc.py +%%PORTDOCS%%share/examples/py-curl/test_xmlrpc2.py +%%PORTDOCS%%@dirrm share/examples/py-curl |