1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/ftp/py-curl/Makefile
Hye-Shik Chang 4420c1d8b3 - Update to 7.16.4 [1]
- Change maintainer to ports@

PR:		122328 [1]
Submitted by:	edwin [1]
2008-05-30 05:21:25 +00:00

43 lines
1016 B
Makefile

# New ports collection makefile for: py-curl
# Date created: 2 July 2001
# Whom: Hye-Shik Chang
#
# $FreeBSD$
#
PORTNAME= curl
PORTVERSION= 7.16.4
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
COMMENT= Python interface to libcurl
LIB_DEPENDS= curl.4:${PORTSDIR}/ftp/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"@' \
${WRKSRC}/setup.py
pre-install:
.if defined(NOPORTDOCS)
${RM} -fr ${WRKSRC}/doc
.endif
.include <bsd.port.mk>