2009-03-15 08:49:35 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.5 2009/03/15 12:49:35 espie Exp $
|
2004-12-22 03:38:21 -05:00
|
|
|
|
2007-07-25 12:43:44 -04:00
|
|
|
COMMENT= specific Python bindings for OpenBSD
|
2004-12-22 03:38:21 -05:00
|
|
|
|
2007-07-25 12:43:44 -04:00
|
|
|
V= 0.1.2
|
|
|
|
DISTNAME= pyopenbsd-${V}
|
2009-03-15 08:49:35 -04:00
|
|
|
PKGNAME= py-openbsd-${V}p3
|
2004-12-22 03:38:21 -05:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.nullcube.com/software/pyopenbsd.html
|
|
|
|
|
|
|
|
MAINTAINER= Aldo Cortesi <aldo@nullcube.com>
|
|
|
|
|
|
|
|
# BSD
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB= kvm pcap
|
|
|
|
|
|
|
|
MASTER_SITES= http://www.nullcube.com/software/pyopenbsd/download/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MODULES= lang/python
|
|
|
|
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-openbsd
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-openbsd
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC}/doc; tar cf - * | tar xf - -C ${DOCSDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/README ${EXAMPLESDIR}
|
|
|
|
|
|
|
|
do-regress: fake
|
|
|
|
@cd ${WRKSRC}/test && ${MAKE_ENV} \
|
|
|
|
PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} ./run_all.py
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|