diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2001-07-03 09:09:29 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2001-07-03 09:09:29 +0000 |
commit | 660f55faceca7517e8230698c1d6a1ddf1d82ffc (patch) | |
tree | 975014461b81654314a5813475318ec9dbd052c4 /ftp | |
parent | 6d6802e97f7769b81679b2f33363bd48b4587efd (diff) | |
download | freebsd-ports-660f55faceca7517e8230698c1d6a1ddf1d82ffc.zip |
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 fa5a5297448b..600d23f3c850 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 000000000000..74ccf4385a35 --- /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 000000000000..8bbc09aac825 --- /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 000000000000..9ed8db47f6eb --- /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 000000000000..c1b952ebcdb2 --- /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 000000000000..5551d59c1e9f --- /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%% |