# Created by: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
# $FreeBSD: tags/RELEASE_10_1_0/www/trac-keywords/Makefile 358345 2014-06-19 06:11:52Z mva $

PORTNAME=	keywords
PORTVERSION=	0.2
PORTREVISION=	3
CATEGORIES=	www python
MASTER_SITES=	http://dist.codelabs.ru/fbsd/
PKGNAMEPREFIX=	trac-
DISTNAME=	trackeywordsplugin-r${REL}

MAINTAINER=	rea@FreeBSD.org
COMMENT=	Plugin for using pre-configured keywords

RUN_DEPENDS+=	trac>=0.11:${PORTSDIR}/www/trac

USES=		zip
USE_PYTHON=		2
USE_PYDISTUTILS=	yes
PYDISTUTILS_AUTOPLIST=	yes
WRKSRC=			${WRKDIR}/trackeywordsplugin/0.11
REL=			7273

post-extract:
# Fix misplaced Genshi template: https://trac-hacks.org/ticket/6104
	@${MV} ${WRKDIR}/trackeywordsplugin/0.10/trackeywords/templates/keywords.html ${WRKSRC}/trackeywords/templates/
# Seems like web_ui.py was misplaced too.
	@${MV} ${WRKDIR}/trackeywordsplugin/0.10/trackeywords/web_ui.py ${WRKSRC}/trackeywords/

.include "${.CURDIR}/../../www/trac/plugin.mk"
.include <bsd.port.mk>
