mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Add py-curl, the Python interface to libcurl.
PR: ports/28639 Submitted by: Hye-Shik Chang <perky@python.or.kr>
This commit is contained in:
parent
6d6802e97f
commit
660f55face
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=44685
6 changed files with 60 additions and 0 deletions
|
@ -45,6 +45,7 @@
|
|||
SUBDIR += profxp
|
||||
SUBDIR += puf
|
||||
SUBDIR += pure-ftpd
|
||||
SUBDIR += py-curl
|
||||
SUBDIR += ruby-curl
|
||||
SUBDIR += sftp
|
||||
SUBDIR += spegla
|
||||
|
|
47
ftp/py-curl/Makefile
Normal file
47
ftp/py-curl/Makefile
Normal file
|
@ -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>
|
1
ftp/py-curl/distinfo
Normal file
1
ftp/py-curl/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (pycurl-0.3.3.tar.gz) = 4a1455cb8fc9279239114940fc2269ef
|
1
ftp/py-curl/pkg-comment
Normal file
1
ftp/py-curl/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
Python interface to libcurl
|
5
ftp/py-curl/pkg-descr
Normal file
5
ftp/py-curl/pkg-descr
Normal file
|
@ -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/
|
5
ftp/py-curl/pkg-plist
Normal file
5
ftp/py-curl/pkg-plist
Normal file
|
@ -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%%
|
Loading…
Add table
Reference in a new issue