From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qol0e-00015M-Jp for garchives@archives.gentoo.org; Wed, 03 Aug 2011 23:37:57 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9CB5121C06A; Wed, 3 Aug 2011 23:37:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2430F21C06A for ; Wed, 3 Aug 2011 23:37:48 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 278A52AC011 for ; Wed, 3 Aug 2011 23:37:47 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 291838003C for ; Wed, 3 Aug 2011 23:37:46 +0000 (UTC) From: "Andrea Arteaga" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrea Arteaga" Message-ID: <6c8e37edc94f81ac07db147022739bc2865ea507.spiros@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: app-admin/eselect/files/, app-admin/eselect/ X-VCS-Repository: proj/sci X-VCS-Files: app-admin/eselect/ChangeLog app-admin/eselect/eselect-1.2.16-r1.ebuild app-admin/eselect/files/eselect-alternatives.patch app-admin/eselect/metadata.xml X-VCS-Directories: app-admin/eselect/files/ app-admin/eselect/ X-VCS-Committer: spiros X-VCS-Committer-Name: Andrea Arteaga X-VCS-Revision: 6c8e37edc94f81ac07db147022739bc2865ea507 Date: Wed, 3 Aug 2011 23:37:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 574e0a8ad47277a4f7485e0f84d9d44b commit: 6c8e37edc94f81ac07db147022739bc2865ea507 Author: spiros gmail com> AuthorDate: Wed Aug 3 23:37:08 2011 +0000 Commit: Andrea Arteaga gmail com> CommitDate: Wed Aug 3 23:37:08 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3D6c8e37ed eselect-1.2.16-r1 imported from the bicatali overlay --- app-admin/eselect/ChangeLog | 739 ++++++++++++++= ++++++ app-admin/eselect/eselect-1.2.16-r1.ebuild | 64 ++ app-admin/eselect/files/eselect-alternatives.patch | 601 ++++++++++++++= ++ app-admin/eselect/metadata.xml | 8 + 4 files changed, 1412 insertions(+), 0 deletions(-) diff --git a/app-admin/eselect/ChangeLog b/app-admin/eselect/ChangeLog new file mode 100644 index 0000000..cde504e --- /dev/null +++ b/app-admin/eselect/ChangeLog @@ -0,0 +1,739 @@ +# ChangeLog for app-admin/eselect +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect/ChangeLog,v 1.179 2= 011/01/22 21:38:52 ulm Exp $ + +*eselect-1.2.16-r1 + + 03 Aug 2011; Andrea Arteaga + Imported from dev/bicatali + + 22 Jan 2011; Ulrich Mueller -eselect-1.2.10.ebuild, + -eselect-1.2.13.ebuild: + Remove old. + + 22 Jan 2011; Kacper Kowalik eselect-1.2.11.ebu= ild: + ppc64 stable wrt #344537 + +*eselect-1.2.14 (14 Jan 2011) + + 14 Jan 2011; Ulrich Mueller +eselect-1.2.14.ebuild: + Version bump. + +*eselect-1.2.13 (27 Nov 2010) + + 27 Nov 2010; Ulrich Mueller -eselect-1.2.12.ebuild, + +eselect-1.2.13.ebuild: + Version bump, fixes bug 346837. Remove intermediate version. + +*eselect-1.2.12 (21 Nov 2010) + + 21 Nov 2010; Ulrich Mueller +eselect-1.2.12.ebuild: + Version bump. + + 14 Nov 2010; Ra=C3=BAl Porcel eselect-1.2.11.ebui= ld: + alpha/ia64/m68k/s390/sh/sparc stable wrt #344537 + + 09 Nov 2010; Markus Meier eselect-1.2.11.ebuild: + arm stable, bug #344537 + + 09 Nov 2010; Jeroen Roovers eselect-1.2.11.ebuild: + Stable for PPC (bug #344537). + + 09 Nov 2010; Jeroen Roovers eselect-1.2.11.ebuild: + Stable for HPPA (bug #344537). + + 08 Nov 2010; Markos Chandras eselect-1.2.11.ebui= ld: + Stable on amd64 wrt bug #344537 + + 08 Nov 2010; Christian Faulhammer + eselect-1.2.11.ebuild: + stable x86, bug 344537 + + 23 Oct 2010; Ulrich Mueller -eselect-1.2.9.ebuild: + Remove old. + + 23 Oct 2010; Mark Loeser eselect-1.2.10.ebuild: + Mark ppc64; bug #313829 + +*eselect-1.2.11 (27 Jul 2010) + + 27 Jul 2010; Ulrich Mueller -eselect-1.2.8.ebuild, + +eselect-1.2.11.ebuild: + Version bump. Remove old. + + 23 May 2010; Pacho Ramos eselect-1.2.10.ebuild: + stable amd64, bug 313829 + + 08 May 2010; Ra=C3=BAl Porcel eselect-1.2.10.ebui= ld: + alpha/arm/ia64/m68k/s390/sh stable wrt #313829 + + 16 Apr 2010; Brent Baude eselect-1.2.10.ebuild: + stable ppc, bug 313829 + + 09 Apr 2010; Tiago Cunha eselect-1.2.10.ebuild: + stable sparc, bug 313829 + + 09 Apr 2010; Jeroen Roovers eselect-1.2.10.ebuild: + Stable for HPPA (bug #313829). + + 08 Apr 2010; Christian Faulhammer + eselect-1.2.10.ebuild: + stable x86, bug 313829 + + 10 Feb 2010; Joseph Jezak eselect-1.2.9.ebuild: + Marked ppc stable for bug #302878. + + 06 Feb 2010; Ra=C3=BAl Porcel eselect-1.2.9.ebuil= d: + alpha/ia64/m68k/s390/sh/sparc stable wrt #302878 + +*eselect-1.2.10 (05 Feb 2010) + + 05 Feb 2010; Ulrich Mueller -eselect-1.2.3.ebuild, + +eselect-1.2.10.ebuild: + Version bump. Remove old. + + 04 Feb 2010; Markus Meier eselect-1.2.9.ebuild: + amd64/arm stable, bug #302878 + + 02 Feb 2010; Jeroen Roovers eselect-1.2.9.ebuild: + Stable for HPPA (bug #302878). + + 01 Feb 2010; Tiago Cunha eselect-1.2.9.ebuild: + stable sparc, bug 302878 + + 01 Feb 2010; Christian Faulhammer eselect-1.2.9.ebu= ild: + stable x86, bug 302878 + + 01 Feb 2010; Brent Baude eselect-1.2.9.ebuild: + stable ppc64, bug 302878 + + 11 Jan 2010; Ra=C3=BAl Porcel eselect-1.2.8.ebuil= d: + alpha/arm/ia64/m68k/s390/sh stable wrt #297496 + + 31 Dec 2009; Ulrich Mueller eselect-1.2.9.ebuild: + Inherit bash-completion.eclass, bug 299051. + + 31 Dec 2009; Brent Baude eselect-1.2.8.ebuild: + Marking eselect-1.2.8 ppc64 for bug 297496 + +*eselect-1.2.9 (31 Dec 2009) + + 31 Dec 2009; Ulrich Mueller -eselect-1.2.7.ebuild, + +eselect-1.2.9.ebuild: + Version bump, fixes bugs 298742 and 298789. Remove old. + + 29 Dec 2009; Christian Faulhammer eselect-1.2.8.ebu= ild: + stable x86, bug 297496 + + 29 Dec 2009; Samuli Suominen eselect-1.2.8.ebui= ld: + amd64 stable wrt #297496 + + 28 Dec 2009; nixnut eselect-1.2.8.ebuild: + ppc stable #297496 + + 28 Dec 2009; Tiago Cunha eselect-1.2.8.ebuild: + stable sparc, bug 297496 + + 24 Dec 2009; Jeroen Roovers eselect-1.2.8.ebuild: + Stable for HPPA (bug #297496). + +*eselect-1.2.8 (20 Nov 2009) + + 20 Nov 2009; Ulrich Mueller -eselect-1.2.5.ebuild, + -eselect-1.2.6.ebuild, +eselect-1.2.8.ebuild: + Version bump, fixes bug 293317. Remove old. + +*eselect-1.2.7 (14 Nov 2009) + + 14 Nov 2009; Ulrich Mueller +eselect-1.2.7.ebuild: + Version bump, fixes bug 289095. + +*eselect-1.2.6 (07 Nov 2009) + + 07 Nov 2009; Ulrich Mueller -eselect-1.1.3.ebuild, + -eselect-1.2.4.ebuild, +eselect-1.2.6.ebuild: + Version bump. Remove old. + +*eselect-1.2.5 (04 Nov 2009) + + 04 Nov 2009; Ulrich Mueller +eselect-1.2.5.ebuild: + Version bump; fixes bugs 280191 and 288527. + + 13 Oct 2009; Ulrich Mueller eselect-1.1.3.ebuild, + eselect-1.2.3.ebuild, eselect-1.2.4.ebuild: + Update dependency after realpath package move, bug 273968. + + 11 Oct 2009; Jeroen Roovers eselect-1.2.3.ebuild: + Stable for HPPA (bug #287135). + + 09 Oct 2009; Fabian Groffen eselect-1.2.4.ebuild: + Added Prefix keywords and fixed the ebuild for Prefix + +*eselect-1.2.4 (09 Oct 2009) + + 09 Oct 2009; Ulrich Mueller -eselect-1.0.12.ebuild, + -eselect-1.2.1.ebuild, +eselect-1.2.4.ebuild: + Version bump. Remove old. + + 08 Oct 2009; Ra=C3=BAl Porcel eselect-1.2.3.ebuil= d: + alpha/arm/ia64/m68k/s390/sh stable wrt #287135 + + 05 Oct 2009; Tiago Cunha eselect-1.2.3.ebuild: + stable sparc, bug 287135 + + 03 Oct 2009; Christian Faulhammer eselect-1.2.3.ebu= ild: + stable x86, bug 287135 + + 03 Oct 2009; Brent Baude eselect-1.2.3.ebuild: + Marking eselect-1.2.3 ppc64 for bug 287135 + + 03 Oct 2009; Mounir Lamouri eselect-1.2.3.ebuild: + Stable for ppc, bug 287135 + + 01 Oct 2009; Dawid W=C4=99gli=C5=84ski eselect-1.2.3.= ebuild: + Stable on amd64 (bug #287135) + +*eselect-1.2.3 (20 Sep 2009) + + 20 Sep 2009; Ulrich Mueller -eselect-1.2.2.ebuild, + +eselect-1.2.3.ebuild: + Version bump, fixes bug 285762. Remove intermediate version. + +*eselect-1.2.2 (19 Sep 2009) + + 19 Sep 2009; Ulrich Mueller +eselect-1.2.2.ebuild: + Version bump. + + 15 Sep 2009; Ulrich Mueller -eselect-1.1.1.ebuild, + -eselect-1.2.ebuild: + Remove old. + + 15 Sep 2009; Jeroen Roovers eselect-1.1.3.ebuild: + Stable for HPPA (bug #283079). + + 11 Sep 2009; Ra=C3=BAl Porcel eselect-1.1.3.ebuil= d: + arm/ia64/m68k/s390/sh/sparc stable wrt #283079 + +*eselect-1.2.1 (09 Sep 2009) + + 09 Sep 2009; Ulrich Mueller +eselect-1.2.1.ebuild: + Version bump, fixes bug 283932. + + 07 Sep 2009; Markus Meier eselect-1.1.3.ebuild: + amd64/x86 stable, bug #283079 + + 31 Aug 2009; Brent Baude eselect-1.1.3.ebuild: + Marking eselect-1.1.3 ppc64 for bug 283079 + + 31 Aug 2009; Brent Baude eselect-1.1.1.ebuild: + Marking eselect-1.1.1 ppc64 for bug 277187 + + 30 Aug 2009; Tobias Klausmann eselect-1.1.3.ebui= ld: + Stable on alpha, bug #283079 + + 30 Aug 2009; nixnut eselect-1.1.3.ebuild: + ppc stable #283079 + +*eselect-1.2 (27 Aug 2009) + + 27 Aug 2009; Ulrich Mueller -eselect-1.1.2.ebuild, + -eselect-1.2_rc1.ebuild, +eselect-1.2.ebuild: + Version bump. Remove intermediate versions. + +*eselect-1.2_rc1 (19 Aug 2009) + + 19 Aug 2009; Ulrich Mueller +eselect-1.2_rc1.ebuild: + Version bump; fixes bug 280598; enhancements from bugs 154511 and 2747= 60. + +*eselect-1.1.3 (16 Aug 2009) + + 16 Aug 2009; Ulrich Mueller -eselect-1.0.10.ebuild, + -eselect-1.0.11-r1.ebuild, + -files/eselect-1.0.11-fix-paludis-command.patch, +eselect-1.1.3.ebuild= : + Version bump, fixes bug 279662. Remove old. + + 21 Jul 2009; eselect-1.1.1.ebuild: + Marked stable on AMD64 as requested by Ulrich M=C3=BCller in + bug #277187. Tested with the profile module. + + 17 Jul 2009; Ra=C3=BAl Porcel eselect-1.1.1.ebuil= d: + alpha/arm/ia64/m68k/s390/sh stable wrt #277187 + + 16 Jul 2009; nixnut eselect-1.1.1.ebuild: + ppc stable #277187 + + 09 Jul 2009; Jeroen Roovers eselect-1.1.1.ebuild: + Stable for HPPA (bug #277187). + + 09 Jul 2009; Christian Faulhammer eselect-1.1.1.ebu= ild: + stable x86, bug 277187 + + 09 Jul 2009; Ferris McCormick eselect-1.1.1.ebuild= : + Sparc stable, Bug #277187. + + 28 Jun 2009; Brent Baude eselect-1.0.12.ebuild: + Marking eselect-1.0.12 ppc64 for bug 270138 + +*eselect-1.1.2 (27 Jun 2009) + + 27 Jun 2009; Ulrich Mueller +eselect-1.1.2.ebuild: + Version bump. + + 12 Jun 2009; Ulrich Mueller -eselect-1.0.11-r2.ebuild= , + -files/eselect-1.0.11-parent-profiles.patch, + -files/eselect-1.0.11-relative-profiles.patch, -eselect-1.1.ebuild, + metadata.xml: + Remove intermediate versions. + +*eselect-1.1.1 (06 Jun 2009) + + 06 Jun 2009; Ulrich Mueller +eselect-1.1.1.ebuild: + Version bump. Remove paludis USE flag since it doesn't make much sense + without the corresponding dependency; use app-admin/eselect-package-ma= nager + for selection of a package manager instead. + + 02 Jun 2009; Ulrich Mueller eselect-1.1.ebuild, + -eselect-1.1_rc2.ebuild, -eselect-1.1_rc3.ebuild: + Don't depend on paludis, in order to avoid a circular dependency; than= ks + to Ingmar Vanhassel for pointing this out. Print a warning message in + pkg_postinst instead. Remove release candidates. + +*eselect-1.1 (27 May 2009) + + 27 May 2009; Ulrich Mueller +eselect-1.1.ebuild, + -eselect-9999.ebuild: + Version bump. Remove live ebuild. + + 24 May 2009; Ulrich Mueller eselect-1.0.10.ebuild, + eselect-1.0.11-r1.ebuild, eselect-1.0.11-r2.ebuild, eselect-1.0.12.ebu= ild, + eselect-1.1_rc2.ebuild, eselect-1.1_rc3.ebuild, eselect-9999.ebuild: + Fix dependencies: readlink/realpath are also needed at run time. + + 24 May 2009; Markus Meier eselect-1.0.12.ebuild: + amd64 stable, bug #270138 + + 21 May 2009; Brent Baude eselect-1.0.12.ebuild: + stable ppc, bug 270138 + + 21 May 2009; Ra=C3=BAl Porcel eselect-1.0.12.ebui= ld: + arm/ia64/m68k/s390/sh/sparc stable wrt #270138 + +*eselect-1.1_rc3 (21 May 2009) + + 21 May 2009; Ulrich Mueller +eselect-1.1_rc3.ebuild: + Version bump. + + 20 May 2009; Ulrich Mueller eselect-1.1_rc2.ebuild, + eselect-9999.ebuild: + Create directory for news-tng module. Set proper group and permissions= . + +*eselect-1.1_rc2 (19 May 2009) + + 19 May 2009; Ulrich Mueller -eselect-1.1_rc1.ebuild, + +eselect-1.1_rc2.ebuild: + Version bump, fixes bug 270406. Remove previous release candidate. + +*eselect-1.1_rc1 (18 May 2009) + + 18 May 2009; Ulrich Mueller +eselect-1.1_rc1.ebuild: + Version bump; fixes bugs 155814 and 156866; enhancements from bugs 148= 578, + 153890, 180966, 190216, and 220473. + + 18 May 2009; Christian Faulhammer + eselect-1.0.12.ebuild: + stable x86, bug 270138 + + 18 May 2009; Jeroen Roovers eselect-1.0.12.ebuild: + Stable for HPPA (bug #270138). + + 17 May 2009; Tobias Klausmann eselect-1.0.12.ebu= ild: + Stable on alpha, bug #270138 + + 28 Apr 2009; Ulrich Mueller metadata.xml, eselect-999= 9: + Add paludis USE flag for the live ebuild. + +*eselect-9999 (18 Apr 2009) +*eselect-1.0.12 (18 Apr 2009) + + 18 Apr 2009; Ulrich Mueller +eselect-1.0.12.ebuild, + +eselect-9999.ebuild: + Version bump to 1.0.12; fixes bugs 172636, 198461, 203114, 204937, 218= 557, + 219864, 232874, 240402, 248470, 248487, 260464, and 264734. Add live e= build + for SVN trunk. Remove dependencies on editor modes, since only few use= rs of + eselect will edit its source. + + 17 Apr 2009; Ulrich Mueller eselect-1.0.11-r1.ebuild, + eselect-1.0.11-r2.ebuild: + Clarify the elog message in pkg_postinst, bug 187263. Remove the depen= dency + on procps (added at 14 April) again, since it leads to problems on Fre= eBSD; + bug 266540. In fact, a working "pgrep" command is not essential, since= it is + only called from the "die" function. See bug 264734 for details. + + 15 Apr 2009; Ulrich Mueller + -files/eselect-1.0.8-fix-parallel-install.patch: + Remove stale file. + + 14 Apr 2009; Ulrich Mueller eselect-1.0.11-r2.ebuild: + Add procps to RDEPEND, fixes bug 174354. + + 08 Apr 2009; Jeremy Olexa + +files/eselect-1.0.11-relative-profiles.patch, eselect-1.0.11-r2.ebuil= d: + Make 'eselect profile show' show the relative path. Patch by Thomas Be= llman + in bug 248487 + +*eselect-1.0.11-r2 (08 Apr 2009) + + 08 Apr 2009; Jeremy Olexa + +files/eselect-1.0.11-parent-profiles.patch, -eselect-1.0.2.ebuild, + -eselect-1.0.7.ebuild, -eselect-1.0.8.ebuild, -eselect-1.0.9.ebuild, + -eselect-1.0.11.ebuild, +eselect-1.0.11-r2.ebuild: + Version bump to fix bug 248470, patch by Thomas Bellman. Allows parent + profiles to be selectable. Also, remove old versions + + 08 Apr 2009; Jeremy Olexa eselect-1.0.11-r1.ebui= ld: + fix postinst message to include instructions for enabling globally, bu= g 265168 + + 17 Mar 2009; Ra=C3=BAl Porcel eselect-1.0.11-r1.e= build: + m68k stable wrt #208898, thanks to kolla for testing + + 29 Dec 2008; Ra=C3=BAl Porcel eselect-1.0.11-r1.e= build: + s390/sh stable wrt #208898 + + 16 Dec 2008; Doug Goldstein eselect-1.0.11-r1.ebui= ld: + amd64 stable + + 10 Dec 2008; Jeroen Roovers eselect-1.0.11-r1.ebuild: + Stable for HPPA (bug #208898). + + 09 Dec 2008; Brent Baude eselect-1.0.11-r1.ebuild: + Marking eselect-1.0.11-r1 ppc64 and ppc for bug 208898 + + 08 Dec 2008; Ra=C3=BAl Porcel eselect-1.0.11-r1.e= build: + alpha/arm/ia64/sparc/x86 stable wrt #208898 + + 25 May 2008; Markus Rothe eselect-1.0.11-r1.ebuil= d: + Stable on ppc64 + +*eselect-1.0.11-r1 (20 Mar 2008) + + 20 Mar 2008; Piotr Jaroszy=C5=84ski + +files/eselect-1.0.11-fix-paludis-command.patch, + +eselect-1.0.11-r1.ebuild: + Add -r1 with a patch fixing paludis_command(). + +*eselect-1.0.11 (01 Dec 2007) + + 01 Dec 2007; Piotr Jaroszy=C5=84ski +eselect-1.0.11= .ebuild: + Add 1.0.11. + + 05 Aug 2007; nixnut eselect-1.0.10.ebuild: + Stable on ppc wrt bug 185691 + + 01 Aug 2007; Joshua Kinard eselect-1.0.10.ebuild: + Stable on mips, per #185691. + + 01 Aug 2007; eselect-1.0.10.ebuild: + Stable on amd64. See bug #185691. + + 30 Jul 2007; Ra=C3=BAl Porcel eselect-1.0.10.ebui= ld: + alpha/ia64 stable wrt #185691 + + 30 Jul 2007; Jeroen Roovers eselect-1.0.10.ebuild: + Stable for HPPA (bug #185691). + + 30 Jul 2007; Gustavo Zacarias eselect-1.0.10.ebu= ild: + Stable on sparc wrt #185691 + + 30 Jul 2007; Markus Rothe eselect-1.0.10.ebuild: + Stable on ppc64; bug #185691 + + 30 Jul 2007; Christian Faulhammer + eselect-1.0.10.ebuild: + stable x86, bug 185691 + +*eselect-1.0.10 (17 Jun 2007) + + 17 Jun 2007; Danny van Dyk +eselect-1.0.10.ebui= ld: + Released 1.0.10 that fixes bugs #172472 and #172475. Thanks to Ulrich + Mueller . + + 06 May 2007; Mike Kelly eselect-1.0.9.ebuild: + Add vim-syntax USE flag to pull in eselect-syntax. + +*eselect-1.0.9 (28 Mar 2007) + + 28 Mar 2007; +eselect-1.0.9.ebuild: + Version bump. Fixes parallel install, improper use of DISTDIR, and som= e + issues with env.eselect. + + 07 Feb 2007; Simon Stelling eselect-1.0.7.ebuild: + stable on amd64; bug 160535 + + 26 Jan 2007; Bryan =C3=98stergaard eselect-1.0.7.e= build: + Stable on Alpha. + + 25 Jan 2007; Alexander H. F=C3=A6r=C3=B8y eselect-1= .0.7.ebuild: + Stable on MIPS. + + 24 Jan 2007; Marius Mauch eselect-1.0.2.ebuild, + eselect-1.0.7.ebuild, eselect-1.0.8.ebuild: + Replacing einfo with elog + + 16 Jan 2007; Jeroen Roovers eselect-1.0.7.ebuild: + Stable for HPPA (bug #160535). + + 15 Jan 2007; Mike Kelly + +files/eselect-1.0.8-fix-parallel-install.patch, eselect-1.0.8.ebuild: + Add a patch to really really fix Bug #162008. + + 14 Jan 2007; Danny van Dyk eselect-1.0.7.ebuild= : + Marked stable on amd64. + +*eselect-1.0.8 (14 Jan 2007) + + 14 Jan 2007; Mike Kelly +eselect-1.0.8.ebuild: + Version bump. Really fixes Bug #162008. + + 14 Jan 2007; Mike Kelly eselect-1.0.7.ebuild: + Force non-parallel install for now until all the Makefile issues can b= e fixed. + + 14 Jan 2007; Joseph Jezak eselect-1.0.7.ebuild: + Marked ppc stable for bug #160535. + + 09 Jan 2007; Christian Faulhammer eselect-1.0.7.ebu= ild: + stable x86, bug #160535 + + 09 Jan 2007; Markus Rothe eselect-1.0.7.ebuild: + Stable on ppc64; bug #160535 + + 08 Jan 2007; Gustavo Zacarias eselect-1.0.7.ebui= ld: + Stable on sparc wrt #160535 + + 07 Jan 2007; Mike Kelly eselect-1.0.7.ebuild: + Mark ~amd64 again, since we need to stable a few other things first. S= ee Bug + #160535. + + 06 Jan 2007; Mike Kelly eselect-1.0.7.ebuild: + Mark stable on amd64 (okayed by Kugelfang). + + 06 Jan 2007; Mike Kelly -eselect-1.0.6.ebuild: + Remove old and kinda buggy 1.0.6 version. + + 09 Nov 2006; Marien Zwart Manifest: + Fix Manifest. + + 09 Nov 2006; Marien Zwart +eselect-1.0.6.ebuild: + Put 1.0.6 back to avoid a downgrade while 1.0.7 is masked. + +*eselect-1.0.7 (08 Nov 2006) + + 08 Nov 2006; Danny van Dyk -eselect-1.0.ebuild, + -eselect-1.0.6.ebuild, +eselect-1.0.7.ebuild: + Removed obsolete version 1.0. Bumped eselect to version 1.0.7, which i= s a + bugfix release. + + 18 Oct 2006; Roy Marples eselect-1.0.6.ebuild: + Added ~sparc-fbsd keyword. + +*eselect-1.0.6 (03 Oct 2006) + + 03 Oct 2006; Danny van Dyk -eselect-1.0.5.ebuil= d, + +eselect-1.0.6.ebuild: + Removed version 1.0.5. Added version 1.0.6. + + 04 Sep 2006; Joshua Kinard eselect-1.0.2.ebuild: + Marked stable on mips. + +*eselect-1.0.5 (26 Aug 2006) + + 26 Aug 2006; Danny van Dyk -eselect-1.0.4.ebuil= d, + +eselect-1.0.5.ebuild: + Removed version 1.0.4. Added version 1.0.5. + + 19 Aug 2006; Bryan =C3=98stergaard eselect-1.0.2.e= build: + Stable on alpha. + + 16 Aug 2006; Markus Rothe eselect-1.0.2.ebuild: + Stable on ppc64 + +*eselect-1.0.4 (02 Aug 2006) + + 02 Aug 2006; Danny van Dyk -eselect-1.0.3.ebuil= d, + +eselect-1.0.4.ebuild: + Removed release 1.0.3. Added release 1.0.4. + + 02 Aug 2006; Gustavo Zacarias eselect-1.0.2.ebui= ld: + Stable on hppa + + 29 Jul 2006; Fabian Groffen eselect-1.0.2.ebuild: + Marked ~ppc-macos + + 15 Jul 2006; Joshua Jackson eselect-1.0.2.ebuild: + Stable x86; openoffice security bug + + 15 Jul 2006; Luis Medinas eselect-1.0.2.ebuild: + Stable on amd64. + + 12 Jul 2006; Aron Griffis eselect-1.0.2.ebuild: + Mark 1.0.2 stable on ia64 + + 12 Jul 2006; Gustavo Zacarias eselect-1.0.2.ebui= ld: + Stable on sparc + + 06 Jul 2006; Danny van Dyk eselect-1.0.ebuild, + eselect-1.0.2.ebuild, eselect-1.0.3.ebuild: + Added ChangeLog to the list of to-be-installed documents. + + 05 Jul 2006; Lars Weiler eselect-1.0.2.ebuild: + Stable on ppc; dependency for bug #139249. + + 03 Jul 2006; files/digest-eselect-1.0, + files/digest-eselect-1.0.2, Manifest: + Fix broken digests - as reported in #gentoo-amd64 + +*eselect-1.0.3 (03 Jul 2006) + + 06 Jun 2006; Stephen Bennett eselect-1.0.ebuild: + Mips stable for bug #125630 + + 19 Apr 2006; Diego Petten=C3=B2 eselect-1.0.2.e= build: + Add dependency over freebsd-bin as alternative to realpath, it does al= ready + provide a realpath binary that works. + +*eselect-1.0.2 (14 Apr 2006) + + 14 Apr 2006; Danny van Dyk -eselect-1.0.1.ebuil= d, + +eselect-1.0.2.ebuild: + Added bugfix release 1.0.2. Removed 1.0.1 due to a slightly broken env= .eselect. + +*eselect-1.0.1 (02 Apr 2006) + + 02 Apr 2006; Danny van Dyk -eselect-0.9.6.ebuil= d, + -eselect-1.0_rc1.ebuild, -eselect-1.0_rc2.ebuild, eselect-1.0.ebuild, + +eselect-1.0.1.ebuild: + Removed obsolete versions. Updated RDEPEND with sys-apps/file. Added 1= .0.1 + release. + + 30 Mar 2006; Diego Petten=C3=B2 eselect-1.0.ebu= ild: + Add ~x86-fbsd keyword, although the env module doesn't work, as other + modules are needed for other packages; most of this version works fine= . + + 12 Mar 2006; Jason Wever eselect-1.0.ebuild: + Stable on SPARC wrt bug #125630. + + 10 Mar 2006; Fernando J. Pereda eselect-1.0.ebuild: + Stable on alpha wrt bug #125630 + + 10 Mar 2006; Markus Rothe eselect-1.0.ebuild: + Stable on ppc64; bug #125630 + + 10 Mar 2006; Lars Weiler eselect-1.0.ebuild: + Stable on ppc wrt bug #125630. + + 10 Mar 2006; Michele Noberasco eselect-1.0.ebuild: + Stable for x86. See bug #125630. + + 09 Mar 2006; Aron Griffis eselect-1.0.ebuild: + Mark 1.0 stable on ia64 + + 09 Mar 2006; Jeroen Roovers eselect-1.0.ebuild: + Stable on hppa (bug #125630). + + 09 Mar 2006; Danny van Dyk eselect-1.0.ebuild: + Marked stable on amd64. + +*eselect-1.0 (09 Feb 2006) + + 09 Feb 2006; Ciaran McCreesh +eselect-1.0.ebuild: + New release. + + 19 Nov 2005; Markus Rothe eselect-0.9.6.ebuild, + eselect-1.0_rc1.ebuild, eselect-1.0_rc2.ebuild: + Added ~ppc64; bug #102649 + +*eselect-1.0_rc2 (16 Nov 2005) + + 16 Nov 2005; Danny van Dyk +eselect-1.0_rc2.ebu= ild: + Second release candidate for eselect-1.0. Fixes some bugs in BLAS and = LAPACK + support. Adds support for MKL72. + +*eselect-1.0_rc1 (19 Oct 2005) + + 19 Oct 2005; Aaron Walker +eselect-1.0_rc1.ebuild= : + First release candidate for 1.0. Please test; the more testers we get,= the + faster we'll get a stable eselect. This release fixes bugs #101898,#10= 4354, + and #106540 as well as a sleu of others (see NEWS for a full list). + + 19 Sep 2005; Aaron Walker -eselect-0.9.5.ebuild: + 0.9.5 has a broken digest; not worth keeping around, so removing it. + + 01 Aug 2005; Aaron Walker eselect-0.9.5.ebuild, + eselect-0.9.6.ebuild: + Since I'm an idiot, use newins rather than doins for installing the ba= shcomp. + + 31 Jul 2005; Aaron Walker eselect-0.9.5.ebuild, + eselect-0.9.6.ebuild: + Added ~hppa; updated ebuilds to not use bash-completion.eclass; also a= dded + missing NEWS/AUTHORS to the list of dodoc'd files. + +*eselect-0.9.6 (25 Jul 2005) + + 25 Jul 2005; Danny van Dyk +eselect-0.9.6.ebuil= d: + Version bump. + +*eselect-0.9.5 (18 Jun 2005) + + 18 Jun 2005; Aaron Walker -eselect-0.9.4.ebuild, + +eselect-0.9.5.ebuild: + Version bump. + +*eselect-0.9.4 (13 Jun 2005) + + 13 Jun 2005; Aaron Walker +metadata.xml, + +eselect-0.9.4.ebuild: + Version bump; moved from app-admin/eclectic to app-admin/eselect. + + 04 Jun 2005; Stephen Bennett eclectic-0.9.3.ebuild: + ~mips keywords + + 17 May 2005; Ciaran McCreesh eclectic-0.9.2.ebuil= d, + eclectic-0.9.3.ebuild: + Update homepage now that there's a proper website + + 16 May 2005; Ciaran McCreesh eclectic-0.9.3.ebuil= d: + Up the bash dependency to version 3. This is temporary and just for th= is + release. + +*eclectic-0.9.3 (16 May 2005) + + 16 May 2005; Ciaran McCreesh +eclectic-0.9.3.ebui= ld: + Version bump + + 15 May 2005; Fernando J. Pereda eclectic-0.9.2.ebui= ld: + keyworded ~alpha + + 15 May 2005; Ciaran McCreesh metadata.xml, + eclectic-0.9.2.ebuild: + Added ~sparc, update metadata + + 12 May 2005; Danny van Dyk eclectic-0.9.2.ebuil= d: + Marked ~amd64. + + 12 May 2005; Aaron Walker eclectic-0.9.2.ebuild: + Fix dohtml glob; default.css wasn't getting installed. + + 11 May 2005; Lars Weiler eclectic-0.9.2.ebuild: + Added ~ppc. + +*eclectic-0.9.2 (08 May 2005) + + 08 May 2005; Aaron Walker -eclectic-0.9.1.ebuild, + +eclectic-0.9.2.ebuild: + Version bump. + +*eclectic-0.9.1 (08 May 2005) + + 08 May 2005; Aaron Walker +metadata.xml, + +eclectic-0.9.1.ebuild: + Initial commit. + diff --git a/app-admin/eselect/eselect-1.2.16-r1.ebuild b/app-admin/esele= ct/eselect-1.2.16-r1.ebuild new file mode 100644 index 0000000..d8a2ea5 --- /dev/null +++ b/app-admin/eselect/eselect-1.2.16-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3D3 +inherit eutils bash-completion autotools + +DESCRIPTION=3D"Gentoo's multi-purpose configuration and management tool" +HOMEPAGE=3D"http://www.gentoo.org/proj/en/eselect/" +SRC_URI=3D"mirror://gentoo/${P}.tar.bz2" + +LICENSE=3D"GPL-2" +SLOT=3D"0" +KEYWORDS=3D"~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390= ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~= ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x6= 4-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solari= s ~x86-solaris" +IUSE=3D"doc" + +RDEPEND=3D"sys-apps/sed + || ( + sys-apps/coreutils + sys-freebsd/freebsd-bin + app-misc/realpath + )" +DEPEND=3D"${RDEPEND} + doc? ( dev-python/docutils )" +RDEPEND=3D"!app-admin/eselect-news + ${RDEPEND} + sys-apps/file + sys-libs/ncurses" + +# Commented out: only few users of eselect will edit its source +#PDEPEND=3D"emacs? ( app-emacs/gentoo-syntax ) +# vim-syntax? ( app-vim/eselect-syntax )" +src_prepare() { + epatch "${FILESDIR}"/${PN}-alternatives.patch + eautoreconf +} + +src_compile() { + emake || die "emake failed" + + if use doc; then + make html || die "failed to build html" + fi +} + +src_install() { + emake DESTDIR=3D"${D}" install || die "make install failed" + dodoc AUTHORS ChangeLog NEWS README TODO doc/*.txt + use doc && dohtml *.html doc/* + dobashcompletion misc/${PN}.bashcomp + + # needed by news module + keepdir /var/lib/gentoo/news +} + +pkg_postinst() { + # fowners in src_install doesn't work for the portage group: + # merging changes the group back to root + [[ -z ${EROOT} ]] && local EROOT=3D${ROOT} + chgrp portage "${EROOT}/var/lib/gentoo/news" \ + && chmod g+w "${EROOT}/var/lib/gentoo/news" + + bash-completion_pkg_postinst +} diff --git a/app-admin/eselect/files/eselect-alternatives.patch b/app-adm= in/eselect/files/eselect-alternatives.patch new file mode 100644 index 0000000..9914980 --- /dev/null +++ b/app-admin/eselect/files/eselect-alternatives.patch @@ -0,0 +1,601 @@ +Index: libs/Makefile.am +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- libs/Makefile.am (revision 803) ++++ libs/Makefile.am (working copy) +@@ -1,6 +1,7 @@ + eselectlibsdir =3D $(datadir)/$(PACKAGE_NAME)/libs/ +=20 + eselectlibs_DATA =3D \ ++ alternatives.bash \ + config.bash \ + core.bash \ + default.eselect \ +@@ -14,6 +15,7 @@ + tests.bash +=20 + EXTRA_DIST =3D \ ++ alternatives.bash.in \ + config.bash.in \ + core.bash.in \ + default.eselect.in \ +@@ -30,7 +32,8 @@ + -e 's,\@SED\@,@SED@,g' \ + -e 's,\@PORTAGEQ\@,@PORTAGEQ@,g' \ + -e 's,\@ENV_UPDATE\@,@ENV_UPDATE@,g' \ +- -e 's,\@CANONICALISE\@,@CANONICALISE@,g' ++ -e 's,\@CANONICALISE\@,@CANONICALISE@,g' \ ++ -e 's,\@sysconfdir\@,@sysconfdir@,g' +=20 + %.bash : %.bash.in + @$(dosed) $< > $@ +Index: bin/Makefile.am +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- bin/Makefile.am (revision 803) ++++ bin/Makefile.am (working copy) +@@ -4,6 +4,7 @@ + dosed =3D @SED@ -e 's,\@BASH\@,$(BASH),g' \ + -e 's,\@DATADIR\@,$(datadir),g' \ + -e 's,\@EPREFIX\@,$(EPREFIX),g' \ ++ -e 's,\@LIBEXECDIR\@,$(datadir),g' \ + -e 's,\@VERSION\@,$(VERSION),g' +=20 + % : %.in +Index: bin/eselect.in +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- bin/eselect.in (revision 803) ++++ bin/eselect.in (working copy) +@@ -22,10 +22,15 @@ + # Where are modules installed by default? + ESELECT_DEFAULT_MODULES_PATH=3D"${ESELECT_DATA_PATH}/modules" +=20 ++# Where are auto-generated modules placed? (e.g. from alternatives-2.ec= las) ++ESELECT_AUTO_GENERATED_MODULES_PATH=3D"${ESELECT_DEFAULT_MODULES_PATH}/= auto" ++ + # Look in these places for modules +-ESELECT_MODULES_PATH=3D( \ +- "${HOME}/.eselect/modules" \ +- "${ESELECT_DEFAULT_MODULES_PATH}" ) ++ESELECT_MODULES_PATH=3D( ++ "${HOME}/.eselect/modules" ++ "${ESELECT_DEFAULT_MODULES_PATH}" ++ "${ESELECT_AUTO_GENERATED_MODULES_PATH}" ++) +=20 + # Look in this place for libraries + ESELECT_CORE_PATH=3D"${ESELECT_DATA_PATH}/libs" +--- libs/alternatives.bash.in.orig 1970-01-01 01:00:00.000000000 +0100 ++++ libs/alternatives.bash.in 2010-12-15 19:37:54.000000000 +0000 +@@ -0,0 +1,533 @@ ++# Copyright 2008 Mike Kelly ++# Copyright 2009 David Leverton ++# Copyright 2010 Bo =C3=98rsted Andresen ++# 2010: Adapted to eselect Sebastien Fabbro (who doesn't like copyright= s) ++# Distributed under the terms of the GNU General Public License v2 ++ ++inherit config output path-manipulation ++ ++ALTERNATIVESDIR_ROOTLESS=3D"@sysconfdir@/env.d/alternatives" ++ALTERNATIVESDIR=3D"${EROOT}${ALTERNATIVESDIR_ROOTLESS}" ++ ++get_current_provider() { ++ local dieprefix=3D"Could not determine current provider for ${ALTER= NATIVE}" ++ if [[ -L ${ALTERNATIVESDIR}/${ALTERNATIVE}/_current ]]; then ++ local provider=3D$(readlink "${ALTERNATIVESDIR}/${ALTERNATIVE}/= _current" || die "${dieprefix}: readlink ${symlink} failed") ++ [[ ${provider} =3D=3D */* ]] && die "${dieprefix}: malformed ta= rget for ${symlink}" ++ ++ if [[ -L ${ALTERNATIVESDIR}/${ALTERNATIVE}/${provider} || ++ ( -e ${ALTERNATIVESDIR}/${ALTERNATIVE}/${provider} = && ! -d ${ALTERNATIVESDIR}/${ALTERNATIVE}/${provider} ) ]]; then ++ die "${dieprefix}: ${ALTERNATIVESDIR}/${ALTERNATIVE}/${prov= ider} is not a directory" ++ fi ++ ++ echo "${provider}" ++ ++ elif [[ -e ${ALTERNATIVESDIR}/${ALTERNATIVE}/_current ]]; then ++ die "${dieprefix}: ${ALTERNATIVESDIR}/${ALTERNATIVE}/_current i= s not a symlink" ++ fi ++} ++ ++compare_importance() { ++ local IFS=3D. ++ local a=3D( ${1} ) b=3D( ${2} ) ++ local -i i=3D0 ++ while (( i<${#a[@]} && i<${#b[@]} )); do ++ if (( a[i]b[i] )); then ++ return 1 ++ fi ++ i+=3D1 ++ done ++ (( i<${#b[@]} )) ++} ++ ++sort_providers() { ++ local begin=3D${1:-0} ++ local count=3D${2:-${#providers[@]}} ++ [[ ${count} -le 1 ]] && return 0 ++ sort_providers ${begin} $((count/2)) ++ sort_providers $((begin+count/2)) $((count-count/2)) ++ local left=3D( "${providers[@]:begin:count/2}" ) ++ local right=3D( "${providers[@]:begin+count/2:count-count/2}" ) ++ local -i x i=3D0 j=3D0 ++ for (( x=3Dbegin; x=3D${#right[@]} )) || { (( i<${#left[@]} )) && compare_= importance "${left[i]%%:*}" "${right[j]%%:*}"; }; then ++ providers[x]=3D${left[i++]} ++ else ++ providers[x]=3D${right[j++]} ++ fi ++ done ++} ++ ++get_providers() { ++ local p=3D importance providers=3D() ++ for p in "${ALTERNATIVESDIR}/${ALTERNATIVE}"/* ; do ++ [[ -d ${p} && ! -L ${p} ]] || continue ++ p=3D${p##*/} ++ ++ importance=3D$(< "${ALTERNATIVESDIR}/${ALTERNATIVE}/${p}/_impor= tance") ++ importance=3D${importance:-0} ++ [[ "${importance}" =3D~ ^[0123456789]+(\.[0123456789]+)*$ ]] ||= die "_importance (${importance}) for ${p} is not a dot-separated list of= integers" ++ ++ providers+=3D( "${importance}:${p}" ) ++ done ++ ++ sort_providers ++ for (( p=3D${#providers[@]}-1 ; p>=3D0 ; --p )); do ++ echo "${providers[p]#*:}" ++ done ++} ++ ++### show action ### ++describe_show() { ++ echo "Show the current provider in use for ${ALTERNATIVE}" ++} ++ ++do_show() { ++ [[ -z "${ALTERNATIVE}" ]] && die "Need to set ALTERNATIVE in the es= elect module" ++ local current=3D"$(get_current_provider)" ++ if [[ -z "${current}" ]] ; then ++ echo "(none)" ++ return 2 ++ fi ++ echo "${current}" ++} ++ ++options_show() { ++ : ++} ++ ++### list action ### ++describe_list() { ++ echo "Lists all available providers for ${ALTERNATIVE}" ++} ++ ++do_list() { ++ [[ -z "${ALTERNATIVE}" ]] && die "Need to set ALTERNATIVE in the es= elect module" ++ local n cur=3D providers=3D( $(get_providers) ) ++ write_list_start "Available providers for ${ALTERNATIVE}:" ++ ++ cur=3D"$(get_current_provider)" ++ ++ if [[ -n "${providers[@]}" ]] ; then ++ for (( n =3D 0 ; n < ${#providers[@]} ; ++n )) ; do ++ [[ ${cur} =3D=3D "${providers[${n}]}" ]] && \ ++ providers[${n}]=3D"${providers[${n}]} $(highlight '*')" ++ done ++ write_numbered_list "${providers[@]}" ++ else ++ write_kv_list_entry "(none found)" "" ++ fi ++} ++ ++options_list() { ++ : ++} ++ ++### files action ### ++describe_files() { ++ echo "Lists symlinks provided by the currently selected provider" ++} ++ ++do_files() { ++ [[ -z "${ALTERNATIVE}" ]] && die "Need to set ALTERNATIVE in the es= elect module" ++ ++ local cur=3D"$(get_current_provider)" p=3D ++ [[ -n "${cur}" ]] || die -q "No selected provider, hence no symlink= s provided" ++ local dieprefix=3D"Could not list symlinks provided for ${ALTERNATI= VE}" ++ ++ local errors symlink rootsymlink ++ while read -r -d '' symlink; do ++ rootsymlink=3D"${EROOT}${symlink}" ++ rootsymlink=3D${rootsymlink//+(\/)/\/} ++ echo "${rootsymlink}" ++ if [[ -L ${rootsymlink} ]]; then ++ if [[ ! -e ${rootsymlink} ]]; then ++ write_error_msg "${rootsymlink} is dangling symlink" ++ errors=3Dyes ++ fi ++ elif [[ -d ${rootsymlink} ]]; then ++ write_error_msg "${rootsymlink} is a directory" ++ errors=3Dyes ++ elif [[ -e ${rootsymlink} ]]; then ++ write_error_msg "${rootsymlink} exists but is not a symlink= " ++ errors=3Dyes ++ else ++ write_error_msg "${rootsymlink} does not exist" ++ errors=3Dyes ++ fi ++ done <"${ALTERNATIVESDIR}/${ALTERNATIVE}/_current_list" ++} ++ ++options_files() { ++ : ++} ++ ++### set action ### ++ ++describe_set() { ++ echo "Sets a provider for ${ALTERNATIVE}" ++} ++ ++describe_set_parameters() { ++ echo "[ --force ] " ++} ++ ++describe_set_options() { ++ echo "--force : overwrite or remove existing non-symlink files (but= not directories) if necessary" ++ echo " : the name of the provider to use" ++} ++ ++do_set() { ++ [[ -z "${ALTERNATIVE}" ]] && die "Need to set ALTERNATIVE in the es= elect module" ++ ++ local force=3D ++ if [[ ${1} =3D=3D --force ]]; then ++ force=3Dyes ++ shift ++ fi ++ ++ local provider=3D"${1}" ++ [[ -z "${provider}" ]] && die -q "Missing required parameter 'provi= der'" ++ if is_number "${provider}" ; then ++ local providers=3D( $(get_providers) ) ++ (( ${provider} <=3D ${#providers[@]} )) || die -q "The given pr= ovider (${provider}) does not exist" ++ provider=3D${providers[${provider}-1]} ++ fi ++ local dieprefix=3D"Could not set provider ${provider} for alternati= ve ${ALTERNATIVE}" ++ ++ [[ -d ${ALTERNATIVESDIR}/${ALTERNATIVE}/${provider} ]] \ ++ || die -q "The given provider (${provider}) does not exist" ++ ++ local symlink newsymlinks=3D() oldsymlinks=3D() ++ ++ while read -r -d '' symlink; do ++ local nicesymlink=3D${symlink#.} ++ nicesymlink=3D${nicesymlink//+(\/)/\/} ++ [[ ${nicesymlink} =3D=3D /* ]] || die "${dieprefix}: bad symlin= k ${symlink}?" ++ [[ ${nicesymlink} =3D=3D */ ]] && die "${dieprefix}: bad symlin= k ${symlink}?" ++ ++ newsymlinks+=3D( "${nicesymlink}" ) ++ done < <( ++ cd "${ALTERNATIVESDIR}/${ALTERNATIVE}/${provider}" || die "${di= eprefix}: cd failed" ++ find . -type l -print0 | LC_ALL=3DC sort -r -u -z) ++ [[ ${#newsymlinks[@]} -gt 0 ]] || die "${dieprefix}: does not provi= de any symlinks?" ++ ++ if [[ -f ${ALTERNATIVESDIR}/${ALTERNATIVE}/_current_list ]]; then ++ while read -r -d '' symlink; do ++ local nicesymlink=3D${symlink//+(\/)/\/} ++ [[ ${nicesymlink} =3D=3D /* ]] || die "${dieprefix}: old pr= ovider ${oldcur} provides bad symlink ${symlink}?" ++ [[ ${nicesymlink} =3D=3D */ ]] && die "${dieprefix}: old pr= ovider ${oldcur} provides bad symlink ${symlink}?" ++ ++ oldsymlinks+=3D( "${nicesymlink}" ) ++ done < <(LC_ALL=3DC sort -r -u -z "${ALTERNATIVESDIR}/${ALTERNA= TIVE}/_current_list") ++ [[ ${#oldsymlinks[@]} -gt 0 ]] || die "${dieprefix}: old provid= er ${oldcur} does not provide any symlinks?" ++ ++ elif [[ -L ${ALTERNATIVESDIR}/${ALTERNATIVE}/_current_list || -e ${= ALTERNATIVESDIR}/${ALTERNATIVE}/_current_list ]]; then ++ die "${dieprefix}: ${ALTERNATIVESDIR}/${ALTERNATIVE}/_current_l= ist is not a file" ++ fi ++ ++ local pass errors=3D ++ for pass in check perform; do ++ local -i new_i=3D0 old_i=3D0 ++ while [[ -n ${newsymlinks[new_i]} || -n ${oldsymlinks[old_i]} ]= ]; do ++ ++ if ( LC_ALL=3DC; [[ ${newsymlinks[new_i]} < ${oldsymlinks[o= ld_i]} ]] ); then ++ if [[ ${pass} =3D=3D check ]]; then ++ if [[ -L ${EROOT}${oldsymlinks[old_i]} ]]; then ++ : ++ elif [[ -d ${EROOT}${oldsymlinks[old_i]} ]]; then ++ write_error_msg "Can't remove ${EROOT}${oldsyml= inks[old_i]}: is a directory${force:+ which is a fatal error that cannot = be ignored by --force}" ++ errors=3Dyes ++ elif [[ -e ${EROOT}${oldsymlinks[old_i]} ]]; then ++ if [[ -n ${force} ]]; then ++ write_warning_msg "Removing ${EROOT}${oldsy= mlinks[old_i]} due to --force: is not a symlink" ++ else ++ write_error_msg "Refusing to remove ${EROOT= }${oldsymlinks[old_i]}: is not a symlink (use --force to override)" ++ errors=3Dyes ++ fi ++ fi ++ ++ elif [[ ${pass} =3D=3D perform ]]; then ++ rm -f "${ROOT}${oldsymlinks[old_i]}" || die "${diep= refix}: rm failed" ++ else ++ die "${dieprefix}: unknown \${pass} ${pass}???" ++ fi ++ ++ old_i+=3D1 ++ ++ else ++ local target=3D${ALTERNATIVESDIR_ROOTLESS#/}/${ALTERNAT= IVE}/_current${newsymlinks[new_i]} dir=3D${newsymlinks[new_i]%/*} ++ while [[ -n ${dir} ]]; do ++ target=3D../${target} ++ dir=3D${dir%/*} ++ done ++ ++ if [[ ${pass} =3D=3D check ]]; then ++ if [[ -L ${EROOT}${newsymlinks[new_i]} ]]; then ++ : ++ elif [[ -d ${EROOT}${newsymlinks[new_i]} ]]; then ++ write_error_msg "Can't overwrite ${EROOT}${news= ymlinks[new_i]}: is a directory${force:+ which is a fatal error that cann= ot be ignored by --force}" ++ errors=3Dyes ++ elif [[ -e ${EROOT}${newsymlinks[new_i]} ]]; then ++ if [[ -n ${force} ]]; then ++ write_warning_msg "Overwriting ${EROOT}${ne= wsymlinks[new_i]} due to --force: is not a symlink" ++ else ++ write_error_msg "Refusing to overwrite ${ER= OOT}${newsymlinks[new_i]}: is not a symlink (use --force to override)" ++ errors=3Dyes ++ fi ++ fi ++ ++ elif [[ ${pass} =3D=3D perform ]]; then ++ mkdir -p "${EROOT}${newsymlinks[new_i]%/*}" || die = "${dieprefix}: mkdir -p failed" ++ ln -snf "${target#/}" "${EROOT}${newsymlinks[new_i]= }" || die "${dieprefix}: ln -snf failed" ++ else ++ die "${dieprefix}: unknown \${pass} ${pass}???" ++ fi ++ ++ [[ ${newsymlinks[new_i]} =3D=3D ${oldsymlinks[old_i]} ]= ] && old_i+=3D1 ++ new_i+=3D1 ++ fi ++ done ++ ++ [[ -n ${errors} ]] && die "${dieprefix}: see previous errors" ++ done ++ ++ local oldcur=3D"$(get_current_provider)" ++ ln -snf "${provider}" "${ALTERNATIVESDIR}/${ALTERNATIVE}/_current" = || die "${dieprefix}: ln -snf failed" ++ ++ : >"${ALTERNATIVESDIR}/${ALTERNATIVE}/_current_list" || die "${diep= refix}: emptying/creating _current_list failed" ++ for symlink in "${newsymlinks[@]}"; do ++ echo -n -e "${symlink}\\0" >>"${ALTERNATIVESDIR}/${ALTERNATIVE}= /_current_list" || die "${dieprefix}: appending ${symlink} to _current_li= st failed" ++ done ++ return 0 ++} ++ ++_options_parameters() { ++ [[ -n ${2} && ${2} !=3D --descriptions ]] && die -q "Unrecognised o= ption ${2}" ++ local describe_func=3Ddescribe_${1#options_}_options descriptions=3D= ${2} opt options oldifs=3D$IFS ++ if is_function ${describe_func}; then ++ IFS=3D$'\n' ++ options=3D( $(${describe_func}) ) ++ IFS=3D$oldifs ++ for opt in "${options[@]}"; do ++ [[ ${opt} =3D=3D --* ]] || continue ++ if [[ -n ${descriptions} ]]; then ++ echo "${opt/ : /:}" ++ else ++ echo "${opt%% : *}" ++ fi ++ done ++ fi ++} ++ ++options_set() { ++ _options_parameters $FUNCNAME "$@" ++ get_providers ++} ++ ++### update action ### ++ ++describe_update() { ++ echo "Set a default provider if no valid one currently exists" ++} ++ ++describe_update_parameters() { ++ echo "[--ignore] " ++} ++ ++describe_update_options() { ++ echo "--ignore : update to any valid provider EXCEPT the specified = provider" ++ echo " : the name of the provider to use" ++} ++ ++do_update() { ++ [[ -z "${ALTERNATIVE}" ]] && die "Need to set ALTERNATIVE in the es= elect module" ++ ++ local p cur=3D$(get_current_provider) providers=3D( $(get_providers= ) ) ignore ++ if [[ "--ignore" =3D=3D ${1} ]] ; then ++ # Try everything except setting the provider to the given ++ # one. So, if it isn't the given one, we end up doing ++ # nothing. Bug #128 ++ shift ++ ignore=3D${1} ++ fi ++ ++ if [[ ${cur} =3D=3D ${1} && -z ${ignore} ]]; then ++ # if current provider was just updated, reselect it since it co= uld have changed ++ do_set "${cur}" && return 0 ++ elif [[ -n ${cur} && ${cur} !=3D ${ignore} ]] ; then ++ # verify existing provider's symlinks ++ local p=3D bad=3D0 ++ while read -r -d '' p ; do ++ [[ -L "${EROOT}${p}" && -e "${EROOT}${p}" ]] || (( bad++ )) ++ done < "${ALTERNATIVESDIR}/${ALTERNATIVE}/_current_list" ++ ++ [[ "${bad}" -eq 0 ]] && return 0 ++ # fix existing provider if possible ++ has "${cur}" "${providers[@]}" && do_set "${cur}" && return 0 ++ elif has "${1}" "${providers[@]}" && [[ -z ${ignore} ]] ; then ++ # switch to new provider if none was set before or it can't be = fixed ++ do_set "${1}" && return 0 ++ fi ++ ++ # if no valid provider has been selected switch to first available,= valid ++ # provider, sorted according to importance ++ for p in "${providers[@]}"; do ++ [[ ${ignore} !=3D ${p} ]] && do_set "${p}" && return 0 ++ done ++ ++ # if a provider is set but no providers are available anymore clean= up ++ cur=3D$(get_current_provider) ++ if [[ -n ${cur} ]]; then ++ do_unset "${cur}" && return 2 ++ fi ++ # if no provider is set and none are available that are not ignored= , return 2 for cleanup ++ [[ -z ${providers[@]} || ${providers[@]} =3D=3D ${ignore} ]] && ret= urn 2 ++ ++ # we tried everything to select a valid provider, but failed ++ return 1 ++} ++ ++options_update() { ++ _options_parameters $FUNCNAME "$@" ++ get_providers ++} ++ ++### unset action ### ++ ++describe_unset() { ++ echo "Unset any symlinks created for the current provider for ${ALT= ERNATIVE}." ++} ++ ++describe_unset_parameters() { ++ echo "[ --force ]" ++} ++ ++describe_unset_options() { ++ echo "--force : remove existing non-symlink files (but not director= ies) if necessary" ++} ++ ++do_unset() { ++ [[ -z "${ALTERNATIVE}" ]] && die "Need to set ALTERNATIVE in the es= elect module" ++ ++ local force=3D ++ if [[ ${1} =3D=3D --force ]]; then ++ force=3Dyes ++ shift ++ fi ++ ++ local cur=3D"$(get_current_provider)" p=3D ++ [[ -n "${cur}" ]] || die -q "Nothing to unset" ++ local dieprefix=3D"Could not unset provider for ${ALTERNATIVE}" ++ ++ local one=3Dfalse symlink pass errors=3D ++ for pass in check perform; do ++ while read -r -d '' symlink; do ++ one=3Dtrue ++ if [[ ${pass} =3D=3D check ]]; then ++ if [[ -L ${EROOT}${symlink} ]]; then ++ : ++ elif [[ -d ${EROOT}${symlink} ]]; then ++ write_error_msg "Can't remove ${EROOT}${symlink}: i= s a directory${force:+ which is a fatal error that cannot be ignored by -= -force}" ++ errors=3Dyes ++ elif [[ -e ${EROOT}${symlink} ]]; then ++ if [[ -n ${force} ]]; then ++ write_warning_msg "Removing ${EROOT}${symlink} = due to --force: is not a symlink" ++ else ++ write_error_msg "Refusing to remove ${EROOT}${s= ymlink}: is not a symlink (use --force to override)" ++ errors=3Dyes ++ fi ++ fi ++ ++ elif [[ ${pass} =3D=3D perform ]]; then ++ rm -f "${EROOT}${symlink}" || die "${dieprefix}: rm fai= led" ++ else ++ die "${dieprefix}: unknown \${pass} ${pass}???" ++ fi ++ done <"${ALTERNATIVESDIR}/${ALTERNATIVE}/_current_list" ++ ++ [[ -n ${errors} ]] && die "${dieprefix}: see previous errors" ++ done ++ ++ ${one} || die "${dieprefix}: does not provide any symlinks?" ++ ++ rm "${ALTERNATIVESDIR}/${ALTERNATIVE}"/{_current,_current_list} || = die "${dieprefix}: rm failed" ++} ++ ++options_unset() { ++ _options_parameters $FUNCNAME "$@" ++ get_current_provider ++} ++ ++### script action ### ++ ++describe_script() { ++ echo "Output an evalable script fragment to set PATH, LD_LIBRARY_PA= TH and MANPATH to use the specified provider" ++} ++ ++describe_script_parameters() { ++ echo "[--sh | --csh] []" ++} ++ ++describe_script_options() { ++ echo "--sh : use Bourne shell syntax (default)" ++ echo "--csh : use C shell syntax" ++ echo " : the provider to use (if not specified, use the s= ystem default)" ++} ++ ++do_script() { ++ [[ -z "${ALTERNATIVE}" ]] && die "Need to set ALTERNATIVE in the es= elect module" ++ local syntax=3Dsh ++ if [[ ${1} =3D=3D --sh ]]; then ++ shift ++ elif [[ ${1} =3D=3D --csh ]]; then ++ syntax=3Dcsh ++ shift ++ fi ++ local provider=3D${1} ++ [[ -z "${provider}" ]] && die -q "Missing required parameter 'provi= der'" ++ if is_number "${provider}" ; then ++ local providers=3D( $(get_providers) ) ++ (( ${provider} <=3D ${#providers[@]} )) || die -q "The given pr= ovider (${provider}) does not exist" ++ provider=3D${providers[${provider}-1]} ++ fi ++ [[ -d ${ALTERNATIVESDIR}/${ALTERNATIVE}/${provider} ]] || die -q "T= he given provider (${provider}) does not exist" ++ ++ local variables=3D( PATH LD_LIBRARY_PATH MANPATH ) ++ [[ -n ${!default_*} ]] && local ${!default_*} ++ local default_LD_LIBRARY_PATH=3D$(grep '^[^#]' "${EROOT}"/etc/ld.so= .conf | tr '\n' ':')/lib:/usr/lib ++ local default_MANPATH=3D$(MANPATH=3D man -C"${EROOT}"/etc/man.conf = -w) ++ ++ local var IFS=3D: ++ for var in "${variables[@]}"; do ++ local defvar=3Ddefault_${var} path paths=3D( ) ++ for path in ${!var}; do ++ [[ ${path} =3D=3D ${ALTERNATIVESDIR_ROOTLESS}/${ALTERNATIVE= }/* ]] && continue ++ [[ -n ${provider} && -d ${ALTERNATIVESDIR}/${ALTERNATIVE}/$= {provider}/${path#/} ]] && paths+=3D( "${ALTERNATIVESDIR_ROOTLESS}/${ALTE= RNATIVE}/${provider}/${path#/}" ) ++ paths+=3D( "${path}" ) ++ done ++ ++ [[ -n ${provider} ]] && for path in ${!defvar}; do ++ [[ -d ${ALTERNATIVESDIR}/${ALTERNATIVE}/${provider}/${path#= /} ]] && paths+=3D( "${ALTERNATIVESDIR_ROOTLESS}/${ALTERNATIVE}/${provide= r}/${path#/}" ) ++ done ++ ++ local newval=3D${paths[*]} ++ if [[ ${newval} !=3D ${!var} ]]; then ++ newval=3D${newval//\'/\'\\\'\'} ++ if [[ ${syntax} =3D=3D sh ]]; then ++ echo "${var}=3D'${newval}'; export ${var}" ++ else ++ echo "setenv ${var} '${newval}'" ++ fi ++ fi ++ done ++} ++ ++options_script() { ++ _options_parameters $FUNCNAME "$@" ++ get_providers ++} ++ ++# vim: set ft=3Deselect sw=3D4 sts=3D4 ts=3D4 et tw=3D80 : diff --git a/app-admin/eselect/metadata.xml b/app-admin/eselect/metadata.= xml new file mode 100644 index 0000000..dbaf8c8 --- /dev/null +++ b/app-admin/eselect/metadata.xml @@ -0,0 +1,8 @@ + + + +no-herd + + eselect@gentoo.org + +