summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Varner <fuzzyray@gentoo.org>2009-05-27 19:16:44 +0000
committerPaul Varner <fuzzyray@gentoo.org>2009-05-27 19:16:44 +0000
commit0ef8e26db238ca8937226f398364ab7277e0b09f (patch)
treea06fc2956b0a3f9fbe0300cb65d16234d605258f /app-portage
parentstable x86, bug 271253 (diff)
downloadgentoo-2-0ef8e26db238ca8937226f398364ab7277e0b09f.tar.gz
gentoo-2-0ef8e26db238ca8937226f398364ab7277e0b09f.tar.bz2
gentoo-2-0ef8e26db238ca8937226f398364ab7277e0b09f.zip
Add Subversion ebuild
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'app-portage')
-rw-r--r--app-portage/gentoolkit/ChangeLog7
-rw-r--r--app-portage/gentoolkit/gentoolkit-9999.ebuild69
2 files changed, 75 insertions, 1 deletions
diff --git a/app-portage/gentoolkit/ChangeLog b/app-portage/gentoolkit/ChangeLog
index 5437fc2eb3a9..0af9f23be972 100644
--- a/app-portage/gentoolkit/ChangeLog
+++ b/app-portage/gentoolkit/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-portage/gentoolkit
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-portage/gentoolkit/ChangeLog,v 1.157 2009/05/18 22:08:39 fuzzyray Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-portage/gentoolkit/ChangeLog,v 1.158 2009/05/27 19:16:44 fuzzyray Exp $
+
+*gentoolkit-9999 (27 May 2009)
+
+ 27 May 2009; Paul Varner <fuzzyray@gentoo.org> +gentoolkit-9999.ebuild:
+ Add Subversion ebuild
*gentoolkit-0.3.0_rc6 (18 May 2009)
*gentoolkit-0.2.4.4 (18 May 2009)
diff --git a/app-portage/gentoolkit/gentoolkit-9999.ebuild b/app-portage/gentoolkit/gentoolkit-9999.ebuild
new file mode 100644
index 000000000000..53e859ee30e4
--- /dev/null
+++ b/app-portage/gentoolkit/gentoolkit-9999.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-portage/gentoolkit/gentoolkit-9999.ebuild,v 1.1 2009/05/27 19:16:44 fuzzyray Exp $
+
+EAPI=2
+
+inherit distutils subversion
+
+ESVN_REPO_URI="svn://anonsvn.gentoo.org/gentoolkit/trunk/gentoolkit"
+ESVN_PROJECT="gentoolkit"
+
+DESCRIPTION="Collection of administration scripts for Gentoo"
+HOMEPAGE="http://www.gentoo.org/proj/en/portage/tools/index.xml"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+KEYWORDS=""
+
+DEPEND="sys-apps/portage
+ dev-lang/python[xml]
+ dev-lang/perl
+ sys-apps/grep
+ sys-apps/gawk"
+RDEPEND="${DEPEND}"
+
+src_install() {
+ distutils_src_install
+
+ # Create cache directory for revdep-rebuild
+ dodir /var/cache/revdep-rebuild
+ keepdir /var/cache/revdep-rebuild
+ fowners root:root /var/cache/revdep-rebuild
+ fperms 0700 /var/cache/revdep-rebuild
+
+ # Can distutils handle this?
+ dosym eclean /usr/bin/eclean-dist
+ dosym eclean /usr/bin/eclean-pkg
+}
+
+pkg_preinst() {
+ subversion_pkg_preinst
+
+ # Gentoolkit scripts can use this to report a consistant version
+ echo "${PV}-r${ESVN_WC_REVISION}" > VERSION
+ dodir /usr/share/gentoolkit
+ insinto /usr/share/gentoolkit
+ doins VERSION
+}
+
+pkg_postinst() {
+ distutils_pkg_postinst
+
+ # Make sure that our ownership and permissions stuck
+ chown root:root "${ROOT}/var/cache/revdep-rebuild"
+ chmod 0700 "${ROOT}/var/cache/revdep-rebuild"
+
+ einfo
+ elog "The default location for revdep-rebuild files has been moved"
+ elog "to /var/cache/revdep-rebuild when run as root."
+ einfo
+ einfo "Another alternative to equery is app-portage/portage-utils"
+ einfo
+ einfo "For further information on gentoolkit, please read the gentoolkit"
+ einfo "guide: http://www.gentoo.org/doc/en/gentoolkit.xml"
+ einfo
+}