From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 072DB1386F3 for ; Thu, 13 Aug 2015 08:05:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2757E07D1; Thu, 13 Aug 2015 08:05:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5A8C9E07D1 for ; Thu, 13 Aug 2015 08:05:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 49B73340834 for ; Thu, 13 Aug 2015 08:05:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 04912147 for ; Thu, 13 Aug 2015 08:04:59 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1439453084.9c7ffc0c89bf341f50303a72e9de99e1abb7f9aa.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/binutils-config/, sys-devel/binutils-config/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/binutils-config/binutils-config-4-r4.ebuild sys-devel/binutils-config/files/binutils.eselect X-VCS-Directories: sys-devel/binutils-config/files/ sys-devel/binutils-config/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 9c7ffc0c89bf341f50303a72e9de99e1abb7f9aa X-VCS-Branch: master Date: Thu, 13 Aug 2015 08:04:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e726e996-14c2-41f5-9313-cfb04dd8e013 X-Archives-Hash: 42bbcdce30955c0c1556c87bff8ecb79 commit: 9c7ffc0c89bf341f50303a72e9de99e1abb7f9aa Author: Mike Frysinger gentoo org> AuthorDate: Thu Aug 13 08:03:03 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Thu Aug 13 08:04:44 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c7ffc0c sys-devel/binutils-config: add an eselect wrapper .../binutils-config/binutils-config-4-r4.ebuild | 29 ++++++++++++++ sys-devel/binutils-config/files/binutils.eselect | 45 ++++++++++++++++++++++ 2 files changed, 74 insertions(+) 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 0000000..6ca1125 --- /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 +}