# $OpenBSD: Makefile,v 1.22 2009/05/22 08:43:10 benoit Exp $

COMMENT=		Python library for creating postscript or PDF charts

MODPY_EGG_VERSION=	1.39
DISTNAME=		PyChart-${MODPY_EGG_VERSION}
PKGNAME=		py-Chart-${MODPY_EGG_VERSION}
CATEGORIES=		textproc devel

HOMEPAGE=		http://home.gna.org/pychart/

MAINTAINER=		Benoit Lecocq <benoit@openbsd.org>

# GPLv2
PERMIT_PACKAGE_CDROM=		Yes
PERMIT_PACKAGE_FTP=		Yes
PERMIT_DISTFILES_CDROM=		Yes
PERMIT_DISTFILES_FTP=		Yes

MASTER_SITES=	http://download.gna.org/pychart/

MODULES=	lang/python

RUN_DEPENDS+=	:ghostscript-*:print/ghostscript/gnu

NO_REGRESS=	Yes

EXAMPLESDIR=	${PREFIX}/share/examples/py-Chart

post-install:
	${INSTALL_DATA_DIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/demos/*.py ${EXAMPLESDIR}

.include <bsd.port.mk>