blob: 13d24a2ecbfb7fcab7a4a82b893e9262a8c5f062 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# New ports collection makefile for: py-curl
# Date created: 2 July 2001
# Whom: Hye-Shik Chang <perky@python.or.kr>
#
# $FreeBSD$
#
PORTNAME= curl
PORTVERSION= 0.4.5
CATEGORIES= ftp python
MASTER_SITES= http://pycurl.sourceforge.net/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py${PORTNAME}-${PORTVERSION}
MAINTAINER= perky@fallin.lv
LIB_DEPENDS= curl.2:${PORTSDIR}/ftp/curl
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PLIST_SUB+= PYTHON_SITELIBDIR="lib/${PYTHON_VERSION}/site-packages"
post-patch:
.for file in ${REPATCHFILES}
${PERL} -pi -e 's@"include"@"${LOCALBASE}/include"],library_dirs=["${LOCALBASE}/lib"@' \
${WRKSRC}/setup.py
.endfor
.if !defined(NOPORTDOCS)
post-install:
${MKDIR} ${PREFIX}/share/examples/py-curl
cd ${WRKSRC} && ${INSTALL_DATA} tests/* ${PREFIX}/share/examples/py-curl
.endif
.include <bsd.port.mk>
|