summaryrefslogtreecommitdiff
blob: c03284eb175f6b04d0cc71d1ed0612def8333932 (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
# 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-1.0_pre20050523.ebuild,v 1.2 2005/05/26 18:43:27 ramereth Exp $

inherit webapp

PDATE=${PV/1.0_pre/}
DESCRIPTION="Viewcvs, a web interface to cvs and subversion"
HOMEPAGE="http://viewcvs.sourceforge.net/"
SRC_URI="mirror://gentoo/${PN}-${PDATE}.tar.bz2"

LICENSE="viewcvs"
KEYWORDS="~x86"
IUSE="cvsgraph enscript"

RDEPEND="|| ( ( >=dev-util/cvs-1.11 )
				dev-util/subversion )
			dev-lang/python
			>=app-text/rcs-5.7
			sys-apps/diffutils
			cvsgraph? dev-util/cvsgraph
			enscript? app-text/enscript
			net-www/apache"
S=${WORKDIR}/${PN}

src_install() {
	webapp_src_preinst
	dodir ${MY_CGIBINDIR}/${PN} ${MY_HOSTROOTDIR}/${PN}

	exeinto ${MY_CGIBINDIR}/${PN}
	doexe www/cgi/viewcvs.cgi www/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 viewcvs.conf.dist viewcvs.conf
	newins 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
}