blob: b310664e305cda8342eecd4f6db354db1ad94190 (
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
|
# Created by: Hye-Shik Chang <perky@fallin.lv>
# $FreeBSD$
PORTNAME= graphviz
PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= graphics python
MASTER_SITES= CHEESESHOP \
http://networkx.lanl.gov/download/pygraphviz/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pygraphviz-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Python interface to GraphViz agraph
BUILD_DEPENDS= dot:${PORTSDIR}/graphics/graphviz
RUN_DEPENDS= dot:${PORTSDIR}/graphics/graphviz
USES= python
USE_PYTHON= distutils
PYDISTUTILS_PKGNAME= pygraphviz
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e 's+%%LOCALBASE%%+${LOCALBASE}+; \
s+^docdirbase.*=.*+docdirbase = "${DOCSDIR:S/${PREFIX}\///}"+' ${WRKSRC}/setup.py
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pygraphviz/_graphviz.so
.include <bsd.port.mk>
|