mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= ${PYDISTUTILS_PKGNAME:S;^Trac;;S;Plugin$;;:L}
|
|
PORTVERSION= 0.2.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= www devel python
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= brooks
|
|
PKGNAMEPREFIX= trac-
|
|
DISTNAME= ${PORTNAME}plugin-${PORTVERSION}
|
|
DIST_SUBDIR= trac
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Plugin that provides a project Blog
|
|
|
|
RUN_DEPENDS+= trac-fullblog>=0.1.1:${PORTSDIR}/www/trac-fullblog
|
|
|
|
USE_PYTHON= -2.7
|
|
USE_PYDISTUTILS= easy_install
|
|
NO_STAGE= yes
|
|
PYDISTUTILS_PKGNAME= TracFullBlogNotificationPlugin
|
|
|
|
.if defined(BOOTSTRAP)
|
|
do-fetch:
|
|
${MKDIR} ${WRKDIR}
|
|
svn export http://trac-hacks.org/svn/fullblognotificationplugin/0.12/ \
|
|
${WRKSRC}
|
|
${MKDIR} ${_DISTDIR}
|
|
cd ${WRKDIR} && \
|
|
tar cfvz ${_DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME}
|
|
.endif
|
|
|
|
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>
|