aboutsummaryrefslogtreecommitdiffstats
path: root/dns/py-adns/Makefile
blob: 3f6cf77f408ab6422b9b363cad45e76f53d5751f (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
# Created by: Hye-Shik Chang <perky@fallin.lv>
# $FreeBSD$

PORTNAME=   adns
PORTVERSION=    1.2.1
CATEGORIES= dns python
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   adns-python-${PORTVERSION}

MAINTAINER= m.tsatsenko@gmail.com
COMMENT=    A Python Interface to adns, the asynchronous DNS library

LIB_DEPENDS=    adns.1:${PORTSDIR}/dns/adns

PROJECTHOST=    adns-python
USE_PYTHON= yes
USE_PYDISTUTILS=    yes
PYDISTUTILS_PKGNAME=    adns-python
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}

NO_STAGE=   yes
post-patch:
    @${REINPLACE_CMD} -e 's|^\(include_dirs = \).*$$|\1\["${LOCALBASE}/include"\]|g' \
        -e 's|^\(library_dirs = \).*$$|\1\["${LOCALBASE}/lib"\]|g' \
        ${WRKSRC}/setup.py

.include <bsd.port.mk>