freebsd-ports/graphics/py-graph-dot/Makefile
Mathieu Arnold 8b4093cba5 Do not use post-stage. Use post-install instead.
The only reason to use post-stage is because the port needs to do
"things" at a later time, like some plist manipulation.
While there, fold post-install in do-install targets when they are
defined.

PR:		214780
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-12-02 11:58:21 +00:00

36 lines
1 KiB
Makefile

# Created by: Yi-Jheng Lin <yzlin@cs.nctu.edu.tw>
# $FreeBSD$
PORTNAME= graph-dot
PORTVERSION= 1.8.2
PORTREVISION= 1
CATEGORIES= graphics python
MASTER_SITES= GOOGLE_CODE
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= python-${PORTNAME}-${PORTVERSION}
MAINTAINER= demon@FreeBSD.org
COMMENT= Library for working with graphs in Python, dot module
BROKEN= Unfetchable (google code has gone away)
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pydot>=0:graphics/py-pydot \
${PYTHON_PKGNAMEPREFIX}graph-core>=${PORTVERSION}:graphics/py-graph-core
PROJECTHOST= python-graph
USES= python
USE_PYTHON= distutils autoplist
# post-install and add-plist-post should not act as reference on how to fix
# egg-based conflicts.
# https://code.google.com/p/python-graph/issues/detail?id=121 contains the
# report for this issue.
post-install:
.for suffix in py pyc pyo
rm ${STAGEDIR}${PYTHON_SITELIBDIR}/pygraph/readwrite/__init__.${suffix}
.endfor
add-plist-post:
@${REINPLACE_CMD} -e "/readwrite\/__init__.py/d" ${TMPPLIST}
.include <bsd.port.mk>