freebsd-ports/www/trac-discussion/Makefile
Brooks Davis a9ebfac7d6 The package for the trac-spam-filter port is rather bogusly named
trac-TracSpamFilter so use that for the version based RUN_DEPEND.
2010-07-22 21:05:39 +00:00

51 lines
1.5 KiB
Makefile

# New ports collection makefile for: trac-discussion
# Date created: March 23, 2010
# Whom: Brooks Davis <brooks@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= ${PYDISTUTILS_PKGNAME:S;^Trac;;S;Plugin$;;:L}
PORTVERSION= 0.7
PORTREVISION= 1
CATEGORIES= www devel python
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= brooks
PKGNAMEPREFIX= trac-
MAINTAINER= brooks@freebsd.org
COMMENT= A discussion forum plugin for Trac
RUN_DEPENDS+= tracd:${PORTSDIR}/www/trac \
trac-TracSpamFilter>=0.2.1:${PORTSDIR}/www/trac-spam-filter
BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools
USE_PYTHON= yes
USE_PYDISTUTILS=easy_install
PYDISTUTILS_PKGNAME= TracDiscussion
# Maintainter targets below this point
# Retrieve the latest version from SVN and package in a tarball.
.if defined(BOOTSTRAP)
FETCH_DEPENDS+= svn:${PORTSDIR}/devel/subversion
do-fetch:
${MKDIR} ${WRKDIR}
cd ${WRKDIR} && \
svn export http://trac-hacks.org/svn/discussionplugin/0.11/ \
${DISTNAME}
cd ${WRKDIR} && tar cvf ${DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME}
.endif
# Create a pkg-plist after the package is installed.
EGGDIR= ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG}
PLIST_EGGDIR= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
build-plist:
${FIND} ${EGGDIR} -type f | \
${SED} -e 's|${EGGDIR}|${PLIST_EGGDIR}|' | \
${SORT} > pkg-plist
${FIND} ${EGGDIR} -type d | \
${SED} -e 's|${EGGDIR}|@dirrm ${PLIST_EGGDIR}|' | \
${SORT} -r >> pkg-plist
.include <bsd.port.mk>