From: Mike Frysinger Date: Thu, 13 Aug 2015 08:03:03 +0000 (-0400) Subject: sys-devel/binutils-config: add an eselect wrapper X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9c7ffc0c89bf341f50303a72e9de99e1abb7f9aa;p=gentoo.git sys-devel/binutils-config: add an eselect wrapper --- 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 +}