76335c8c63
- add LICENSE (BSD3C) - set RUN_DEPENDS explicitly - turn database back-end selection into radio-option keeping existing logic: if PGSQL isn't selected SQLITE is used - use options helpers - do not use easy_install and convert to auto-generated packing list [1] - utilize shebangfix, instead of doing the same manually - remove no more needed x-generate-plist target - simplify examples installation and unmute it's commands - do not install rpm stuff, it's not linux here anyway - whitespace fixes in pkg-descr - bump PORTREVISION PR: 182332 Requested by: Volodymyr Kostyrko <arcade@b1t.name> [1] Submitted by: rm (myself) Approved by: maintainer timeout - add upstream patch to fix wiki bracketed link with Genshi 0.7 see http://trac.edgewall.org/changeset/11683 for details PR: 181419 Submitted by: Hung-Yi Chen <gaod@hychen.org> Approved by: maintainer timeout
61 lines
2.4 KiB
Makefile
61 lines
2.4 KiB
Makefile
# Created by: Kuei-Feng Li <thinker@branda.to>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= trac
|
|
PORTVERSION= 1.0.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= www devel python
|
|
MASTER_SITES= http://ftp.edgewall.com/pub/trac/ \
|
|
ftp://ftp.edgewall.com/pub/trac/
|
|
DISTNAME= Trac-${PORTVERSION}
|
|
|
|
MAINTAINER= clsung@FreeBSD.org
|
|
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= SILVERCITY DOCUTILS PYGMENTS TZ SVN
|
|
OPTIONS_DEFAULT= SILVERCITY DOCUTILS PYGMENTS TZ SVN SQLITE
|
|
OPTIONS_RADIO= DATABASE
|
|
OPTIONS_RADIO_DATABASE= PGSQL SQLITE
|
|
SILVERCITY_DESC= Silvercity for syntax highlighting
|
|
DOCUTILS_DESC= Allow additional text markup
|
|
PYGMENTS_DESC= Use generic syntax highlighter
|
|
TZ_DESC= Process Time Zones
|
|
|
|
SILVERCITY_RUN_DEPENDS= ${LOCALBASE}/bin/source2html.py:${PORTSDIR}/textproc/silvercity
|
|
DOCUTILS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docutils>0:${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= *
|
|
|
|
USES= 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= 2
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_AUTOPLIST= yes
|
|
USE_RC_SUBR= tracd
|
|
|
|
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>
|