freebsd-ports/www/trac-multirepos/Makefile
Martin Wilke c424711199 Multiple repositories Trac version
----------------------------------

This branch adds support for accessing multiple repositories inside one Trac
project and based on 0.12 development version of Trac.

Trac uses a minimalistic approach to web-based software project management.
Our mission; to help developers write great software while staying out of
the way.  Trac should impose as little as possible on a team's established
development process and policies.

What is Trac?

    * An integrated system for managing software projects
    * An enhanced wiki
    * A flexible web-based issue tracker
    * An interface to the Subversion revision control system

At the core of Trac lies an integrated wiki and issue/bug database.  Using
wiki markup, all objects managed by Trac can directly link to other
issues/bug reports, code changesets, documentation and files.

WWW: http://trac.edgewall.org/

PR:		ports/134314
Submitted by:	Alexey V. Degtyarev <alexey at renatasystems.org>
2009-05-16 22:35:20 +00:00

105 lines
3.1 KiB
Makefile

# New ports collection makefile for: trac-multirepos
# Date created: Tue 07 May 2009
# Whom: Alexey V. Degtyarev <alexey@renatasystems.org>
#
# $FreeBSD$
#
PORTNAME= multirepos
PORTVERSION= 0.12.8173
CATEGORIES= www devel python
MASTER_SITES= ftp://renatasystems.org/pub/FreeBSD/ports/distfiles/
PKGNAMEPREFIX= trac-
DISTNAME= Trac-${PORTNAME}-${PORTVERSION}
MAINTAINER= alexey@renatasystems.org
COMMENT= Multiple repositories Trac version
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Genshi-devel>=0.6:${PORTSDIR}/textproc/py-genshi-devel
RUN_DEPENDS= ${BUILD_DEPENDS}
OPTIONS= SILVERCITY "Use Silvercity for syntax highlighting" On \
DOCUTILS "Allow additional text markup" On \
PYGMENTS "Use generic syntax highlighter" On \
TZ "Process Time Zones" On \
PGSQL "Use PostgreSQL instead of SQLite3" Off \
SUBVERSION "Support for subversion RCS" On
CONFLICTS= ja-trac-0.* trac-0.11.*
USE_RC_SUBR= tracd
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
WRKSRC= ${WRKDIR}/${PORTNAME}
PYDISTUTILS_PKGNAME= Trac
PYDISTUTILS_NOEGGINFO= yes
PYDISTUTILS_PKGVERSION= ${PORTVERSION:R}${PORTNAME}
SUB_LIST= PYTHON_CMD=${PYTHON_CMD}
SUB_FILES= tracd
# This target is only meant to be used by the port maintainer.
x-generate-plist:
(${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 \
;s,${DATADIR_REL},%%DATADIR%%,g \
;s,${EXAMPLESDIR_REL},%%EXAMPLESDIR%%,g \
;s,${PYEASYINSTALL_EGG},%%PYEASYINSTALL_EGG%%,g \
;s,@dirrm (%%PYTHON_SITELIBDIR%%|${PYTHON_LIBDIR:S,${PYTHONBASE}/,,})$$,,g \
' | ${TR} -s '\n') > temp-pkg-plist
pre-install:
${REINPLACE_CMD} -i '' -e 's|/usr/bin/python|${PYTHON_CMD}|' \
${WRKSRC}/cgi-bin/trac.fcgi ${WRKSRC}/cgi-bin/trac.cgi
post-install:
${MKDIR} ${EXAMPLESDIR}
. for d in rpm workflow
${MKDIR} ${EXAMPLESDIR}/${d}
${INSTALL_DATA} ${WRKSRC}/contrib/${d}/* ${EXAMPLESDIR}/${d}/
${RM} -rf ${WRKSRC}/contrib/${d}
. endfor
${INSTALL_DATA} ${WRKSRC}/contrib/* ${EXAMPLESDIR}
${MKDIR} ${DATADIR}/cgi-bin
${INSTALL_SCRIPT} ${WRKSRC}/cgi-bin/* ${DATADIR}/cgi-bin
${CAT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
.if defined(WITH_SILVERCITY)
RUN_DEPENDS+= ${LOCALBASE}/bin/source2html.py:${PORTSDIR}/textproc/silvercity
.endif
.if defined(WITH_DOCUTILS)
RUN_DEPENDS+= ${LOCALBASE}/bin/rst2html:${PORTSDIR}/textproc/py-docutils
.endif
.if defined(WITH_PYGMENTS)
RUN_DEPENDS+= ${LOCALBASE}/bin/pygmentize:${PORTSDIR}/textproc/py-pygments
.endif
.if defined(WITH_TZ)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz
.endif
.if defined(WITH_PGSQL)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopg2/__init__.py:${PORTSDIR}/databases/py-psycopg2
.else
. if ${PYTHON_REL} < 250
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite23
. else
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
. endif
.endif
.if !defined(WITHOUT_SUBVERSION)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/svn/__init__.py:${PORTSDIR}/devel/py-subversion
.endif
.include <bsd.port.post.mk>