head	1.3;
access;
symbols
	RELEASE_8_3_0:1.1
	RELEASE_9_0_0:1.1;
locks; strict;
comment	@# @;


1.3
date	2012.12.26.11.45.08;	author svnexp;	state Exp;
branches;
next	1.2;

1.2
date	2012.11.17.06.03.08;	author svnexp;	state Exp;
branches;
next	1.1;

1.1
date	2011.08.22.11.58.24;	author rea;	state Exp;
branches;
next	;


desc
@@


1.3
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309511
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309511 | rm | 2012-12-26 10:04:46 +0000 (Wed, 26 Dec 2012) | 13 lines
## SVN ##
## SVN ## - do not directly depend on py-setuptools, use USE_DISTUTILS=easy_install instead
## SVN ## - bump PORTREVISION because of dependencies change
## SVN ## - trim Makefile header
## SVN ## - remove indefinite article from COMMENT
## SVN ## - limit python version to 2.x
## SVN ## - remove checks for deprecated python versions
## SVN ## - general Makefile clean-up
## SVN ## - move pkg-plist content into Makefile:PLIST_FILES
## SVN ##
## SVN ## PR:		173838
## SVN ## Submitted by:	rm (myself)
## SVN ## Approved by:	maintainer timeout (~2 months)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# Created by: Eygene Ryabinkin <rea@@FreeBSD.org>
# $FreeBSD: head/www/trac-tickettemplate/Makefile 309511 2012-12-26 10:04:46Z rm $

PORTNAME=	tickettemplate
PORTVERSION=	0.7
PORTREVISION=	1
CATEGORIES=	www python
MASTER_SITES=	http://dist.codelabs.ru/fbsd/trac-${PORTNAME}/
PKGNAMEPREFIX=	trac-
DISTNAME=	trac${PORTNAME}plugin-r${REL}

MAINTAINER=	rea@@FreeBSD.org
COMMENT=	Plugin for making ticket templates

RUN_DEPENDS+=	trac>=0.11:${PORTSDIR}/www/trac

USE_PYTHON=	-2.7
USE_PYDISTUTILS=	easy_install
PYDISTUTILS_PKGNAME=	TracTicketTemplate
USE_ZIP=	yes

WRKSRC=		${WRKDIR}/trac${PORTNAME}plugin/0.11
REL=		10605
PLIST_FILES=	%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%

.include <bsd.port.mk>
@


1.2
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for: trac-autocomplete
# Date created:                      August 18, 2011
# Whom:                              Eygene Ryabinkin <rea@@FreeBSD.org>
#
# $FreeBSD: head/www/trac-tickettemplate/Makefile 300897 2012-07-14 14:29:18Z beat $
#
d6 1
d13 1
a13 1
COMMENT=	A plugin for making ticket templates
a14 1
BUILD_DEPENDS+=	easy_install:${PORTSDIR}/devel/py-setuptools
d17 3
a19 1
USE_PYTHON=	yes
a20 12
NO_BUILD=	yes

.include <bsd.port.pre.mk>

# Python < 2.6 needs simplejson package.
.if ${PYTHON_VER} == 2.4 || ${PYTHON_VER} == 2.5
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}simplejson:${PORTSDIR}/devel/py-simplejson
.endif

USE_PYDISTUTILS=	yes
PYDISTUTILS_PKGNAME=	TracTicketTemplate
PYDISTUTILS_NOEGGINFO=	yes
d24 1
a24 14
PLIST_SUB+=	PYTHON_VER=${PYTHON_VER}

# We must fix file permissions -- ZIP file have 0000 for every file.
# Directory permissions are fine (they aren't stored inside ZIP
# file), but we set them too -- just in case.
post-extract:
	@@${FIND} ${WRKSRC} -type f | ${XARGS} ${CHMOD} 644
	@@${FIND} ${WRKSRC} -type d | ${XARGS} ${CHMOD} 755

# Target to generate packaging list
plist:
	@@${FIND} ${PYTHON_SITELIBDIR}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg -type f | ${SED} -e's|^${PYTHON_SITELIBDIR}/|%%PYTHON_SITELIBDIR%%/|;s|/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py[[:digit:]\.]*.egg|/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py%%PYTHON_VER%%.egg|'
	@@${FIND} ${PYTHON_SITELIBDIR}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg -type d -mindepth 1 | ${SORT} -r | ${SED} -e's|^${PYTHON_SITELIBDIR}/|@@dirrm %%PYTHON_SITELIBDIR%%/|;s|/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py[[:digit:]\.]*.egg|/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py%%PYTHON_VER%%.egg|'
	@@[ -d ${PYTHON_SITELIBDIR}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg ] && ${ECHO} '@@dirrm %%PYTHON_SITELIBDIR%%/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py%%PYTHON_VER%%.egg'
d26 1
a26 1
.include <bsd.port.post.mk>
@


1.1
log
@New port: www/trac-tickettemplate

TicketTemplate enable users to create ticket using templates
which can be customized by Trac administrator and themselves.

Approved by: erwin (mentor)
Feature safe: yes
@
text
@d5 1
a5 1
# $FreeBSD$
@

