summaryrefslogtreecommitdiff
path: root/devel/codeville/Makefile
blob: 84e635608fc717a230719b946d053e81870784f3 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# New ports collection makefile for:	Codeville
# Date created:		Wed Dec  8 01:00:39 UTC 2004
# Whom:                 Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	codeville
PORTVERSION=	0.1.16
PORTREVISION=	1
CATEGORIES=	devel python
MASTER_SITES=	http://codeville.org/download/
DISTNAME=	Codeville-${PORTVERSION}

MAINTAINER=	lioux@FreeBSD.org
COMMENT=	An "anarchic" control version system without unnecessary re-merges

USE_PYTHON=	yes
USE_PYDISTUTILS=	yes

PORTDOCS=	\
		LICENSE.txt

EXAMPLE_FILES=	\
		cdvserver.conf.sample

post-install:
# examples
	@${MKDIR} ${EXAMPLESDIR}
.for file in ${EXAMPLE_FILES}
	@${INSTALL_DATA} ${WRKSRC}/${file} ${EXAMPLESDIR}
.endfor
# documentation
.ifndef(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
. for file in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
. endfor
.endif

pre-everything::
.ifndef(WITHOUT_PSYCO)
	@${ECHO_MSG} '===> Define WITHOUT_PSYCO to disable devel/py-psyco optimization'
.endif

.include <bsd.port.pre.mk>

.if ${ARCH} != "i386"
WITHOUT_PSYCO=  yes
.endif

.ifndef(WITHOUT_PSYCO)
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco

. for patch in \
		cdv \
		cdv-agent \
		cdvpasswd \
		cdvserver \
		cdvupgrade
EXTRA_PATCHES+= ${FILESDIR}/extra-psyco-patch-${patch}
. endfor
.endif

.include <bsd.port.post.mk>