1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/ftp/py-curl/Makefile
Martin Wilke 1106da4f6b - Update to 7.19.0
- Resepct now NOPORTDOCS/EXAMPLES

PR:		130927
Submitted by:	Wen Heping <wenheping@gmail.com>
Approved by:	maintainer timeout
2009-02-14 19:07:41 +00:00

55 lines
1.2 KiB
Makefile

# New ports collection makefile for: py-curl
# Date created: 2 July 2001
# Whom: Hye-Shik Chang
#
# $FreeBSD$
#
PORTNAME= curl
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= 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
post-patch:
${REINPLACE_CMD} \
-e 's@data_files=@#data_files=t@' \
${WRKSRC}/setup.py
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>