forked from Lainports/freebsd-ports
The wrapper can render the URL of the Google chart, based on your parameters, or it can render an HTML img tag to insert into webpages on the fly. Made for dynamic python websites (Django,Zope,CGI,etc.) that need on the fly chart generation without any extra modules. Can also grab the PIL Image instance of the chart for manipulation WWW: http://code.google.com/p/google-chartwrapper/
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# New ports collection makefile for: gchartwrapper
|
|
# Date created: 2009-01-09
|
|
# Whom: Nicola Vitale <nivit@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= GChartWrapper
|
|
PORTVERSION= 0.7
|
|
#PORTREVISION= 0
|
|
CATEGORIES= graphics python
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \
|
|
LOCAL/nivit/${PORTNAME}/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz
|
|
.if !defined(NOPORTDOCS) || !defined(NOPORTEXAMPLES)
|
|
DISTFILES+= ${PORTNAME}-extras-${PORTVERSION}.tar.gz
|
|
.endif
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
COMMENT= Python Google Chart Wrapper
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}imaging>=1.1.6_2:${PORTSDIR}/graphics/py-imaging
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
|
|
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
PROJECTHOST= google-chartwrapper
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR} && cd ${WRKDIR}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}
|
|
.endif
|
|
.if !defined(NOPORTEXAMPLES)
|
|
@${MKDIR} ${EXAMPLESDIR} && cd ${WRKDIR}/templating && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|