1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/www/trac-graphviz/Makefile
Antoine Brodin f7455240e3 Reduce dependency on the python2 metaport
PR:		225752
Submitted by:	Yasuhiro KIMURA
2018-02-19 11:10:43 +00:00

34 lines
788 B
Makefile

# $FreeBSD$
PORTNAME= ${PYDISTUTILS_PKGNAME:S;^Trac;;S;Plugin$;;:tl}
PORTVERSION= 0.7.4
PORTREVISION= 9
CATEGORIES= www devel graphics python
MASTER_SITES= LOCAL/brooks
PKGNAMEPREFIX= trac-
DISTNAME= ${PORTNAME}plugin-${PORTVERSION}
MAINTAINER= joneum@FreeBSD.org
COMMENT= Graphviz plugin for Trac's wiki
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= urwfonts>0:x11-fonts/urwfonts \
dot:graphics/graphviz \
tracd:www/trac
USES= python:2.7
USE_PYTHON= autoplist distutils
PYDISTUTILS_PKGNAME= graphviz
NO_ARCH= yes
WRKSRC= ${WRKDIR}/${PORTNAME}plugin
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
-e 's|%%PREFIX%%|${PREFIX}|' \
-e 's|%%OSMAJOR%%|${OSREL:C/\..*$//}|' \
${WRKSRC}/graphviz/graphviz.py
.include <bsd.port.mk>