summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ftp/Makefile1
-rw-r--r--ftp/py-curl/Makefile47
-rw-r--r--ftp/py-curl/distinfo1
-rw-r--r--ftp/py-curl/pkg-comment1
-rw-r--r--ftp/py-curl/pkg-descr5
-rw-r--r--ftp/py-curl/pkg-plist5
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%%