- This is a variant of graphics/py-pygraphviz for Python 3.x. A separate port is needed until the ports tree gets VARIANTS support. The science/gramps port will soon be updated to a version which only supports python3, and it depends on py-pygraphviz with python3. To allow people to only use packages directly (and not ports), the package building infrastructure needs to build 2 packages: py-pygraphviz with python2 and py-pygraphviz with python3. Since the ports tree doesn't yet have VARIANTS support, this is not yet possible without making a separate py3-pygraphviz port. - Ensure graphics/py-pygraphviz does not clobber variables in slave port - While here, add LICENSE and LICENSE_FILE details to graphics/py-pygraphviz PR: 207039 Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D6281
36 lines
987 B
Makefile
36 lines
987 B
Makefile
# Created by: Hye-Shik Chang <perky@fallin.lv>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pygraphviz
|
|
PORTVERSION= 1.3.1
|
|
CATEGORIES= graphics python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= python@FreeBSD.org
|
|
COMMENT= Python interface to GraphViz agraph
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libcgraph.so:graphics/graphviz
|
|
TEST_DEPENDS?= ${PYTHON_PKGNAMEPREFIX}nose>=0.10.1:devel/py-nose
|
|
|
|
USES?= pkgconfig python
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
|
|
PYDISTUTILS_BUILD_TARGET= build build_ext
|
|
PYDISTUTILS_BUILDARGS= --include-dirs=${LOCALBASE}/include \
|
|
--library-dirs=${LOCALBASE}/lib/graphviz
|
|
|
|
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
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
.include <bsd.port.mk>
|