freebsd-ports/graphics/py-graphviz/Makefile

33 lines
845 B
Makefile
Raw Normal View History

# Created by: Hye-Shik Chang <perky@fallin.lv>
# $FreeBSD$
PORTNAME= graphviz
2015-01-17 16:58:01 +01:00
PORTVERSION= 1.2
2015-03-13 14:21:50 +01:00
PORTREVISION= 1
CATEGORIES= graphics python
MASTER_SITES= CHEESESHOP \
http://networkx.lanl.gov/download/pygraphviz/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pygraphviz-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
2003-02-25 07:25:35 +01:00
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
2015-03-13 14:21:50 +01:00
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pygraphviz/_graphviz.so
.include <bsd.port.mk>