2004-04-20 18:08:54 +00:00
|
|
|
# New ports collection makefile for: trac
|
|
|
|
# Date created: 17 April 2004
|
|
|
|
# Whom: Kuei-Feng Li <thinker@branda.to>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= trac
|
2006-05-06 09:47:42 +00:00
|
|
|
PORTVERSION= 0.9.5
|
2006-05-24 07:30:14 +00:00
|
|
|
PORTREVISION= 1
|
2005-12-17 16:37:37 +00:00
|
|
|
CATEGORIES= japanese www devel python
|
|
|
|
MASTER_SITES= http://dist.bsdlab.org/ \
|
|
|
|
http://www.i-act.co.jp/project/products/downloads/
|
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}-ja-1.zip
|
2004-04-20 18:08:54 +00:00
|
|
|
|
2005-12-17 16:37:37 +00:00
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
2004-04-20 18:08:54 +00:00
|
|
|
COMMENT= An enhanced wiki and issue tracking system for software projects
|
|
|
|
|
2006-01-27 21:17:06 +00:00
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20 \
|
2004-04-20 18:08:54 +00:00
|
|
|
${PYTHON_SITELIBDIR}/neo_cgi.so:${PORTSDIR}/www/clearsilver-python \
|
2005-12-17 16:37:37 +00:00
|
|
|
${PYTHON_SITELIBDIR}/svn/__init__.py:${PORTSDIR}/devel/subversion-python \
|
|
|
|
${PYTHON_SITELIBDIR}/japanese.pth:${PORTSDIR}/japanese/pycodec
|
2005-07-17 21:10:06 +00:00
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
2004-04-20 18:08:54 +00:00
|
|
|
|
2005-11-04 12:30:10 +00:00
|
|
|
OPTIONS= SILVERCITY "Use Silvercity for syntax highlighting" On \
|
|
|
|
DOCUTILS "Allow additional text markup" On
|
2006-03-26 23:09:42 +00:00
|
|
|
CONFLICTS= trac-0.*
|
2005-12-17 16:37:37 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-ja-1
|
2005-11-04 12:30:10 +00:00
|
|
|
|
2005-12-17 16:37:37 +00:00
|
|
|
USE_ZIP= yes
|
2004-04-20 18:08:54 +00:00
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
|
2005-03-01 22:05:24 +00:00
|
|
|
MAN1= trac-admin.1 tracd.1 tracdb2env.1
|
|
|
|
|
2004-04-20 18:08:54 +00:00
|
|
|
# This target is only meant to be used by the port maintainer.
|
|
|
|
x-generate-plist:
|
2005-02-03 16:22:10 +00:00
|
|
|
(${PORTSDIR}/Tools/scripts/plist -d -m ${MTREE_FILE} ${PREFIX} \
|
|
|
|
| ${SED} -E \
|
|
|
|
's,.*share/nls/.+$$,,g \
|
|
|
|
;s,@dirrm share/man(/.*)?$$,,g \
|
|
|
|
;s,${PYTHON_SITELIBDIR:S,^${PYTHONBASE}/,,},%%PYTHON_SITELIBDIR%%,g \
|
2005-12-07 02:14:28 +00:00
|
|
|
;s,share/trac,%%DATADIR%%,g \
|
2005-02-03 16:22:10 +00:00
|
|
|
;s,@dirrm (%%PYTHON_SITELIBDIR%%|${PYTHON_LIBDIR:S,${PYTHONBASE}/,,})$$,,g \
|
|
|
|
' | ${TR} -s '\n') > temp-pkg-plist
|
2004-04-20 18:08:54 +00:00
|
|
|
|
2005-12-27 23:26:57 +00:00
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -name '*.orig' | ${XARGS} ${RM}
|
|
|
|
|
2004-07-13 00:34:25 +00:00
|
|
|
post-install:
|
2005-12-07 02:14:28 +00:00
|
|
|
@${ECHO_CMD}
|
2004-07-13 00:34:25 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2005-12-07 02:14:28 +00:00
|
|
|
@${ECHO_CMD}
|
2004-07-13 00:34:25 +00:00
|
|
|
|
2005-11-04 12:30:10 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_SILVERCITY)
|
|
|
|
RUN_DEPENDS+= ${PREFIX}/bin/source2html.py:${PORTSDIR}/textproc/silvercity
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DOCUTILS)
|
|
|
|
RUN_DEPENDS+= ${PREFIX}/bin/rst2html:${PORTSDIR}/textproc/py-docutils
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|