# New ports collection makefile for:	pygooglechart
# Date created:		2009-01-09
# Whom:			Nicola Vitale	<nivit@FreeBSD.org>
#
# $FreeBSD: ports/graphics/py-pygooglechart/Makefile,v 1.2 2010/09/10 17:19:19 nivit Exp $
#

PORTNAME=	pygooglechart
PORTVERSION=	0.3.0
PORTREVISION=	0
CATEGORIES=	graphics python
MASTER_SITES=	http://pygooglechart.slowchop.com/files/download/ \
		LOCAL/nivit/${PORTNAME}/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	nivit@FreeBSD.org
COMMENT=	A complete Python wrapper for the Google Chart API

USE_PYTHON=	yes
USE_PYDISTUTILS=	easy_install

PLIST_FILES=	%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%

PORTEXAMPLES=	*

.if !defined(NOPORTEXAMPLES)
EXAMPLESDIR=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
post-install:
	${MKDIR} ${EXAMPLESDIR} && cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>
