1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/www/trac-tweakui/Makefile

42 lines
1013 B
Makefile

# Created by: glarkin
# $FreeBSD$
PORTNAME= tweakui
PORTVERSION= 0.1.7413
PORTREVISION= 2
CATEGORIES= www devel python
MASTER_SITES= http://www.sourcehosting.net/freebsd/distfiles/ \
LOCAL/glarkin
PKGNAMEPREFIX= trac-
DISTNAME= ${PORTNAME}plugin-${PORTVERSION}
MAINTAINER= glarkin@FreeBSD.org
COMMENT= Easily tweak Trac pages with JavaScript expressions
RUN_DEPENDS+= tracd:${PORTSDIR}/www/trac
USE_ZIP= yes
USE_DOS2UNIX= yes
DOS2UNIX_REGEX= .*\.(css|html|js|py|txt)$
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
SUB_FILES= pkg-message
WRKSRC= ${WRKDIR}/trac${PORTNAME}plugin/0.11
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
PYDISTUTILS_PKGNAME= TracTweakUI
PYDISTUTILS_PKGVERSION= ${PORTVERSION:R}
PLIST_SUB+= EGGVERSION="${PORTVERSION:R}" PYTHONVERSION=${PYTHON_VER}
PYDISTUTILS_NOEGGINFO= yes
NO_STAGE= yes
post-install:
.if !defined(NOPORTEXAMPLES)
@cd ${WRKSRC}/tractweakui/htdocs && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>