openbsd-ports/graphics/py-pyx/Makefile

39 lines
914 B
Makefile

# $OpenBSD: Makefile,v 1.22 2019/07/12 20:47:09 sthen 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
REVISION = 4
HOMEPAGE = http://pyx.sourceforge.net/
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
# GPLv2
PERMIT_PACKAGE = Yes
WANTLIB += ${MODPY_WANTLIB} pthread
MODULES = lang/python
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=pyx/}
RUN_DEPENDS = print/texlive/base \
graphics/py-Pillow
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-pyx
cd ${WRKSRC}/examples && pax -rw * ${PREFIX}/share/examples/py-pyx
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>