openbsd-ports/graphics/py-pyx/Makefile

38 lines
908 B
Makefile
Raw Normal View History

2013-03-11 07:10:51 -04:00
# $OpenBSD: Makefile,v 1.16 2013/03/11 11:10:55 espie Exp $
COMMENT = package for creating PostScript/PDF graphics
MODPY_EGG_VERSION = 0.12.1
DISTNAME = PyX-${MODPY_EGG_VERSION}
PKGNAME = py-pyx-${MODPY_EGG_VERSION}
CATEGORIES = graphics devel
HOMEPAGE = http://pyx.sourceforge.net/
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += ${MODPY_WANTLIB} pthread
2011-11-02 05:57:21 -04:00
MODULES = lang/python
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=pyx/}
RUN_DEPENDS = print/texlive/base \
2011-12-20 06:25:44 -05:00
graphics/py-Imaging
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-pyx
cd ${WRKSRC}/examples && pax -rw * ${PREFIX}/share/examples/py-pyx
2013-03-11 07:10:51 -04:00
do-test: fake
cd ${WRKSRC}/examples && for i in `find . -name "*.py"`; do \
echo $$i; \
cd ${WRKSRC}/examples/`dirname $$i`; \
PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} `basename $$i`; \
done
.include <bsd.port.mk>