# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: Exp $ inherit webapp DESCRIPTION="Archzoom is a web interface for GNU Arch (tla) 1.x archives" HOMEPAGE="http://migo.sixbit.org/software/archzoom/" SRC_URI="http://migo.sixbit.org/software/archzoom/releases/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="" DEPEND="dev-util/tla net-www/apache >=dev-lang/perl-5.1 >=enscript-1.6" src_install() { webapp_src_preinst dodir ${MY_CGIBINDIR}/${PN} ${MY_HOSTROOTDIR}/${PN} exeinto ${MY_CGIBINDIR}/${PN} doexe bin/archzoom.cgi datadir="${MY_HOSTROOTDIR}/${PN}/archzoom-data" dodir ${datadir}/var/cache touch ${D}/${datadir}/var/cache/.keep find perllib -name "Makefile*" | xargs rm find perllib -name "*pm.in" | xargs rm cp -r perllib ${D}/${datadir}/ cp -r templates ${D}/${datadir}/ insinto ${datadir}/conf doins conf/archzoom.conf dodoc AUTHORS TODO NEWS README ChangeLog dodoc doc/CodingStyle doc/FAQ doc/REQUIREMENTS webapp_configfile ${datadir}/conf/archzoom.conf webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt webapp_hook_script ${FILESDIR}/reconfig webapp_src_install }