1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/www/trac-downloads/Makefile
Brooks Davis c93b803b40 Upgrade to the latest SVN revsion which fixes a number of bugs.
Also patch a bug in the command line interface which prevented
"trac-admin <env> download add <file>" from working.  I'm pretty sure it
hadn't worked in several years.
2011-05-31 21:24:40 +00:00

51 lines
1.3 KiB
Makefile

# New ports collection makefile for: trac-mercurial
# Date created: January 23, 2009
# Whom: Brooks Davis <brooks@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= ${PYDISTUTILS_PKGNAME:S;^Trac;;:L}
PORTVERSION= ${TRAC_VERSION}.${PLUGIN_VERSION}.${SVN_REV}
CATEGORIES= www devel python
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= brooks
PKGNAMEPREFIX= trac-
DISTNAME= ${PORTNAME}plugin-${PORTVERSION}
DIST_SUBDIR= trac
MAINTAINER= brooks@FreeBSD.org
COMMENT= A trac plugin providing a downloads section
RUN_DEPENDS+= tracd:${PORTSDIR}/www/trac
BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools
TRAC_VERSION= 0.12
PLUGIN_VERSION= 0.3
SVN_REV= 10047
USE_PYTHON= yes
NO_BUILD= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGNAME= TracDownloads
PYDISTUTILS_NOEGGINFO= yes
PLIST_FILES= %%PYTHON_SITELIBDIR%%/${PYDISTUTILS_PKGNAME}-${PLUGIN_VERSION}-py${PYTHON_VER}.egg
.if defined(BOOTSTRAP)
do-fetch:
${MKDIR} ${WRKDIR}
svn export -r ${SVN_REV} http://trac-hacks.org/svn/downloadsplugin/${TRAC_VERSION}/ ${WRKSRC}
${MKDIR} ${_DISTDIR}
cd ${WRKDIR} && \
tar cfvz ${_DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME}
.endif
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} >= 260
EXTRA_PATCHES= ${PATCHDIR}/no-sets-module.diff
.endif
.include <bsd.port.post.mk>