View | Details | Raw Unified | Return to bug 36612
Collapse All | Expand All

(-)py-curl/Makefile (-14 / +7 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	curl
8
PORTNAME=	curl
9
PORTVERSION=	0.4.4
9
PORTVERSION=	0.4.5
10
CATEGORIES=	ftp python
10
CATEGORIES=	ftp python
11
MASTER_SITES=	http://pycurl.sourceforge.net/
11
MASTER_SITES=	http://pycurl.sourceforge.net/
12
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
12
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 18-47 Link Here
18
LIB_DEPENDS=	curl.2:${PORTSDIR}/ftp/curl
18
LIB_DEPENDS=	curl.2:${PORTSDIR}/ftp/curl
19
19
20
USE_PYTHON=	yes
20
USE_PYTHON=	yes
21
PLIST_SUB+=	PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \
21
PLIST_SUB+=	PYTHON_SITELIBDIR="lib/${PYTHON_VERSION}/site-packages"
22
		SHARE_SUBDIR=${SHARE_SUBDIR}
23
SHARE_SUBDIR=	${PKGNAMEPREFIX}${PORTNAME}
24
PYDIST_SETUP=	cd ${WRKSRC} && ${PYTHON_CMD} setup.py
22
PYDIST_SETUP=	cd ${WRKSRC} && ${PYTHON_CMD} setup.py
25
23
26
REPATCH=	cd ${WRKSRC} && ${SED}
27
REPATCHSUBST=	-e 's@"include"@"${LOCALBASE}/include"],library_dirs=["${LOCALBASE}/lib"@'
28
REPATCHFILES=	setup.py
29
TMPSUFFIX=	.temp
30
31
post-patch:
24
post-patch:
32
.for file in ${REPATCHFILES}
25
.for file in ${REPATCHFILES}
33
	${REPATCH} ${REPATCHSUBST} ${file} > ${file}${TMPSUFFIX} && \
26
	${PERL} -pi -e 's@"include"@"${LOCALBASE}/include"],library_dirs=["${LOCALBASE}/lib"@' \
34
		${CAT} ${file}${TMPSUFFIX} > ${file}
27
		${WRKSRC}/setup.py
35
.endfor
28
.endfor
36
29
37
do-build:
30
do-build:
38
	${PYDIST_SETUP} build
31
	${PYDIST_SETUP} build
39
32
40
do-install:
33
do-install:
41
	${PYDIST_SETUP} install
34
	${PYDIST_SETUP} install -c -O1 --prefix=${PREFIX}
42
.if !defined(NOPORTDOCS)
35
.if !defined(NOPORTDOCS)
43
	${MKDIR} ${PREFIX}/share/examples/${SHARE_SUBDIR}
36
	${MKDIR} ${PREFIX}/share/examples/py-curl
44
	cd ${WRKSRC} && ${INSTALL_DATA} tests/* ${PREFIX}/share/examples/${SHARE_SUBDIR}
37
	cd ${WRKSRC} && ${INSTALL_DATA} tests/* ${PREFIX}/share/examples/py-curl
45
.endif
38
.endif
46
39
47
.include <bsd.port.mk>
40
.include <bsd.port.mk>
(-)py-curl/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (pycurl-0.4.4.tar.gz) = 11bc292b8241ac20239e636be8004460
1
MD5 (pycurl-0.4.5.tar.gz) = 799437ed00c0cdf3611fb16940cb8f4a
(-)py-curl/pkg-plist (-10 / +10 lines)
Lines 1-11 Link Here
1
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test.py
2
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_cb.py
3
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_getinfo.py
4
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/basicfirst.py
5
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/basicfirst2.py
6
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_xmlrpc.py
7
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_gtk.py
8
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_xmlrpc2.py
9
%%PORTDOCS%%@dirrm share/examples/%%SHARE_SUBDIR%%
10
@cwd %%LOCALBASE%%
11
%%PYTHON_SITELIBDIR%%/pycurl.so
1
%%PYTHON_SITELIBDIR%%/pycurl.so
2
%%PORTDOCS%%share/examples/py-curl/basicfirst.py
3
%%PORTDOCS%%share/examples/py-curl/basicfirst2.py
4
%%PORTDOCS%%share/examples/py-curl/test.py
5
%%PORTDOCS%%share/examples/py-curl/test_cb.py
6
%%PORTDOCS%%share/examples/py-curl/test_getinfo.py
7
%%PORTDOCS%%share/examples/py-curl/test_gtk.py
8
%%PORTDOCS%%share/examples/py-curl/test_stringio.py
9
%%PORTDOCS%%share/examples/py-curl/test_xmlrpc.py
10
%%PORTDOCS%%share/examples/py-curl/test_xmlrpc2.py
11
%%PORTDOCS%%@dirrm share/examples/py-curl

Return to bug 36612