freebsd-ports/graphics/py-gchartwrapper/Makefile

48 lines
1.2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: gchartwrapper
# Date created: 2009-01-09
# Whom: Nicola Vitale <nivit@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= GChartWrapper
2009-10-12 11:41:29 +02:00
PORTVERSION= 0.9
2009-05-10 16:16:55 +02:00
PORTREVISION= 0
CATEGORIES= graphics python
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \
LOCAL/nivit/${PORTNAME}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
2009-10-12 11:41:29 +02:00
DISTFILES= ${PORTNAME}-${PORTVERSION}.zip
.if !defined(NOPORTDOCS) || !defined(NOPORTEXAMPLES)
2009-10-12 11:41:29 +02:00
DISTFILES+= ${PORTNAME}-extras-${PORTVERSION}.zip
.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
2009-10-12 11:41:29 +02:00
USE_ZIP= yes
EXAMPLESDIR= ${PREFIX}/share/examples/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
PROJECTHOST= google-chartwrapper
2009-10-12 11:41:29 +02:00
.if !defined(NOPORTDOCS)
post-extract:
@cd ${WRKDIR} && ${RM} -R doc/.svn && ${RM} -R demo/.svn
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR} && cd ${WRKDIR}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
2009-10-12 11:41:29 +02:00
@${MKDIR} ${EXAMPLESDIR} && cd ${WRKDIR}/demo && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>