aboutsummaryrefslogtreecommitdiff
path: root/www/trac-gantt/Makefile
blob: bd97758a04576398779ba30d010f53141f6839b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# New ports collection makefile for: trac-gantt
# Date created:                      July 12 2006
# Whom:                              Dryice Liu <dryice@dryice.name>
#
# $FreeBSD$
#

PORTNAME=	TracGantt
PORTVERSION=	0.3.2a
CATEGORIES=	www devel python
MASTER_SITES=	http://willbarton.com/files/ \
		http://dryice.name/computer/FreeBSD/distfiles/
PKGNAMEPREFIX=	trac-

MAINTAINER=	dryice@dryice.name
COMMENT=	A plugin to creates Gantt charts for trac

RUN_DEPENDS+=	tracd:${PORTSDIR}/www/trac
BUILD_DEPENDS+=	easy_install:${PORTSDIR}/devel/py-setuptools

USE_PYTHON=	2.3+
PLIST_SUB+=	PORTVERSION=${PORTVERSION} PYTHONVERSION=${_PYTHON_VERSION}

.if !defined(NOPORTDOCS)
PORTDOCS=	PKG-INFO README
.endif

do-build:
	cd ${WRKSRC}; \
	${PYTHON_CMD} setup.py bdist_egg

do-install:
.for i in *
	${INSTALL_DATA} ${WRKSRC}/dist/${i} ${PYTHON_SITELIBDIR}/
.endfor

.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>