3cffce737a
The PyOpenBSD library allows Python programs to interact with the OpenBSD operating system in a smooth and seamless way. It consists of a set of bindings for various system libraries, as well as interfaces for inspecting in-kernel variables using kvm. PyOpenBSD also contains some useful functionality not directly or solely related to OpenBSD. At this stage there are no concrete plans to "spin off" architecture-independent projects. Maintained by Aldo Cortesi <aldo at nullcube.com> ok alek@.
40 lines
1018 B
Makefile
40 lines
1018 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2004/12/22 08:38:21 xsa Exp $
|
|
|
|
COMMENT= "specific Python bindings for OpenBSD"
|
|
|
|
DISTNAME= pyopenbsd-0.1.2
|
|
PKGNAME= ${DISTNAME:S/^py/py-/}
|
|
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>
|