aboutsummaryrefslogtreecommitdiffstats
path: root/www/trac-revtree/Makefile
blob: fbf71f88b982231460105e30c7a88894a13f2492 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# New ports collection makefile for: trac-revtree
# Date created:                      Nov 10 2008
# Whom:                              glarkin
#
# $FreeBSD$
#

PORTNAME=   revtree
PORTVERSION=    0.6.3
CATEGORIES= www devel python
MASTER_SITES=   http://www.sourcehosting.net/freebsd/distfiles/ \
        LOCAL/glarkin
PKGNAMEPREFIX=  trac-
DISTNAME=   ${PORTNAME}plugin-${PORTVERSION}

MAINTAINER= glarkin@FreeBSD.org
COMMENT=    Graphical representation of an SVN repository

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

OPTIONS=    MINFOENH "Enable mergeinfo display enhancer" On \
        LOGENH "Enable log message display enhancer" Off

USE_ZIP=    yes

WRKSRC=     ${WRKDIR}/${PORTNAME}plugin/0.11
USE_PYTHON= yes
USE_PYDISTUTILS=    easy_install
PYDISTUTILS_PKGNAME=    TracRevtreePlugin
PYDISTUTILS_PKGVERSION= ${PORTVERSION}dev
PLIST_SUB+= EGGVERSION="${PORTVERSION}dev" PYTHONVERSION=${_PYTHON_VERSION}
PYDISTUTILS_NOEGGINFO=  yes

.include <bsd.port.pre.mk>

.if defined(WITH_MINFOENH)
MINFOENH_VERSION=   0.2.1
PLIST_SUB+= MINFOENH_EGGVERSION="${MINFOENH_VERSION}dev"
ENH1=""
.else
ENH1="@comment "
.endif
PLIST_SUB+= ENH1=${ENH1}

.if defined(WITH_LOGENH)
LOGENH_VERSION=     0.2.0
PLIST_SUB+= LOGENH_EGGVERSION="${LOGENH_VERSION}dev"
ENH2=""
.else
ENH2="@comment "
.endif
PLIST_SUB+= ENH2=${ENH2}

post-install:
# Install the selected enhancer plugins
.if defined(WITH_MINFOENH)
    @( cd ${WRKSRC}/enhancers/mergeinfoenhancer ; \
        ${PYEASYINSTALL_CMD} . )
.endif
.if defined(WITH_LOGENH)
    @( cd ${WRKSRC}/enhancers/logenhancer ; \
        ${PYEASYINSTALL_CMD} . )
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>