summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2011-09-16 08:25:02 +0000
committerPeter Volkov <pva@gentoo.org>2011-09-16 08:25:02 +0000
commite3f28ee0b48a6d8f43e515d7bd9873ed2a412ef0 (patch)
tree544cab0a8e827857aaea00fe5354a907a70e3b0b /www-apps/cgit
parentVersion bump pyconstruct to 2.04. (diff)
downloadgentoo-2-e3f28ee0b48a6d8f43e515d7bd9873ed2a412ef0.tar.gz
gentoo-2-e3f28ee0b48a6d8f43e515d7bd9873ed2a412ef0.tar.bz2
gentoo-2-e3f28ee0b48a6d8f43e515d7bd9873ed2a412ef0.zip
Revert mistakenly deleted 9999 ebuild, fix webconfig postinstall (bug 382979 by Alon Bar-Lev), drop old. Thank Nikoli for this job.
(Portage version: 2.1.10.11/cvs/Linux x86_64)
Diffstat (limited to 'www-apps/cgit')
-rw-r--r--www-apps/cgit/ChangeLog7
-rw-r--r--www-apps/cgit/cgit-0.9.0.2-r1.ebuild3
-rw-r--r--www-apps/cgit/cgit-9999.ebuild (renamed from www-apps/cgit/cgit-0.9.ebuild)27
3 files changed, 21 insertions, 16 deletions
diff --git a/www-apps/cgit/ChangeLog b/www-apps/cgit/ChangeLog
index 187bdfff63e0..fb2149dea5ad 100644
--- a/www-apps/cgit/ChangeLog
+++ b/www-apps/cgit/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for www-apps/cgit
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/ChangeLog,v 1.9 2011/09/11 11:39:20 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/ChangeLog,v 1.10 2011/09/16 08:25:02 pva Exp $
+
+ 16 Sep 2011; Peter Volkov <pva@gentoo.org> -cgit-0.9.ebuild,
+ cgit-0.9.0.2-r1.ebuild, +cgit-9999.ebuild:
+ Revert mistakenly deleted 9999 ebuild, fix webconfig postinstall (bug 382979
+ by Alon Bar-Lev), drop old. Thank Nikoli for this job.
*cgit-0.9.0.2-r1 (11 Sep 2011)
diff --git a/www-apps/cgit/cgit-0.9.0.2-r1.ebuild b/www-apps/cgit/cgit-0.9.0.2-r1.ebuild
index 9ecf4627a779..71a51be9a6f4 100644
--- a/www-apps/cgit/cgit-0.9.0.2-r1.ebuild
+++ b/www-apps/cgit/cgit-0.9.0.2-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/cgit-0.9.0.2-r1.ebuild,v 1.1 2011/09/11 11:39:20 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/cgit-0.9.0.2-r1.ebuild,v 1.2 2011/09/16 08:25:02 pva Exp $
EAPI="4"
@@ -82,6 +82,7 @@ src_install() {
}
pkg_postinst() {
+ webapp_pkg_postinst
ewarn "If you intend to run cgit using web server's user"
ewarn "you should change ${CGIT_CACHEDIR} permissions."
}
diff --git a/www-apps/cgit/cgit-0.9.ebuild b/www-apps/cgit/cgit-9999.ebuild
index 936db11fbc2b..2ff6dcc20118 100644
--- a/www-apps/cgit/cgit-0.9.ebuild
+++ b/www-apps/cgit/cgit-9999.ebuild
@@ -1,12 +1,12 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/cgit-0.9.ebuild,v 1.1 2011/04/29 19:02:19 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/cgit-9999.ebuild,v 1.4 2011/09/16 08:25:02 pva Exp $
-EAPI="2"
+EAPI="4"
WEBAPP_MANUAL_SLOT="yes"
-inherit webapp eutils multilib
+inherit webapp eutils multilib git-2
[[ -z "${CGIT_CACHEDIR}" ]] && CGIT_CACHEDIR="/var/cache/${PN}/"
@@ -14,12 +14,12 @@ GIT_V="1.7.4"
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"
+SRC_URI="mirror://kernel/software/scm/git/git-${GIT_V}.tar.bz2"
+EGIT_REPO_URI="git://hjemli.net/pub/git/${PN}"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS=""
IUSE="doc highlight"
RDEPEND="
@@ -51,21 +51,19 @@ src_prepare() {
}
src_compile() {
- emake || die
- if use doc ; then
- emake doc-man || die
- fi
+ emake
+ use doc && emake doc-man
}
src_install() {
webapp_src_preinst
emake \
- prefix=/usr \
- libdir=/usr/$(get_libdir) \
+ prefix="${EPREFIX}"/usr \
+ libdir="${EPREFIX}"/usr/$(get_libdir) \
CGIT_SCRIPT_PATH="${MY_CGIBINDIR}" \
CGIT_DATA_PATH="${MY_HTDOCSDIR}" \
- DESTDIR="${D}" install || die
+ DESTDIR="${D}" install
insinto /etc
doins "${FILESDIR}"/cgitrc
@@ -82,6 +80,7 @@ src_install() {
}
pkg_postinst() {
+ webapp_pkg_postinst
ewarn "If you intend to run cgit using web server's user"
- ewarn "you should change /var/cache/cgit/ permissions."
+ ewarn "you should change ${CGIT_CACHEDIR} permissions."
}