From 23f29e4b2a147a738726b2846d8ef0290363ea2a Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Sun, 10 May 2009 14:02:31 +0200 Subject: added cgit ebuild --- www-apps/cgit/cgit-9999.ebuild | 64 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 www-apps/cgit/cgit-9999.ebuild (limited to 'www-apps/cgit/cgit-9999.ebuild') diff --git a/www-apps/cgit/cgit-9999.ebuild b/www-apps/cgit/cgit-9999.ebuild new file mode 100644 index 0000000..de33543 --- /dev/null +++ b/www-apps/cgit/cgit-9999.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit git webapp + +EGIT_REPO_URI="git://hjemli.net/pub/git/cgit" + +GIT_V="1.5.5.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" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-util/git + sys-libs/zlib + dev-libs/openssl" +DEPEND="${RDEPEND}" + +S=${WORKDIR} + +src_unpack() { + git_src_unpack + + # Extract the git release + unpack ${A} + cd "${S}" + rmdir git + mv git-${GIT_V} git + cp ${FILESDIR}/cgitrc . + + sed -i \ + -e "s:#css=/cgit/cgit.css:css=/cgit/cgit.css:" \ + -e "s:#logo=/cgit/git-logo.png:logo=/cgit/cgit.png:" \ + -e "s:#cache-root=/var/cache/cgit:cache-root=/var/cache/cgit:" \ + cgitrc || die "patching cgitrc failed" +} + +src_install() { + webapp_src_preinst + + insinto ${MY_HTDOCSDIR} + mv cgit cgit.cgi + doins ${FILESDIR}/.htaccess cgit.cgi cgit.css cgit.png + + insinto /etc + doins 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 +} -- cgit v1.2.3