2012-10-30 20:45:57 +01:00
|
|
|
# Created by: Brooks Davis <brooks@freebsd.org>
|
2009-01-10 00:52:26 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ${PYDISTUTILS_PKGNAME:S;^Trac;;S;Plugin$;;:L}
|
2010-07-29 19:07:02 +02:00
|
|
|
PORTVERSION= 0.1.1
|
2012-10-30 20:45:57 +01:00
|
|
|
PORTREVISION= 1
|
2009-01-10 00:52:26 +01:00
|
|
|
CATEGORIES= www devel python
|
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= brooks
|
|
|
|
PKGNAMEPREFIX= trac-
|
|
|
|
DISTNAME= ${PORTNAME}plugin-${PORTVERSION}
|
2010-07-29 19:07:02 +02:00
|
|
|
DIST_SUBDIR= trac
|
2009-01-10 00:52:26 +01:00
|
|
|
|
2010-12-25 17:55:41 +01:00
|
|
|
MAINTAINER= brooks@FreeBSD.org
|
2012-10-30 20:45:57 +01:00
|
|
|
COMMENT= Plugin that provides a project Blog
|
2009-01-10 00:52:26 +01:00
|
|
|
|
|
|
|
RUN_DEPENDS+= htmldoc:${PORTSDIR}/textproc/htmldoc \
|
|
|
|
tracd:${PORTSDIR}/www/trac
|
|
|
|
|
2012-10-30 20:45:57 +01:00
|
|
|
USE_PYTHON= -2.7
|
|
|
|
USE_PYDISTUTILS= easy_install
|
2009-01-10 00:52:26 +01:00
|
|
|
PYDISTUTILS_PKGNAME= TracFullBlogPlugin
|
|
|
|
|
2010-07-29 19:07:02 +02:00
|
|
|
.if defined(BOOTSTRAP)
|
|
|
|
do-fetch:
|
|
|
|
${MKDIR} ${WRKDIR}
|
|
|
|
svn export http://trac-hacks.org/svn/fullblogplugin/0.11/ ${WRKSRC}
|
|
|
|
${MKDIR} ${_DISTDIR}
|
|
|
|
cd ${WRKDIR} && \
|
|
|
|
tar cfvz ${_DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME}
|
|
|
|
.endif
|
2009-01-10 00:52:26 +01:00
|
|
|
|
|
|
|
build-plist:
|
|
|
|
@${CAT} /dev/null > ${PLIST}
|
|
|
|
${FIND} ${EGG_PATH} -type f | \
|
|
|
|
${SED} -e 's|${EGG_PATH}|%%PYTHON_SITELIBDIR%%/${PYDISTUTILS_PKGNAME}-%%PORTVERSION%%-py%%PYTHON_VER%%.egg|' | \
|
|
|
|
${SORT} >> ${PLIST}
|
|
|
|
${FIND} ${EGG_PATH} -type d | \
|
|
|
|
${SED} -e 's|${EGG_PATH}|@dirrm %%PYTHON_SITELIBDIR%%/${PYDISTUTILS_PKGNAME}-%%PORTVERSION%%-py%%PYTHON_VER%%.egg|' | \
|
|
|
|
${SORT} -r >> ${PLIST}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|