2001-07-03 09:09:29 +00:00
|
|
|
# New ports collection makefile for: py-curl
|
|
|
|
# Date created: 2 July 2001
|
2008-05-30 05:21:25 +00:00
|
|
|
# Whom: Hye-Shik Chang
|
2001-07-03 09:09:29 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= curl
|
2008-05-30 05:21:25 +00:00
|
|
|
PORTVERSION= 7.16.4
|
2001-07-03 09:09:29 +00:00
|
|
|
CATEGORIES= ftp python
|
2003-11-10 12:35:06 +00:00
|
|
|
MASTER_SITES= http://pycurl.sourceforge.net/download/ \
|
|
|
|
http://pycurl.sourceforge.net/download/00-OLD-VERSIONS/
|
2001-07-03 09:09:29 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= py${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2008-05-30 05:21:25 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-25 06:25:35 +00:00
|
|
|
COMMENT= Python interface to libcurl
|
2001-07-03 09:09:29 +00:00
|
|
|
|
2006-12-13 12:41:35 +00:00
|
|
|
LIB_DEPENDS= curl.4:${PORTSDIR}/ftp/curl
|
2001-07-03 09:09:29 +00:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
2002-04-29 14:07:49 +00:00
|
|
|
USE_PYDISTUTILS= yes
|
2007-07-30 09:42:28 +00:00
|
|
|
PYDISTUTILS_PKGNAME= pycurl
|
2005-08-29 14:07:09 +00:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
|
2007-08-04 11:41:30 +00:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-curl
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-curl
|
2001-07-03 09:09:29 +00:00
|
|
|
|
|
|
|
post-patch:
|
2007-01-05 22:11:04 +00:00
|
|
|
${REINPLACE_CMD} \
|
2003-01-21 19:09:55 +00:00
|
|
|
-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"@' \
|
2002-04-01 17:27:29 +00:00
|
|
|
${WRKSRC}/setup.py
|
2001-07-03 09:09:29 +00:00
|
|
|
|
2007-01-05 22:11:04 +00:00
|
|
|
pre-install:
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
${RM} -fr ${WRKSRC}/doc
|
|
|
|
.endif
|
|
|
|
|
2003-01-23 04:44:17 +00:00
|
|
|
.include <bsd.port.mk>
|