41 lines
1.1 KiB
Makefile
41 lines
1.1 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= 0.11.0.9
|
|
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 plugin to use Mercurial instead of Subversion in Trac
|
|
|
|
RUN_DEPENDS+= hg:${PORTSDIR}/devel/mercurial \
|
|
tracd:${PORTSDIR}/www/trac
|
|
BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools
|
|
|
|
USE_PYTHON= yes
|
|
NO_BUILD= yes
|
|
USE_PYDISTUTILS=yes
|
|
PYDISTUTILS_PKGNAME= TracMercurial
|
|
PYDISTUTILS_NOEGGINFO= yes
|
|
|
|
PLIST_FILES= %%PYTHON_SITELIBDIR%%/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg
|
|
|
|
.if defined(BOOTSTRAP)
|
|
do-fetch:
|
|
${MKDIR} ${WRKDIR}
|
|
svn export http://svn.edgewall.org/repos/trac/plugins/0.11/mercurial-plugin ${WRKSRC}
|
|
${MKDIR} ${_DISTDIR}
|
|
cd ${WRKDIR} && \
|
|
tar cfvz ${_DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|