aboutsummaryrefslogtreecommitdiffstats
path: root/www/trac/Makefile
blob: aa378fea968a6d541ab06389b25751194433a0a6 (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
# Created by: Kuei-Feng Li <thinker@branda.to>
# $FreeBSD$

PORTNAME=   trac
PORTVERSION=    1.0.4
CATEGORIES= www devel python
MASTER_SITES=   http://ftp.edgewall.com/pub/trac/ \
        ftp://ftp.edgewall.com/pub/trac/
DISTNAME=   Trac-${PORTVERSION}

MAINTAINER= antont@inbox.lv
COMMENT=    Enhanced wiki and issue tracking system for software projects

LICENSE=    BSD3CLAUSE

BUILD_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}Babel>=0.9.5:${PORTSDIR}/devel/py-babel \
        ${PYTHON_PKGNAMEPREFIX}Genshi>=0.6:${PORTSDIR}/textproc/py-genshi
RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}Babel>=0.9.5:${PORTSDIR}/devel/py-babel \
        ${PYTHON_PKGNAMEPREFIX}Genshi>=0.6:${PORTSDIR}/textproc/py-genshi

OPTIONS_DEFINE=     DOCUTILS PYGMENTS TZ SVN
OPTIONS_DEFAULT=    DOCUTILS PYGMENTS TZ SVN SQLITE
OPTIONS_RADIO=      DATABASE
OPTIONS_RADIO_DATABASE= PGSQL SQLITE
DOCUTILS_DESC=      Allow additional text markup
PYGMENTS_DESC=      Use generic syntax highlighter
TZ_DESC=        Process Time Zones

DOCUTILS_RUN_DEPENDS=   ${PYTHON_PKGNAMEPREFIX}docutils>=0.3.9:${PORTSDIR}/textproc/py-docutils
PYGMENTS_RUN_DEPENDS=   ${PYTHON_PKGNAMEPREFIX}pygments>0:${PORTSDIR}/textproc/py-pygments
TZ_RUN_DEPENDS=     ${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz
PGSQL_RUN_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}psycopg2>0:${PORTSDIR}/databases/py-psycopg2
SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3
SVN_RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}subversion>0:${PORTSDIR}/devel/py-subversion

CONFLICTS=      ja-trac-[0-9]*
PORTEXAMPLES=       *
PORTDATA=       *
MAKE_ENV=       HOME=/dev/null

USES=           python:2 shebangfix
SHEBANG_FILES=      contrib/cgi-bin/trac.fcgi contrib/cgi-bin/trac.cgi \
            trac/tests/functional/better_twill.py trac/tests/functional/tester.py \
            trac/tests/functional/testenv.py trac/tests/functional/compat.py \
            trac/tests/functional/__init__.py contrib/emailfilter.py \
            contrib/checkwiki.py contrib/htpasswd.py
USE_PYTHON=     distutils autoplist
USE_RC_SUBR=        tracd
SUB_LIST+=      PYTHON_CMD=${PYTHON_CMD}

post-install:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/sample-plugins
    ${FIND} ${WRKSRC}/contrib -type f -maxdepth 1 -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/ \;
    (cd ${WRKSRC}/sample-plugins && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/sample-plugins)
    @${MKDIR} ${STAGEDIR}${DATADIR}/cgi-bin
    ${INSTALL_SCRIPT} ${WRKSRC}/contrib/cgi-bin/* ${STAGEDIR}${DATADIR}/cgi-bin

.include <bsd.port.mk>