# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit webapp GIT_V="1.6.1.1" DESCRIPTION="a fast web-interface for git repositories" HOMEPAGE="http://hjemli.net/git/cgit/about/" SRC_URI="mirror://kernel/software/scm/git/git-${GIT_V}.tar.bz2 http://hjemli.net/git/cgit/snapshot/${P}.tar.bz2" LICENSE="GPL-2" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND="dev-util/git sys-libs/zlib dev-libs/openssl" DEPEND="${RDEPEND}" S=${WORKDIR}/cgit-${PV} src_unpack() { unpack ${A} cd "${S}" rmdir git mv ${WORKDIR}/git-${GIT_V} git } src_install() { webapp_src_preinst insinto ${MY_HTDOCSDIR} mv cgit cgit.cgi doins cgit.cgi cgit.css cgit.png insinto /etc doins ${FILESDIR}/cgitrc dodir /var/cache/cgit keepdir /var/cache/cgit # This is just plain wrong, how to do it correctly? (copied from bugzilla # 3.0.4 ebuild) chmod +x "${D}${MY_HTDOCSDIR}"/*.cgi webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt webapp_src_install }