summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-24 00:26:06 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-24 00:26:06 +0000
commitb1e7ca450b65e9cdf3b8e5324eda9f9a4513abbf (patch)
tree54ea26cf51618da79a63c8645a9b6a4917fb0e98 /app-admin/eselect-python
parentVersion bump (bug #280244). (diff)
downloadgentoo-2-b1e7ca450b65e9cdf3b8e5324eda9f9a4513abbf.tar.gz
gentoo-2-b1e7ca450b65e9cdf3b8e5324eda9f9a4513abbf.tar.bz2
gentoo-2-b1e7ca450b65e9cdf3b8e5324eda9f9a4513abbf.zip
Add live ebuild.
(Portage version: 14132-svn/cvs/Linux x86_64)
Diffstat (limited to 'app-admin/eselect-python')
-rw-r--r--app-admin/eselect-python/ChangeLog8
-rw-r--r--app-admin/eselect-python/eselect-python-99999999.ebuild49
2 files changed, 56 insertions, 1 deletions
diff --git a/app-admin/eselect-python/ChangeLog b/app-admin/eselect-python/ChangeLog
index 625ec2f01be8..00269f712c17 100644
--- a/app-admin/eselect-python/ChangeLog
+++ b/app-admin/eselect-python/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-admin/eselect-python
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-python/ChangeLog,v 1.38 2009/08/17 10:33:40 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-python/ChangeLog,v 1.39 2009/08/24 00:26:06 arfrever Exp $
+
+*eselect-python-99999999 (24 Aug 2009)
+
+ 24 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ +eselect-python-99999999.ebuild:
+ Add live ebuild.
17 Aug 2009; Alexis Ballier <aballier@gentoo.org>
eselect-python-20090814.ebuild:
diff --git a/app-admin/eselect-python/eselect-python-99999999.ebuild b/app-admin/eselect-python/eselect-python-99999999.ebuild
new file mode 100644
index 000000000000..cbffe1ff320a
--- /dev/null
+++ b/app-admin/eselect-python/eselect-python-99999999.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-python/eselect-python-99999999.ebuild,v 1.1 2009/08/24 00:26:06 arfrever Exp $
+
+EAPI="2"
+
+inherit flag-o-matic subversion
+
+DESCRIPTION="Eselect module for management of multiple Python versions"
+HOMEPAGE="http://www.gentoo.org"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND=">=app-admin/eselect-1.0.2"
+RDEPEND="${DEPEND}"
+
+ESVN_PROJECT="eselect-python"
+ESVN_REPO_URI="https://overlays.gentoo.org/svn/proj/python/projects/eselect-python/trunk"
+
+pkg_setup() {
+ append-flags -fno-PIC -fno-PIE
+}
+
+src_prepare() {
+ ./autogen.sh || die "autogen.sh failed"
+}
+
+src_install() {
+ keepdir /etc/env.d/python
+ emake DESTDIR="${D}" install || die "emake install failed"
+}
+
+pkg_preinst() {
+ if has_version "<${CATEGORY}/${PN}-20090804" || ! has_version "${CATEGORY}/${PN}"; then
+ run_eselect_python_update="1"
+ fi
+}
+
+pkg_postinst() {
+ if [[ "${run_eselect_python_update}" == "1" ]]; then
+ ebegin "Running \`eselect python update\`"
+ eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 > /dev/null
+ eend "$?"
+ fi
+}