aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/py-curl/Makefile
blob: c7dfd5ebba00dc506f80a0345368bd175393c2b7 (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
31
32
33
34
35
36
37
38
39
40
41
42
# 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.16.1
CATEGORIES= ftp python
MASTER_SITES=   http://pycurl.sourceforge.net/download/ \
        http://pycurl.sourceforge.net/download/00-OLD-VERSIONS/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   py${PORTNAME}-${PORTVERSION}

MAINTAINER= perky@FreeBSD.org
COMMENT=    Python interface to libcurl

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

USE_PYTHON= yes
USE_PYDISTUTILS=    yes
PYDISTUTILS_PKGNAME=    pycurl
USE_OPENSSL=    yes

DOCSDIR=    ${PREFIX}/share/doc/py-curl
EXAMPLESDIR=    ${PREFIX}/share/examples/py-curl

post-patch:
    ${REINPLACE_CMD} \
        -e 's@^\(include_dirs = \).*@\1["${LOCALBASE}/include"]@' \
        -e 's@^\(PACKAGE = \).*@\1"py-curl"@' \
        -e 's@\(os.path.join(\)datadir, "examples")@\1"share/examples/py-curl")@' \
        -e 's@name=PACKAGE@name="pycurl"@' \
        ${WRKSRC}/setup.py

pre-install:
.if defined(NOPORTDOCS)
    ${RM} -fr ${WRKSRC}/doc
.endif

.include <bsd.port.mk>