1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

Update to 0.4.5

PR:		36612
Submitted by:	maintainer
This commit is contained in:
Patrick Li 2002-04-01 17:27:29 +00:00
parent eda2982e61
commit 33f2b10e79
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57146
3 changed files with 18 additions and 25 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= curl
PORTVERSION= 0.4.4
PORTVERSION= 0.4.5
CATEGORIES= ftp python
MASTER_SITES= http://pycurl.sourceforge.net/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -18,30 +18,23 @@ BUILD_DEPENDS= ${PYDISTUTILS}
LIB_DEPENDS= curl.2:${PORTSDIR}/ftp/curl
USE_PYTHON= yes
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \
SHARE_SUBDIR=${SHARE_SUBDIR}
SHARE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
PLIST_SUB+= PYTHON_SITELIBDIR="lib/${PYTHON_VERSION}/site-packages"
PYDIST_SETUP= cd ${WRKSRC} && ${PYTHON_CMD} setup.py
REPATCH= cd ${WRKSRC} && ${SED}
REPATCHSUBST= -e 's@"include"@"${LOCALBASE}/include"],library_dirs=["${LOCALBASE}/lib"@'
REPATCHFILES= setup.py
TMPSUFFIX= .temp
post-patch:
.for file in ${REPATCHFILES}
${REPATCH} ${REPATCHSUBST} ${file} > ${file}${TMPSUFFIX} && \
${CAT} ${file}${TMPSUFFIX} > ${file}
${PERL} -pi -e 's@"include"@"${LOCALBASE}/include"],library_dirs=["${LOCALBASE}/lib"@' \
${WRKSRC}/setup.py
.endfor
do-build:
${PYDIST_SETUP} build
do-install:
${PYDIST_SETUP} install
${PYDIST_SETUP} install -c -O1 --prefix=${PREFIX}
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/examples/${SHARE_SUBDIR}
cd ${WRKSRC} && ${INSTALL_DATA} tests/* ${PREFIX}/share/examples/${SHARE_SUBDIR}
${MKDIR} ${PREFIX}/share/examples/py-curl
cd ${WRKSRC} && ${INSTALL_DATA} tests/* ${PREFIX}/share/examples/py-curl
.endif
.include <bsd.port.mk>

View File

@ -1 +1 @@
MD5 (pycurl-0.4.4.tar.gz) = 11bc292b8241ac20239e636be8004460
MD5 (pycurl-0.4.5.tar.gz) = 799437ed00c0cdf3611fb16940cb8f4a

View File

@ -1,11 +1,11 @@
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test.py
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_cb.py
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_getinfo.py
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/basicfirst.py
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/basicfirst2.py
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_xmlrpc.py
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_gtk.py
%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_xmlrpc2.py
%%PORTDOCS%%@dirrm share/examples/%%SHARE_SUBDIR%%
@cwd %%LOCALBASE%%
%%PYTHON_SITELIBDIR%%/pycurl.so
%%PORTDOCS%%share/examples/py-curl/basicfirst.py
%%PORTDOCS%%share/examples/py-curl/basicfirst2.py
%%PORTDOCS%%share/examples/py-curl/test.py
%%PORTDOCS%%share/examples/py-curl/test_cb.py
%%PORTDOCS%%share/examples/py-curl/test_getinfo.py
%%PORTDOCS%%share/examples/py-curl/test_gtk.py
%%PORTDOCS%%share/examples/py-curl/test_stringio.py
%%PORTDOCS%%share/examples/py-curl/test_xmlrpc.py
%%PORTDOCS%%share/examples/py-curl/test_xmlrpc2.py
%%PORTDOCS%%@dirrm share/examples/py-curl