aboutsummaryrefslogtreecommitdiff
path: root/ftp/py-curl/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-02-14 19:07:41 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-02-14 19:07:41 +0000
commit1106da4f6bf299fd83df445b08d0312df665ba81 (patch)
tree520dc56edcfd454bdc1c928d1e06c6f75fbf476f /ftp/py-curl/Makefile
parent6fa622039c1c87fadc6223e6466741c65305e1fd (diff)
downloadports-1106da4f6bf299fd83df445b08d0312df665ba81.tar.gz
ports-1106da4f6bf299fd83df445b08d0312df665ba81.zip
Notes
Diffstat (limited to 'ftp/py-curl/Makefile')
-rw-r--r--ftp/py-curl/Makefile37
1 files changed, 24 insertions, 13 deletions
diff --git a/ftp/py-curl/Makefile b/ftp/py-curl/Makefile
index 58ca91055cc2..71ba13c51066 100644
--- a/ftp/py-curl/Makefile
+++ b/ftp/py-curl/Makefile
@@ -6,38 +6,49 @@
#
PORTNAME= curl
-PORTVERSION= 7.16.4
-PORTREVISION= 1
+PORTVERSION= 7.19.0
CATEGORIES= ftp python
MASTER_SITES= http://pycurl.sourceforge.net/download/ \
http://pycurl.sourceforge.net/download/00-OLD-VERSIONS/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py${PORTNAME}-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= wenheping@gmail.com
COMMENT= Python interface to libcurl
LIB_DEPENDS= curl.5:${PORTSDIR}/ftp/curl
+DOCSDIR= ${PREFIX}/share/doc/py-curl
+EXAMPLESDIR= ${PREFIX}/share/examples/py-curl
+DATADIR= ${PREFIX}/share/py-curl
+
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= pycurl
USE_OPENSSL= yes
-DOCSDIR= ${PREFIX}/share/doc/py-curl
-EXAMPLESDIR= ${PREFIX}/share/examples/py-curl
-
post-patch:
${REINPLACE_CMD} \
- -e 's@^\(include_dirs = \).*@\1["${LOCALBASE}/include"]@' \
- -e 's@^\(PACKAGE = \).*@\1"py-curl"@' \
- -e 's@\(os.path.join(\)datadir, "examples")@\1"share/examples/py-curl")@' \
- -e 's@name=PACKAGE@name="pycurl"@' \
+ -e 's@data_files=@#data_files=t@' \
${WRKSRC}/setup.py
-pre-install:
-.if defined(NOPORTDOCS)
- ${RM} -fr ${WRKSRC}/doc
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.for i in ChangeLog COPYING COPYING2 INSTALL README TODO
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
+.endif
+
+.if !defined(NOPORTEXAMPLES)
+ ${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
+.endif
+
+.if !defined(NOPORDATA)
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/tests/* ${DATADIR}
.endif
.include <bsd.port.mk>