# Copyright 1999-2007 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.6 2007/07/29 17:41:28 phreak Exp $ inherit webapp PDATE=${PV/1.0_pre/} DESCRIPTION="a web interface to cvs and subversion" HOMEPAGE="http://viewcvs.sourceforge.net/" SRC_URI="mirror://gentoo/${PN}-${PDATE}.tar.bz2" LICENSE="viewcvs" KEYWORDS="~sparc ~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 ) www-servers/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 }