aboutsummaryrefslogtreecommitdiff
path: root/ftp/py-curl/Makefile
blob: 8c66e9dc57400cb16df6715821ca7e49882bbafc (plain) (blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# New ports collection makefile for:	py-curl
# Date created:				2 July 2001
# Whom:					Hye-Shik Chang
#
# $FreeBSD$
#

PORTNAME=	curl
PORTVERSION=	7.19.0
PORTREVISION=	1
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.6:${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>