openbsd-ports/graphics/py-pyx/Makefile
winiger e14b53fe96 change dependency to flavoured py-Imaging
bump PKGNAME

ok mbalmer@ msf@
testing by Laurance Tratt
2008-02-14 08:58:23 +00:00

44 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.2 2008/02/14 08:58:23 winiger Exp $
COMMENT= package for creating PostScript/PDF graphics
V=0.10
DISTNAME= PyX-${V}
PKGNAME= py-pyx-${V}p0
CATEGORIES= graphics devel
HOMEPAGE= http://pyx.sourceforge.net/
MAINTAINER= Laurence Tratt <laurie@tratt.net>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= lang/python
PY_FLAVOR= python${MODPY_VERSION}
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyx/}
RUN_DEPENDS= ::print/texlive/base \
:py-Imaging-*-${PY_FLAVOR}:graphics/py-Imaging,${PY_FLAVOR}
post-install:
cd ${WRKSRC}/examples && for i in `find . -type d`; do \
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pyx/$$i; \
done
cd ${WRKSRC}/examples && for i in `find . -type f ! -name "*.orig"`; do \
${INSTALL_DATA} $$i ${PREFIX}/share/examples/pyx/$$i; \
done
do-regress: install
cd ${WRKSRC}/examples && for i in `find . -name "*.py"`; do \
echo $$i; \
cd ${WRKSRC}/examples/`dirname $$i`; \
${MODPY_BIN} `basename $$i`; \
done
.include <bsd.port.mk>