# Created by: Hung-Yi Chen <gaod@hychen.org>
# $FreeBSD: tags/RELEASE_10_1_0/www/trac-watchlist/Makefile 358161 2014-06-17 19:21:35Z mva $

PORTNAME=	watchlist
PORTVERSION=	1.0.${SVN_REV}
PORTREVISION=	3
CATEGORIES=	www devel python
MASTER_SITES=	http://distfiles.cse.tw/ \
		http://trac-hacks.org/changeset/${SVN_REV}/watchlistplugin?old_path=/&format=zip&filename=/
PKGNAMEPREFIX=	trac-
DISTNAME=	${PORTNAME}plugin-r${SVN_REV}

MAINTAINER=	gaod@hychen.org
COMMENT=	Watchlist feature for wikis and tickets of Trac

LICENSE=	BSD

SVN_REV=	11526

RUN_DEPENDS+=	tracd:${PORTSDIR}/www/trac

WRKSRC=		${WRKDIR}/${PORTNAME}plugin/0.12
USES=		zip
USE_PYTHON=		2
USE_PYDISTUTILS=	yes
PYDISTUTILS_AUTOPLIST=	yes

FETCH_BEFORE_ARGS=	-o ${DISTFILES}

post-extract:
	@${FIND} ${WRKSRC} -type f | ${XARGS} ${CHMOD} 644
	@${FIND} ${WRKSRC} -type d | ${XARGS} ${CHMOD} 755

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