aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/py-curl/Makefile
blob: c778bbe24487a6ca4f9d69aab5e4a187ff4da18e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# New ports collection makefile for:    py-curl
# Date created:             2 July 2001
# Whom:                 Hye-Shik Chang <perky@python.or.kr>
#
# $FreeBSD$
#

PORTNAME=   curl
PORTVERSION=    7.9.8.4
CATEGORIES= ftp python
MASTER_SITES=   http://pycurl.sourceforge.net/download/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   py${PORTNAME}-${PORTVERSION}

MAINTAINER= perky@FreeBSD.org

LIB_DEPENDS=    curl.2:${PORTSDIR}/ftp/curl

USE_PYTHON= yes
USE_PYDISTUTILS=    yes
USE_REINPLACE=  yes
EXTRACT_AFTER_ARGS= | ${TAR} -xf - 2>/dev/null || true

post-patch:
    ${REINPLACE_CMD} -e 's@\(curl-config --\)@${LOCALBASE}/bin/\1@g' \
        -e 's@os.path.join("doc", "pycurl")@"share/doc/py-curl"@g' \
        -e 's@os.path.join("d.*"examples")@"share/examples/py-curl"@g' \
        ${WRKSRC}/setup.py

.include <bsd.port.mk>