1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/www/trac-fullblog/Makefile
Ruslan Makhmatkhanov 55827c4934 - do not directly depend on setuptools, use USE_DISTUTILS instead
- bump PORTREVISION because of dependency change
- remove indefinite article in COMMENT
- trim Makefile header
- limit python version to 2.x only
- simplify pkg-plist entries

PR:		173170
Submitted by:	rm (myself)
Approved by:	brooks (maintainer, by mail)
Feature safe:	yes
2012-10-30 19:45:57 +00:00

43 lines
1.2 KiB
Makefile

# Created by: Brooks Davis <brooks@freebsd.org>
# $FreeBSD$
PORTNAME= ${PYDISTUTILS_PKGNAME:S;^Trac;;S;Plugin$;;:L}
PORTVERSION= 0.1.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= brooks@FreeBSD.org
COMMENT= Plugin that provides a project Blog
RUN_DEPENDS+= htmldoc:${PORTSDIR}/textproc/htmldoc \
tracd:${PORTSDIR}/www/trac
USE_PYTHON= -2.7
USE_PYDISTUTILS= easy_install
PYDISTUTILS_PKGNAME= TracFullBlogPlugin
.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
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>