blob: f82f71532141fae5853b40de19938235f1e9b637 (
plain)
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
|
# Created by: Sahil Tandon <sahil@FreeBSD.org>
# $FreeBSD$
PORTNAME= graphy
PORTVERSION= 1.0
CATEGORIES= graphics python
MASTER_SITES= GOOGLE_CODE
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= sahil@FreeBSD.org
COMMENT= Simple chart library for Python
USES= tar:bzip2
USE_PYTHON_RUN= yes
PORTDOCS= README
PORTEXAMPLES= *
NO_BUILD= yes
NO_INSTALL_MANPAGES= yes
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e 's|python2.4|${PYTHON_VERSION}|' \
${WRKSRC}/examples/*.py \
${WRKSRC}/${PORTNAME}/*.py
@${FIND} ${WRKSRC} -name '.svn' -or -name '*.bak' | \
${XARGS} ${RM} -rf
do-install:
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}
@(cd ${WRKSRC}/${PORTNAME}/ && \
${COPYTREE_SHARE} \* ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME})
@${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
@${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m 555 -d ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
|