diff options
author | knu <knu@FreeBSD.org> | 2001-07-03 09:09:29 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-07-03 09:09:29 +0000 |
commit | 58218417222453a3d954589827814eddbd52a3b8 (patch) | |
tree | 8973382792d97c10dfe60ca7fd4a1dd9bf1d187f /ftp | |
parent | d1975b5f6c2ee6969bc3c6f3ce1f7144ff5615f3 (diff) | |
download | FreeBSD-ports-58218417222453a3d954589827814eddbd52a3b8.zip FreeBSD-ports-58218417222453a3d954589827814eddbd52a3b8.tar.gz |
Add py-curl, the Python interface to libcurl.
PR: ports/28639
Submitted by: Hye-Shik Chang <perky@python.or.kr>
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/Makefile | 1 | ||||
-rw-r--r-- | ftp/py-curl/Makefile | 47 | ||||
-rw-r--r-- | ftp/py-curl/distinfo | 1 | ||||
-rw-r--r-- | ftp/py-curl/pkg-comment | 1 | ||||
-rw-r--r-- | ftp/py-curl/pkg-descr | 5 | ||||
-rw-r--r-- | ftp/py-curl/pkg-plist | 5 |
6 files changed, 60 insertions, 0 deletions
diff --git a/ftp/Makefile b/ftp/Makefile index fa5a529..600d23f 100644 --- a/ftp/Makefile +++ b/ftp/Makefile @@ -45,6 +45,7 @@ SUBDIR += profxp SUBDIR += puf SUBDIR += pure-ftpd + SUBDIR += py-curl SUBDIR += ruby-curl SUBDIR += sftp SUBDIR += spegla diff --git a/ftp/py-curl/Makefile b/ftp/py-curl/Makefile new file mode 100644 index 0000000..74ccf43 --- /dev/null +++ b/ftp/py-curl/Makefile @@ -0,0 +1,47 @@ +# 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.3.3 +CATEGORIES= ftp python +MASTER_SITES= http://pycurl.sourceforge.net/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= py${PORTNAME}-${PORTVERSION} + +MAINTAINER= perky@python.or.kr + +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} +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} +.endfor + +do-build: + ${PYDIST_SETUP} build + +do-install: + ${PYDIST_SETUP} install +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/examples/${SHARE_SUBDIR} + cd ${WRKSRC} && ${INSTALL_DATA} tests/* ${PREFIX}/share/examples/${SHARE_SUBDIR} +.endif + +.include <bsd.port.mk> diff --git a/ftp/py-curl/distinfo b/ftp/py-curl/distinfo new file mode 100644 index 0000000..8bbc09a --- /dev/null +++ b/ftp/py-curl/distinfo @@ -0,0 +1 @@ +MD5 (pycurl-0.3.3.tar.gz) = 4a1455cb8fc9279239114940fc2269ef diff --git a/ftp/py-curl/pkg-comment b/ftp/py-curl/pkg-comment new file mode 100644 index 0000000..9ed8db4 --- /dev/null +++ b/ftp/py-curl/pkg-comment @@ -0,0 +1 @@ +Python interface to libcurl diff --git a/ftp/py-curl/pkg-descr b/ftp/py-curl/pkg-descr new file mode 100644 index 0000000..c1b952e --- /dev/null +++ b/ftp/py-curl/pkg-descr @@ -0,0 +1,5 @@ +Python module interface to the cURL library which is +a tool for transferring files with URL syntax, supporting +many protocols. + +WWW: http://sourceforge.net/projects/pycurl/ diff --git a/ftp/py-curl/pkg-plist b/ftp/py-curl/pkg-plist new file mode 100644 index 0000000..5551d59 --- /dev/null +++ b/ftp/py-curl/pkg-plist @@ -0,0 +1,5 @@ +%%PYTHON_SITELIBDIR%%/curl.so +%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test.py +%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_cb.py +%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/test_getinfo.py +%%PORTDOCS%%@dirrm share/examples/%%SHARE_SUBDIR%% |