summaryrefslogtreecommitdiffstats
path: root/www/trac-graphviz/Makefile
blob: 63fada6f5fb9daea45d2d24844ba5379c1f90a1e (plain)
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
# $FreeBSD$

PORTNAME=	${PYDISTUTILS_PKGNAME:S;^Trac;;S;Plugin$;;:tl}
PORTVERSION=	0.7.4
PORTREVISION=	8
CATEGORIES=	www devel graphics python
MASTER_SITES=	LOCAL/brooks
PKGNAMEPREFIX=	trac-
DISTNAME=	${PORTNAME}plugin-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Graphviz plugin for Trac's wiki

LICENSE=	BSD3CLAUSE

RUN_DEPENDS+=	urwfonts>0:${PORTSDIR}/x11-fonts/urwfonts \
		dot:${PORTSDIR}/graphics/graphviz \
		tracd:${PORTSDIR}/www/trac

USES=		python:2
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>
OpenPOWER on IntegriCloud