From 9c7ffc0c89bf341f50303a72e9de99e1abb7f9aa Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 13 Aug 2015 04:03:03 -0400 Subject: [PATCH] sys-devel/binutils-config: add an eselect wrapper --- .../binutils-config-4-r4.ebuild | 29 ++++++++++++ .../binutils-config/files/binutils.eselect | 45 +++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 sys-devel/binutils-config/binutils-config-4-r4.ebuild create mode 100644 sys-devel/binutils-config/files/binutils.eselect diff --git a/sys-devel/binutils-config/binutils-config-4-r4.ebuild b/sys-devel/binutils-config/binutils-config-4-r4.ebuild new file mode 100644 index 000000000000..6ca11257a5a9 --- /dev/null +++ b/sys-devel/binutils-config/binutils-config-4-r4.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +DESCRIPTION="Utility to change the binutils version being used" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +# Need a new eselect release w/out the binutils wrapper first. +#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="" + +# We also RDEPEND on sys-apps/findutils which is in base @system +RDEPEND="sys-apps/gentoo-functions + !" +} + +describe_set_options() { + echo "target : Target name or number (from 'list' action)" +} + +do_set() { + [[ $# -eq 1 ]] || die -q "Please specify exactly one version to activate!" + binutils-config "$1" +} + +### show action + +describe_show() { + echo "Print the currently active binutils version" +} + +do_show() { + binutils-config -c +} -- 2.26.2