aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/py-gchartwrapper/Makefile
blob: 5329fbd773dbb67256a881bc76388f611d6111b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$

PORTNAME=   GChartWrapper
PORTVERSION=    0.9
PORTREVISION=   1
CATEGORIES= graphics python
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE} \
        LOCAL/nivit/${PORTNAME}/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTFILES=  ${PORTNAME}-${PORTVERSION}.zip
.if !defined(NOPORTDOCS) || !defined(NOPORTEXAMPLES)
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
USES=       zip
NO_STAGE=   yes

EXAMPLESDIR=    ${PREFIX}/share/examples/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
DOCSDIR=    ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}

PROJECTHOST=    google-chartwrapper

.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)
    @${MKDIR} ${EXAMPLESDIR} && cd ${WRKDIR}/demo && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>