blob: f19848094c7890cdff85f17de23789b7999f8590 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/viewcvs/viewcvs-0.9.4.ebuild,v 1.2 2005/08/23 00:43:43 swegener Exp $
inherit webapp
DESCRIPTION="Viewcvs, a web interface to cvs and subversion"
HOMEPAGE="http://viewcvs.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="viewcvs"
KEYWORDS="~ppc ~sparc ~x86"
IUSE="cvsgraph enscript"
RDEPEND="|| (
>=dev-util/cvs-1.11
dev-util/subversion
)
>=net-www/webapp-config-1.11-r1
dev-lang/python
>=app-text/rcs-5.7
sys-apps/diffutils
cvsgraph? ( dev-util/cvsgraph )
enscript? ( app-text/enscript )
net-www/apache"
src_install() {
webapp_src_preinst
dodir ${MY_CGIBINDIR}/${PN} ${MY_HOSTROOTDIR}/${PN}
exeinto ${MY_CGIBINDIR}/${PN}
doexe cgi/viewcvs.cgi cgi/query.cgi standalone.py
cp -r lib/ ${D}/${MY_HOSTROOTDIR}/${PN}/
cp -r templates/ ${D}/${MY_HOSTROOTDIR}/${PN}/
cp -r tools/ ${D}/${MY_HOSTROOTDIR}/${PN}/
cp -r tests/ ${D}/${MY_HOSTROOTDIR}/${PN}/
insinto ${MY_HOSTROOTDIR}/${PN}
newins cgi/viewcvs.conf.dist viewcvs.conf
newins cgi/cvsgraph.conf.dist cvsgraph.conf
dodoc INSTALL TODO CHANGES README
dohtml -r website/*
dosym /usr/share/doc/${PF}/html ${MY_HTDOCSDIR}/doc
webapp_configfile ${MY_HOSTROOTDIR}/${PN}/viewcvs.conf
webapp_configfile ${MY_HOSTROOTDIR}/${PN}/cvsgraph.conf
webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
webapp_hook_script ${FILESDIR}/reconfig
webapp_src_install
}
|