freebsd-ports/japanese/trac/Makefile
Jun Kuriyama 91e20b6a8f - Upgrade to 0.10.4-ja-1 (1).
- Use $DISTNAME rather than $DISTFILES.
- Sync with www/trac.
  = installs contrib files into $EXAMPLESDIR.
  = prefer py-pysqlite23 instead of py-pysqlite20 for depending SQLite.
  = sort plist.

PR:		ports/112833 (1)
Submitted by:	TAKATSU Tomonari <tota@rtfm.jp> (1)
2007-10-13 08:45:17 +00:00

77 lines
2.2 KiB
Makefile

# New ports collection makefile for: trac
# Date created: 17 April 2004
# Whom: Kuei-Feng Li <thinker@branda.to>
#
# $FreeBSD$
#
PORTNAME= trac
PORTVERSION= 0.10.4
CATEGORIES= japanese www devel python
MASTER_SITES= http://dist.bsdlab.org/ \
http://www.i-act.co.jp/project/products/downloads/
DISTNAME= ${PORTNAME}-${PORTVERSION}-ja-1
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= An enhanced wiki and issue tracking system for software projects
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/neo_cgi.so:${PORTSDIR}/www/clearsilver-python
RUN_DEPENDS= ${BUILD_DEPENDS}
OPTIONS= SILVERCITY "Use Silvercity for syntax highlighting" On \
DOCUTILS "Allow additional text markup" On \
PGSQL "Use PostgreSQL instead of SQLite3" Off \
SUBVERSION "Support for subversion RCS" On
CONFLICTS= trac-0.*
USE_ZIP= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= trac
PYDISTUTILS_PKGVERSION= 0.10.4
MAN1= trac-admin.1 tracd.1
# 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,share/trac,%%DATADIR%%,g \
;s,share/examples/trac,%%EXAMPLESDIR%%,g \
;s,@dirrm (%%PYTHON_SITELIBDIR%%|${PYTHON_LIBDIR:S,${PYTHONBASE}/,,})$$,,g \
' | ${TR} -s '\n') > temp-pkg-plist
post-patch:
${FIND} ${WRKSRC} -name '*.orig' | ${XARGS} ${RM}
post-install:
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/contrib/* ${EXAMPLESDIR}
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.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
.if defined(WITH_PGSQL)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopg2/__init__.py:${PORTSDIR}/databases/py-psycopg2
.else
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite23
.endif
.if !defined(WITHOUT_SUBVERSION)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/svn/__init__.py:${PORTSDIR}/devel/subversion-python
.endif
.include <bsd.port.post.mk>