blob: 4775e240a35366a68eb76e72a3d9c7921ef2921f (
plain)
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
66
67
68
69
70
|
# Ports collection makefile for: Chora
# Date created: Mon Nov 26, 2001
# Whom: Thierry Thomas (<thierry@pompo.net>)
#
# $FreeBSD$
#
PORTNAME= chora
PORTVERSION= 2.0.2
PORTREVISION= 1
CATEGORIES= devel www
DIST_SUBDIR= horde
MAINTAINER= beech@FreeBSD.org
COMMENT= The Horde CVS web-viewer
#-----------------------------------------------------------------------
# You may define these options:
#
# - WITHOUT_SVN : if you don't need subversion;
#
# - WITHOUT_CVSPS : if you don't need cvsps;
#
# - WITHOUT_CVSGRAPH : if you don't need cvsgraph;
#
# - A4 or DJ : if you run enscript with this paper size.
#
#-----------------------------------------------------------------------
.if !defined(WITHOUT_SVN)
RUN_DEPENDS+= ${LOCALBASE}/bin/svn:${PORTSDIR}/devel/subversion
.endif
.if !defined(WITHOUT_CVSPS)
RUN_DEPENDS+= ${LOCALBASE}/bin/cvsps:${PORTSDIR}/devel/cvsps-devel
.endif
.if !defined(WITHOUT_CVSGRAPH)
RUN_DEPENDS+= ${LOCALBASE}/bin/cvsgraph:${PORTSDIR}/devel/cvsgraph
.endif
# Specify where your repository belongs.
# (You can reconfigure it after installation anyway)
.if defined(PACKAGE_BUILDING) || !defined(CVSROOT) || empty(CVSROOT)
CVSROOT= /home/cvs
.endif
USE_HORDE= base pkg-message
USE_GETTEXT= yes
PORTDOCS= README BUGS CHANGES CREDITS INSTALL RELEASE_NOTES TODO
pre-configure:
@${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|" \
-e "s|/usr/bin/cvsgraph|${LOCALBASE}/bin/cvsgraph|" \
-e "s|/usr/bin/svn|${LOCALBASE}/bin/svn|" \
${WRKSRC}/config/conf.xml
@${REINPLACE_CMD} -e "s|%%CVSROOT%%|${CVSROOT}|" \
-e "s|%%CONFDIR%%|${CONFDIR}|" \
${WRKSRC}/config/sourceroots.php.dist
pre-install:
.if !defined(WITHOUT_CVSPS)
@if ! ${PKG_INFO} -I -x cvsps-devel > /dev/null ; then \
${ECHO_MSG} "Error: cvsps-devel is required, not cvsps." ; \
${FALSE} ; \
fi
.endif
.include "${.CURDIR}/../../www/horde-base/bsd.horde.mk"
.include <bsd.port.mk>
|