summaryrefslogtreecommitdiff
path: root/ftp/py-curl/Makefile
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2002-10-25 21:55:45 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2002-10-25 21:55:45 +0000
commit6bf5ff1ae6692d68c8eee75e7b3e523af5c92979 (patch)
treec4fdf3a814a3d41d7cc1b01c1e5b69011106ce25 /ftp/py-curl/Makefile
parentMASTER_SITE and WWW site is moved. (diff)
Update to 7.9.8.4
Notes
Notes: svn path=/head/; revision=68825
Diffstat (limited to 'ftp/py-curl/Makefile')
-rw-r--r--ftp/py-curl/Makefile19
1 files changed, 7 insertions, 12 deletions
diff --git a/ftp/py-curl/Makefile b/ftp/py-curl/Makefile
index 1a6930ad94f9..c778bbe24487 100644
--- a/ftp/py-curl/Makefile
+++ b/ftp/py-curl/Makefile
@@ -6,9 +6,9 @@
#
PORTNAME= curl
-PORTVERSION= 7.9.7
+PORTVERSION= 7.9.8.4
CATEGORIES= ftp python
-MASTER_SITES= http://pycurl.sourceforge.net/
+MASTER_SITES= http://pycurl.sourceforge.net/download/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py${PORTNAME}-${PORTVERSION}
@@ -18,18 +18,13 @@ LIB_DEPENDS= curl.2:${PORTSDIR}/ftp/curl
USE_PYTHON= yes
USE_PYDISTUTILS= yes
-PLIST_SUB+= PYTHON_SITELIBDIR="lib/${PYTHON_VERSION}/site-packages"
+USE_REINPLACE= yes
+EXTRACT_AFTER_ARGS= | ${TAR} -xf - 2>/dev/null || true
post-patch:
-.for file in ${REPATCHFILES}
- ${PERL} -pi -e 's@"include"@"${LOCALBASE}/include"],library_dirs=["${LOCALBASE}/lib"@' \
+ ${REINPLACE_CMD} -e 's@\(curl-config --\)@${LOCALBASE}/bin/\1@g' \
+ -e 's@os.path.join("doc", "pycurl")@"share/doc/py-curl"@g' \
+ -e 's@os.path.join("d.*"examples")@"share/examples/py-curl"@g' \
${WRKSRC}/setup.py
-.endfor
-
-.if !defined(NOPORTDOCS)
-post-install:
- ${MKDIR} ${PREFIX}/share/examples/py-curl
- cd ${WRKSRC} && ${INSTALL_DATA} tests/* ${PREFIX}/share/examples/py-curl
-.endif
.include <bsd.port.mk>