aboutsummaryrefslogtreecommitdiffstats
path: root/www/trac-mercurial/Makefile
blob: 7ac32e39ca020020ff499718d7e30b96c16b3a1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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.12.0.1
CATEGORIES= www devel python
MASTER_SITES=   LOCAL/pgollucci
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}-0.12.0.23dev-py${PYTHON_VER}.egg

.if defined(BOOTSTRAP)
do-fetch:
    ${MKDIR} ${WRKDIR}
    svn export http://svn.edgewall.org/repos/trac/plugins/0.12/mercurial-plugin ${WRKSRC}
    ${MKDIR} ${_DISTDIR}
    cd ${WRKDIR} && \
        tar cfvz ${_DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME}
.endif

.include <bsd.port.mk>