From 8f3447771fbc9152d0c37244866db8f767a00080 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Thu, 13 Aug 2009 20:08:16 +0000 Subject: new version --- www-apps/cgit/Manifest | 6 +-- www-apps/cgit/cgit-0.8.2.1.ebuild | 110 ++++++++++++++++++++++++++++++++++++++ www-apps/cgit/cgit-9999.ebuild | 110 -------------------------------------- 3 files changed, 113 insertions(+), 113 deletions(-) create mode 100644 www-apps/cgit/cgit-0.8.2.1.ebuild delete mode 100644 www-apps/cgit/cgit-9999.ebuild diff --git a/www-apps/cgit/Manifest b/www-apps/cgit/Manifest index eaefa8a..0063672 100644 --- a/www-apps/cgit/Manifest +++ b/www-apps/cgit/Manifest @@ -1,5 +1,5 @@ AUX cgitrc 2066 RMD160 31d621fb653cf118d40cc3bfa9b159e80a1f3ee4 SHA1 7172623dd7844ae7fc0ef4fc8136b85a4bfc5f49 SHA256 c5fc42bb8514415eb93e4f6a07bf25622d7f3b4c7c9b19ce6523722b8b4b4b20 AUX postinstall-en.txt 132 RMD160 d48bd3054fb61a275a8c46bd747ba52af73ebb36 SHA1 d8de0743cf3e44038be3c0017e55b43b4da2e4ae SHA256 e7966f520dacb50c2e38642f223caf2b3afbca913b4c99346b7f0286eeae8e26 -DIST git-1.5.5.1.tar.bz2 1675032 RMD160 943d6fe0e7d3e45893dde3c7b16880d56f76cd7e SHA1 a450cd02cbfe8e18311816a9568bcd6d10d6cf52 SHA256 c95156a12cd86a20420e037304c255c847d44353af8e0dc77ee074fc59248707 -EBUILD cgit-9999.ebuild 1317 RMD160 8b3e414a46cf124fcb136ec1f2cbd15d49be5c14 SHA1 8995ce5732687016f5ae09db686c0efdf691fd1e SHA256 9452c10a5c4253173a5c53d16d411c21a91f091dd7a34fe818ee5d4caf1bcbcc -MISC cgit-9999.ebuild~ 1285 RMD160 ac57a52b6026decdc317f9a574ca3701029f5357 SHA1 00331ab0cd713e409fca3522aed96bb5509576fb SHA256 5a73693599e50f4aee2c15f8f12f9399eab9c5f7ee533a77cf2f6b0f668f3ee5 +DIST cgit-0.8.2.1.tar.bz2 50598 RMD160 2e83250130aa1d4f087c853567c794b58a24368c SHA1 1c40de81530a3c0513bc963cc81f14685448f6f9 SHA256 4cf40f0b857850ae4fb2354eb19e4ac168f47bc593cde286af75e58c5fea617d +DIST git-1.6.3.3.tar.bz2 2061691 RMD160 802ab3a44c27084ed199c77d0f8710da7a5793ec SHA1 200b49304696357ccf7a4837307348d681b7e04d SHA256 f94bc0d1fc861a12c7fb821b27a4e6a80901e84432cdb7894cb7a437d4c939ad +EBUILD cgit-0.8.2.1.ebuild 2140 RMD160 a0f57cb227ad649cb32de5437bc972d16769d5c5 SHA1 c4f06b432f92b3ceda13375cedd331c66d3f8bce SHA256 f100a86bbd319ba6924d9961ce2f3df380b622cd6b27dd8f90c1d5eb0c0c7a14 diff --git a/www-apps/cgit/cgit-0.8.2.1.ebuild b/www-apps/cgit/cgit-0.8.2.1.ebuild new file mode 100644 index 0000000..6291a8c --- /dev/null +++ b/www-apps/cgit/cgit-0.8.2.1.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils webapp + +use dataonly || GIT_V="$(git --version | cut -d ' ' -f 3)" + +DESCRIPTION="a fast web-interface for git repositories" +HOMEPAGE="http://hjemli.net/git/cgit/about/" +SRC_URI="!dataonly? ( 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="standalone dataonly" + +# This is remote installation, so we don't need any depends +use standalone || need_httpd_cgi + +RDEPEND="!dataonly? ( dev-util/git ) + sys-libs/zlib + dev-libs/openssl" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}/cgit-${PV}" + +pkg_setup() { + if use standalone; then + use dataonly && die "standalone and dataonly are conflicting USE-flags" + use vhosts && ewarn "vhosts flag is useless with standalone installation" + + # We're into fast-cgi environment, so we need user to operate on + enewuser cgit + enewgroup cgit + else + webapp_pkg_setup + fi +} + +src_unpack() { + unpack ${A} + + cd "${S}" + + if ! use dataonly; then + rmdir git + + mv "${WORKDIR}/git-${GIT_V}" git + fi +} + +src_compile() { + # Skip compilation if this is dataonly build + use dataonly && return 0 + + emake || die "emake failed" +} + +src_install() { + if ! use dataonly; then + mv cgit cgit.cgi + + insinto /etc + doins "${FILESDIR}"/cgitrc + + local cache_dir=/var/cache/cgit + + dodir "${cache_dir}" + keepdir "${cache_dir}" + + use standalone && fowners cgit:cgit "${cache_dir}" + + dodoc cgitrc.5.txt + fi + + if use standalone; then + dobin cgit.cgi + else + webapp_src_preinst + + insinto "${MY_HTDOCSDIR}" + doins cgit.css cgit.png + + if ! use dataonly; then + exeinto "${MY_CGIBINDIR}" + doexe cgit.cgi + + insinto "${MY_APPDIR}"/conf + doins "${FILESDIR}"/cgitrc + webapp_configfile "${MY_APPDIR}"/conf/cgitrc + fi + + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt + + webapp_src_install + fi +} + +pkg_postinst() { + # We don't want to use webapp if this is standalone setup + use standalone || webapp_pkg_postinst +} + +pkg_prerm() { + # Same idea + use standalone || webapp_pkg_prerm +} diff --git a/www-apps/cgit/cgit-9999.ebuild b/www-apps/cgit/cgit-9999.ebuild deleted file mode 100644 index 6291a8c..0000000 --- a/www-apps/cgit/cgit-9999.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -inherit eutils webapp - -use dataonly || GIT_V="$(git --version | cut -d ' ' -f 3)" - -DESCRIPTION="a fast web-interface for git repositories" -HOMEPAGE="http://hjemli.net/git/cgit/about/" -SRC_URI="!dataonly? ( 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="standalone dataonly" - -# This is remote installation, so we don't need any depends -use standalone || need_httpd_cgi - -RDEPEND="!dataonly? ( dev-util/git ) - sys-libs/zlib - dev-libs/openssl" - -DEPEND="${RDEPEND}" - -S="${WORKDIR}/cgit-${PV}" - -pkg_setup() { - if use standalone; then - use dataonly && die "standalone and dataonly are conflicting USE-flags" - use vhosts && ewarn "vhosts flag is useless with standalone installation" - - # We're into fast-cgi environment, so we need user to operate on - enewuser cgit - enewgroup cgit - else - webapp_pkg_setup - fi -} - -src_unpack() { - unpack ${A} - - cd "${S}" - - if ! use dataonly; then - rmdir git - - mv "${WORKDIR}/git-${GIT_V}" git - fi -} - -src_compile() { - # Skip compilation if this is dataonly build - use dataonly && return 0 - - emake || die "emake failed" -} - -src_install() { - if ! use dataonly; then - mv cgit cgit.cgi - - insinto /etc - doins "${FILESDIR}"/cgitrc - - local cache_dir=/var/cache/cgit - - dodir "${cache_dir}" - keepdir "${cache_dir}" - - use standalone && fowners cgit:cgit "${cache_dir}" - - dodoc cgitrc.5.txt - fi - - if use standalone; then - dobin cgit.cgi - else - webapp_src_preinst - - insinto "${MY_HTDOCSDIR}" - doins cgit.css cgit.png - - if ! use dataonly; then - exeinto "${MY_CGIBINDIR}" - doexe cgit.cgi - - insinto "${MY_APPDIR}"/conf - doins "${FILESDIR}"/cgitrc - webapp_configfile "${MY_APPDIR}"/conf/cgitrc - fi - - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt - - webapp_src_install - fi -} - -pkg_postinst() { - # We don't want to use webapp if this is standalone setup - use standalone || webapp_pkg_postinst -} - -pkg_prerm() { - # Same idea - use standalone || webapp_pkg_prerm -} -- cgit v1.2.3