2009-12-31 18:20:39 +00:00
|
|
|
# New ports collection makefile for: trac-vote
|
|
|
|
# Date created: Dec 31, 2009
|
|
|
|
# Whom: Brooks Davis <brooks@freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ${PYDISTUTILS_PKGNAME:S;^Trac;;S;Plugin$;;:L}
|
|
|
|
PORTVERSION= 0.1.2
|
2010-05-18 04:08:05 +00:00
|
|
|
PORTREVISION= 2
|
2009-12-31 18:20:39 +00:00
|
|
|
CATEGORIES= www devel python
|
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= brooks
|
|
|
|
PKGNAMEPREFIX= trac-
|
|
|
|
|
2010-12-25 16:55:41 +00:00
|
|
|
MAINTAINER= brooks@FreeBSD.org
|
2009-12-31 18:20:39 +00:00
|
|
|
COMMENT= A plugin for voting on Trac resources
|
|
|
|
|
|
|
|
RUN_DEPENDS+= tracd:${PORTSDIR}/www/trac
|
|
|
|
BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools
|
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS=easy_install
|
|
|
|
PYDISTUTILS_PKGNAME= TracVote
|
|
|
|
|
|
|
|
# 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/voteplugin/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>
|