2011-07-23 10:09:05 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2011/07/23 14:09:05 benoit Exp $
|
2007-12-31 06:32:30 -05:00
|
|
|
|
|
|
|
COMMENT= package for creating PostScript/PDF graphics
|
|
|
|
|
2011-07-23 10:09:05 -04:00
|
|
|
MODPY_EGG_VERSION = 0.11.1
|
|
|
|
DISTNAME= PyX-${MODPY_EGG_VERSION}
|
|
|
|
PKGNAME= py-pyx-${MODPY_EGG_VERSION}
|
2007-12-31 06:32:30 -05:00
|
|
|
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
|
|
|
|
|
2008-02-14 03:58:23 -05:00
|
|
|
MODULES= lang/python
|
|
|
|
PY_FLAVOR= python${MODPY_VERSION}
|
|
|
|
|
2007-12-31 06:32:30 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyx/}
|
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
RUN_DEPENDS= print/texlive/base \
|
|
|
|
py-Imaging-*-${PY_FLAVOR}:graphics/py-Imaging,${PY_FLAVOR}
|
2007-12-31 06:32:30 -05:00
|
|
|
|
|
|
|
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>
|