aboutsummaryrefslogtreecommitdiffstats
path: root/www/trac-tweakui/Makefile
blob: 4c2f9252cd03ce41dbd745ee60f79e789c6325d7 (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
# New ports collection makefile for: trac-tweakui
# Date created:                      Dec 09 2008
# Whom:                              glarkin
#
# $FreeBSD$
#

PORTNAME=   tweakui
PORTVERSION=    0.1.4465
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=    Easily tweak Trac pages with Javascript expressions

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

USE_ZIP=    yes
USE_DOS2UNIX=   yes

EXAMPLESDIR=    ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}

SUB_FILES=  pkg-message

WRKSRC=     ${WRKDIR}/trac${PORTNAME}plugin/0.11
USE_PYTHON= 2.3+
USE_PYDISTUTILS=    easy_install
PYDISTUTILS_PKGNAME=    TracTweakUI
PYDISTUTILS_PKGVERSION= ${PORTVERSION:R}
PLIST_SUB+= EGGVERSION="${PORTVERSION:R}" PYTHONVERSION=${_PYTHON_VERSION}
PYDISTUTILS_NOEGGINFO=  yes

post-install:
.if !defined(NOPORTEXAMPLES)
    @cd ${WRKSRC}/tractweakui/htdocs && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>