# Created by: Benoit Calvez <benoit@litchis.org>
# $FreeBSD: branches/RELEASE_8_4_0/devel/py-pytemplate/Makefile 306029 2012-10-17 18:07:28Z rm $

PORTNAME=	pytemplate
PORTVERSION=	1.5.1
PORTREVISION=	2
CATEGORIES=	devel python
MASTER_SITES=	http://www.bulot.org/downloads/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	benoit@litchis.org
COMMENT=	Pytemplate gives python developers a starting framework

LICENSE=	GPLv3

USE_PYTHON=	-2.7
USE_PYDISTUTILS=	yes

EXAMPLESDIR=	${PREFIX}/share/examples/py-pytemplate

EXAMPLES=	daemonexample.py example.py threadexample.py

post-install:
.if !defined(NOPORTEXAMPLES)
	@${MKDIR} ${EXAMPLESDIR}
.for f in ${EXAMPLES}
	@${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}
.endfor
.endif

.include <bsd.port.mk>
