# $FreeBSD: tags/RELEASE_11_0_0/www/trac-ticketimport/Makefile 416081 2016-05-29 01:29:08Z amdmi3 $

PORTNAME=	ticketimport
PORTVERSION=	0.7c
PORTREVISION=	3
CATEGORIES=	www devel python
MASTER_SITES=	LOCAL/brooks
PKGNAMEPREFIX=	trac-

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Import or update tickets from a CSV file or Excel file

LICENSE=	BSD3CLAUSE # "same license as trac"

RUN_DEPENDS=	tracd:www/trac \
		${PYTHON_PKGNAMEPREFIX}xlrd>=0.7.1:textproc/py-xlrd

USES=		python:2
USE_PYTHON=	distutils autoplist
NO_ARCH=	yes

# Maintainter targets below this point

# Retrieve the latest version from SVN and package in a tarball.
.if defined(BOOTSTRAP)
FETCH_DEPENDS+=	svn:devel/subversion
do-fetch:
	${MKDIR} ${WRKDIR}
	cd ${WRKDIR} && \
	    svn export http://trac-hacks.org/svn/ticketimportplugin/0.11/ \
	    ${DISTNAME}
	cd ${WRKDIR} && tar cvf ${DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME}
.endif

.include <bsd.port.mk>
