2001-07-03 09:09:29 +00:00
|
|
|
# New ports collection makefile for: py-curl
|
|
|
|
# Date created: 2 July 2001
|
|
|
|
# Whom: Hye-Shik Chang <perky@python.or.kr>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= curl
|
2006-04-22 05:20:19 +00:00
|
|
|
PORTVERSION= 7.15.2
|
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}
|
|
|
|
|
2002-06-25 07:50:58 +00:00
|
|
|
MAINTAINER= perky@FreeBSD.org
|
2003-02-25 06:25:35 +00:00
|
|
|
COMMENT= Python interface to libcurl
|
2001-07-03 09:09:29 +00:00
|
|
|
|
2004-06-03 22:41:40 +00:00
|
|
|
LIB_DEPENDS= curl.3:${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
|
2005-08-29 14:07:09 +00:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-curl
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-curl
|
2001-07-03 09:09:29 +00:00
|
|
|
|
|
|
|
post-patch:
|
2002-10-25 21:55:45 +00:00
|
|
|
${REINPLACE_CMD} -e 's@\(curl-config --\)@${LOCALBASE}/bin/\1@g' \
|
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
|
|
|
|
2003-01-23 04:44:17 +00:00
|
|
|
.include <bsd.port.mk>
|