- use MODPY_ADJ_FILES

- various small tweaks
This commit is contained in:
jasper 2011-06-13 08:47:51 +00:00
parent 301812d800
commit 056c1a5ce7
6 changed files with 16 additions and 24 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.9 2011/06/08 18:00:49 jasper Exp $
# $OpenBSD: Makefile,v 1.10 2011/06/13 08:47:51 jasper Exp $
COMMENT = GeoIP Python API
MODPY_EGG_VERSION = 1.2.5
REVISION = 1
REVISION = 2
DISTNAME = GeoIP-Python-${MODPY_EGG_VERSION}
PKGNAME = py-GeoIP-${MODPY_EGG_VERSION}
CATEGORIES = net
@ -21,6 +21,7 @@ PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = http://geolite.maxmind.com/download/geoip/api/python/
MODULES = lang/python
MODPY_ADJ_FILES = test*.py
LIB_DEPENDS = net/GeoIP>=1.4.7
WANTLIB = GeoIP>=8
@ -28,11 +29,9 @@ WANTLIB = GeoIP>=8
EXAMPLEDIR = ${PREFIX}/share/examples/py-GeoIP
NO_REGRESS = Yes
pre-build:
@perl -pi -e "s,^\#\!/usr/bin/python,#!${MODPY_BIN}," ${WRKSRC}/test*.py
post-install:
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/test* ${EXAMPLEDIR}
${INSTALL_SCRIPT} ${WRKSRC}/test* ${EXAMPLEDIR}
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.8 2011/06/08 18:00:49 jasper Exp $
# $OpenBSD: Makefile,v 1.9 2011/06/13 08:47:52 jasper Exp $
SHARED_ONLY= Yes
@ -20,6 +20,7 @@ PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}/files/
MODULES= lang/python
MODPY_ADJ_FILES= ADNS.py DNSBL.py
CATEGORIES = net
LIB_DEPENDS= net/adns
@ -29,8 +30,5 @@ NO_REGRESS= Yes
pre-configure:
perl -pi -e 's,!!PREFIX!!,${PREFIX},g' ${WRKSRC}/setup.py
find ${WRKSRC} -name \*.py | \
xargs perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},g;' \
-e 's,/usr/bin/python,${MODPY_BIN},g'
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.12 2011/06/08 18:00:49 jasper Exp $
# $OpenBSD: Makefile,v 1.13 2011/06/13 08:47:52 jasper Exp $
COMMENT= DNS toolkit for Python
@ -21,10 +21,9 @@ PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}/kits/${MODPY_EGG_VERSION}/
MODULES= lang/python
MODPY_ADJ_FILES= examples/*.py
post-install:
@perl -pi -e "s,/usr/bin/env python,${MODPY_BIN}," \
${WRKSRC}/examples/*.py
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-dnspython
${INSTALL_SCRIPT} ${WRKSRC}/examples/* \
${PREFIX}/share/examples/py-dnspython

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.25 2011/06/08 18:00:50 jasper Exp $
# $OpenBSD: Makefile,v 1.26 2011/06/13 08:47:52 jasper Exp $
SHARED_ONLY= Yes
@ -21,6 +21,7 @@ WANTLIB= pcap
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pylibpcap/}
MODULES= lang/python
MODPY_ADJ_FILES=examples/*.py
BUILD_DEPENDS= devel/swig
@ -28,10 +29,6 @@ NO_REGRESS= Yes
EXAMPLESDIR= ${PREFIX}/share/examples/py-libpcap
pre-build:
@perl -p -i -e "s,^\#\! /usr/bin/env python,#!${MODPY_BIN}," \
${WRKSRC}/examples/*.py
post-install:
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.10 2011/06/08 18:00:50 jasper Exp $
# $OpenBSD: Makefile,v 1.11 2011/06/13 08:47:52 jasper Exp $
COMMENT= SNMP framework for Python
@ -25,9 +25,8 @@ DOCSDIR= ${PREFIX}/share/doc/py-snmp
EXAMPLESDIR= ${PREFIX}/share/examples/py-snmp
post-install:
${INSTALL_DATA_DIR} ${DOCSDIR}
${INSTALL_DATA_DIR} ${DOCSDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/docs; tar cf - . | tar xf - -C ${DOCSDIR}
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
cd ${WRKSRC}/examples; tar cf - . | tar xf - -C ${EXAMPLESDIR}
do-regress: fake

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.12 2011/06/08 18:00:50 jasper Exp $
# $OpenBSD: Makefile,v 1.13 2011/06/13 08:47:52 jasper Exp $
COMMENT= Python XMPP and Jabber implementation
@ -28,12 +28,12 @@ RUN_DEPENDS= textproc/libxml,-python \
net/py-dnspython
REGRESS_DEPENDS=${RUN_DEPENDS}
MODPY_ADJ_FILES=examples/*.py
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-xmpp
${INSTALL_SCRIPT} ${WRKSRC}/examples/*.py \
${PREFIX}/share/examples/py-xmpp
perl -pi -e "s,/usr/bin/python,${MODPY_BIN}," \
${PREFIX}/share/examples/py-xmpp/*.py
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-xmpp
cd ${WRKSRC}/doc/www/api && tar cf - . | \
(cd ${PREFIX}/share/doc/py-xmpp && tar xf -)