summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Varner <fuzzyray@gentoo.org>2009-12-10 20:52:22 +0000
committerPaul Varner <fuzzyray@gentoo.org>2009-12-10 20:52:22 +0000
commita7e9ae0a766e8f44e9edfa29d7cdac13455ed782 (patch)
treea4ef08fd71c230666d5b8ddebc6a02668cef8a7b /app-portage
parentDrop KDE SC-4.3.1. (diff)
downloadgentoo-2-a7e9ae0a766e8f44e9edfa29d7cdac13455ed782.tar.gz
gentoo-2-a7e9ae0a766e8f44e9edfa29d7cdac13455ed782.tar.bz2
gentoo-2-a7e9ae0a766e8f44e9edfa29d7cdac13455ed782.zip
Modify live ebuild to use setup.py to set the version of gentoolkit installed.
(Portage version: 2.2_rc58/cvs/Linux i686)
Diffstat (limited to 'app-portage')
-rw-r--r--app-portage/gentoolkit/ChangeLog6
-rw-r--r--app-portage/gentoolkit/gentoolkit-9999.ebuild18
2 files changed, 16 insertions, 8 deletions
diff --git a/app-portage/gentoolkit/ChangeLog b/app-portage/gentoolkit/ChangeLog
index 6cbee0fb42ff..67d4309dad0f 100644
--- a/app-portage/gentoolkit/ChangeLog
+++ b/app-portage/gentoolkit/ChangeLog
@@ -1,6 +1,10 @@
# 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.172 2009/12/05 23:00:35 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-portage/gentoolkit/ChangeLog,v 1.173 2009/12/10 20:52:22 fuzzyray Exp $
+
+ 10 Dec 2009; Paul Varner <fuzzyray@gentoo.org> gentoolkit-9999.ebuild:
+ Modify live ebuild to use setup.py to set the version of gentoolkit
+ installed.
05 Dec 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
gentoolkit-0.3.0_rc7.ebuild, gentoolkit-9999.ebuild:
diff --git a/app-portage/gentoolkit/gentoolkit-9999.ebuild b/app-portage/gentoolkit/gentoolkit-9999.ebuild
index 3972d5f4f353..3f6b4ebd5a1b 100644
--- a/app-portage/gentoolkit/gentoolkit-9999.ebuild
+++ b/app-portage/gentoolkit/gentoolkit-9999.ebuild
@@ -1,6 +1,6 @@
# 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.3 2009/12/05 23:00:35 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-portage/gentoolkit/gentoolkit-9999.ebuild,v 1.4 2009/12/10 20:52:22 fuzzyray Exp $
EAPI="2"
SUPPORT_PYTHON_ABIS="1"
@@ -29,6 +29,16 @@ RDEPEND="${DEPEND}
app-misc/realpath"
RESTRICT_PYTHON_ABIS="3.*"
+distutils_src_compile_pre_hook() {
+ echo VERSION="9999-r${ESVN_WC_REVISION}" "$(PYTHON)" setup.py set_version
+ VERSION="9999-r${ESVN_WC_REVISION}" "$(PYTHON)" setup.py set_version
+}
+
+src_compile() {
+ subversion_wc_info
+ distutils_src_compile
+}
+
src_install() {
distutils_src_install
@@ -38,12 +48,6 @@ src_install() {
fowners root:root /var/cache/revdep-rebuild
fperms 0700 /var/cache/revdep-rebuild
- # 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
-
# Can distutils handle this?
dosym eclean /usr/bin/eclean-dist
dosym eclean /usr/bin/eclean-pkg