summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2007-05-25 13:26:01 +0000
committerGeorge Shapovalov <george@gentoo.org>2007-05-25 13:26:01 +0000
commitf953f20ae6833b87c7b819b7a858dd990a9d149e (patch)
tree6280316463c95467ecf67c1d2b196fa93ef8ced6 /app-admin
parentAdd ~x86-fbsd (diff)
downloadhistorical-f953f20ae6833b87c7b819b7a858dd990a9d149e.tar.gz
historical-f953f20ae6833b87c7b819b7a858dd990a9d149e.tar.bz2
historical-f953f20ae6833b87c7b819b7a858dd990a9d149e.zip
removed old versions
Package-Manager: portage-2.1.2.7
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/eselect-gnat/ChangeLog8
-rw-r--r--app-admin/eselect-gnat/Manifest41
-rw-r--r--app-admin/eselect-gnat/eselect-gnat-0.7.ebuild25
-rw-r--r--app-admin/eselect-gnat/eselect-gnat-0.8-r1.ebuild25
-rw-r--r--app-admin/eselect-gnat/eselect-gnat-0.8.ebuild25
-rw-r--r--app-admin/eselect-gnat/files/digest-eselect-gnat-0.70
-rw-r--r--app-admin/eselect-gnat/files/digest-eselect-gnat-0.80
-rw-r--r--app-admin/eselect-gnat/files/digest-eselect-gnat-0.8-r10
-rw-r--r--app-admin/eselect-gnat/files/gnat.eselect-0.7293
-rw-r--r--app-admin/eselect-gnat/files/gnat.eselect-0.8295
-rw-r--r--app-admin/eselect-gnat/files/gnat.eselect-0.8-r1299
11 files changed, 11 insertions, 1000 deletions
diff --git a/app-admin/eselect-gnat/ChangeLog b/app-admin/eselect-gnat/ChangeLog
index 8c8855f0a52b..231d103dc60d 100644
--- a/app-admin/eselect-gnat/ChangeLog
+++ b/app-admin/eselect-gnat/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-admin/eselect-gnat
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-gnat/ChangeLog,v 1.11 2007/05/25 13:20:35 george Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-gnat/ChangeLog,v 1.12 2007/05/25 13:26:01 george Exp $
+
+ 25 May 2007; user account for gentoo cvs access <portage-cvs@gentoo.org>
+ -files/gnat.eselect-0.7, -files/gnat.eselect-0.8,
+ -files/gnat.eselect-0.8-r1, -eselect-gnat-0.7.ebuild,
+ -eselect-gnat-0.8.ebuild, -eselect-gnat-0.8-r1.ebuild:
+ removed old versions (would not work with the eclasses at present in fact)
*eselect-gnat-1.0 (25 May 2007)
diff --git a/app-admin/eselect-gnat/Manifest b/app-admin/eselect-gnat/Manifest
index db36f76c76e1..ae283ec2aab1 100644
--- a/app-admin/eselect-gnat/Manifest
+++ b/app-admin/eselect-gnat/Manifest
@@ -1,15 +1,3 @@
-AUX gnat.eselect-0.7 7998 RMD160 5c827f60eab68e6dc610bc0413fb1c0733a9b3f4 SHA1 f3684ee0ad676dd123f08c3a1e4111907879e1f9 SHA256 523305b841224b8555a4c7256951e82f236e34d6ee120528e4b0ed18f1f35c8b
-MD5 bfdad82d05e2ae0875d864e530a61e51 files/gnat.eselect-0.7 7998
-RMD160 5c827f60eab68e6dc610bc0413fb1c0733a9b3f4 files/gnat.eselect-0.7 7998
-SHA256 523305b841224b8555a4c7256951e82f236e34d6ee120528e4b0ed18f1f35c8b files/gnat.eselect-0.7 7998
-AUX gnat.eselect-0.8 8057 RMD160 494bbd332d33c01e59b8a6cf6863b7fe9bfcf6dc SHA1 884ded72e1b37421524b5e0abf4371888c112f6d SHA256 612493f254777242dfcc5d5c1b08d54d7cf7cc8ad8e476160ce6ddc6229d32b4
-MD5 2f31bfc00c3ae2bee128a2f5333c823a files/gnat.eselect-0.8 8057
-RMD160 494bbd332d33c01e59b8a6cf6863b7fe9bfcf6dc files/gnat.eselect-0.8 8057
-SHA256 612493f254777242dfcc5d5c1b08d54d7cf7cc8ad8e476160ce6ddc6229d32b4 files/gnat.eselect-0.8 8057
-AUX gnat.eselect-0.8-r1 8222 RMD160 0c34c47c9ea10dcddb951c1f49ee971e0e2e359a SHA1 524e94f31646de39d63b21e4cd420954c784cd58 SHA256 4619fb0eec258a411be8b5fa860f4dd7c377f27a72cb0243e35e321f0b10cd46
-MD5 769d8a0d70b668d2a1b51c1c364e572a files/gnat.eselect-0.8-r1 8222
-RMD160 0c34c47c9ea10dcddb951c1f49ee971e0e2e359a files/gnat.eselect-0.8-r1 8222
-SHA256 4619fb0eec258a411be8b5fa860f4dd7c377f27a72cb0243e35e321f0b10cd46 files/gnat.eselect-0.8-r1 8222
AUX gnat.eselect-0.9 8349 RMD160 cf299feb0ef29b3044e615c205a47af6086100aa SHA1 902440bcd70d8c1093defecee64d54df296d1716 SHA256 e919411615779d87c99fa50baf464b6afbce94b9efe714da7cc087643d8edc34
MD5 b6ec1c2ffaed75cb8127e2c6b48f14a6 files/gnat.eselect-0.9 8349
RMD160 cf299feb0ef29b3044e615c205a47af6086100aa files/gnat.eselect-0.9 8349
@@ -18,18 +6,6 @@ AUX gnat.eselect-1.0 8531 RMD160 83ae1a2d7802972413c6fbd023439c4d289dd02c SHA1 9
MD5 fe9b7ac1ee6c531f9e6d16c5e4205b81 files/gnat.eselect-1.0 8531
RMD160 83ae1a2d7802972413c6fbd023439c4d289dd02c files/gnat.eselect-1.0 8531
SHA256 d0460d8dcb5b999c3e7356689c25ebab20da75fc601c5a5a117af27c243f36b2 files/gnat.eselect-1.0 8531
-EBUILD eselect-gnat-0.7.ebuild 623 RMD160 6120ba6e8f37ec328a64658f1f61824c45e678c5 SHA1 a815e77026b2c998bcc0003eaa360b2b4c453cc9 SHA256 2b850296732515727a6969895d9a14e096a06633034fd56e3b88f68d7d6b93ee
-MD5 c3af14b9775c7785b643c40150c667e5 eselect-gnat-0.7.ebuild 623
-RMD160 6120ba6e8f37ec328a64658f1f61824c45e678c5 eselect-gnat-0.7.ebuild 623
-SHA256 2b850296732515727a6969895d9a14e096a06633034fd56e3b88f68d7d6b93ee eselect-gnat-0.7.ebuild 623
-EBUILD eselect-gnat-0.8-r1.ebuild 633 RMD160 6958b2679e8344af67ccecf074b91d379b726678 SHA1 6b7db13ab88dac5b947ad93672a54a84a792e6c1 SHA256 d9d4568b57177f71709b72ca4e9402783b40ae590aa7b55f7482dcdc58cbce12
-MD5 958651334279683f9b3447cd7d0e8720 eselect-gnat-0.8-r1.ebuild 633
-RMD160 6958b2679e8344af67ccecf074b91d379b726678 eselect-gnat-0.8-r1.ebuild 633
-SHA256 d9d4568b57177f71709b72ca4e9402783b40ae590aa7b55f7482dcdc58cbce12 eselect-gnat-0.8-r1.ebuild 633
-EBUILD eselect-gnat-0.8.ebuild 628 RMD160 456940a07b15b0dac66f1b0fe1eaf91f7744a1cd SHA1 1f96517680277c8257a7b86c89632794d1b99c86 SHA256 0f3fbd4c483b3bec5898d9c0ac0b934ab29d15759ab679d38c341296d239f1ee
-MD5 10da4a9295792af05b1ac0e7199c3712 eselect-gnat-0.8.ebuild 628
-RMD160 456940a07b15b0dac66f1b0fe1eaf91f7744a1cd eselect-gnat-0.8.ebuild 628
-SHA256 0f3fbd4c483b3bec5898d9c0ac0b934ab29d15759ab679d38c341296d239f1ee eselect-gnat-0.8.ebuild 628
EBUILD eselect-gnat-0.9.ebuild 630 RMD160 0d006dfa770e6b257b2583c9ead975885fef55e4 SHA1 0f6daa904261a7adb17fbd1cc7d5a48f7351f1cc SHA256 4361f3e7ed8a8a246d03e5ab2dacf3d68c8f12d4b7bc0531257a91805bf7f9b0
MD5 15901856238b3e8fa1f2da55600873cd eselect-gnat-0.9.ebuild 630
RMD160 0d006dfa770e6b257b2583c9ead975885fef55e4 eselect-gnat-0.9.ebuild 630
@@ -38,23 +14,14 @@ EBUILD eselect-gnat-1.0.ebuild 630 RMD160 428d39e90ef4844bc30a0603d5b1243347dd07
MD5 33469f34cc29b2bca05f107157db36a4 eselect-gnat-1.0.ebuild 630
RMD160 428d39e90ef4844bc30a0603d5b1243347dd07eb eselect-gnat-1.0.ebuild 630
SHA256 6072990789e3fa357e9bcb2c207471d828a039f65c83ad05e71015e39583885d eselect-gnat-1.0.ebuild 630
-MISC ChangeLog 2163 RMD160 41c975e00af4b87a66029d65d1f409ed23668dcc SHA1 f195d6cfa31cb75184fecad405d191dc6084a47f SHA256 62df2e15c1d72949ba602f13004036544c828886442442f477c91f68fe33d2d1
-MD5 46f628d8674615f652c9935abf44ebcc ChangeLog 2163
-RMD160 41c975e00af4b87a66029d65d1f409ed23668dcc ChangeLog 2163
-SHA256 62df2e15c1d72949ba602f13004036544c828886442442f477c91f68fe33d2d1 ChangeLog 2163
+MISC ChangeLog 2481 RMD160 d2792c791cf198230577f152d79c1df78eabe756 SHA1 13e365604aa984073f611c5496661ff1038279e5 SHA256 e4beb79b92ba2141c0de583824e589ba13854e09f91560ffb58742f03a240077
+MD5 118b5499a4c920ae9878ba41af361378 ChangeLog 2481
+RMD160 d2792c791cf198230577f152d79c1df78eabe756 ChangeLog 2481
+SHA256 e4beb79b92ba2141c0de583824e589ba13854e09f91560ffb58742f03a240077 ChangeLog 2481
MISC metadata.xml 244 RMD160 784e7fb6660b05dbdd027b1e23975e26e72b7a39 SHA1 e2df521788bf35a7cf98d8b44adca1a1b03df544 SHA256 c32a1e42a5f85acb0b69af3e2644f98213d48492817c90a82c833927d2881419
MD5 92e9934d7cc8cadaa1ca50badb669313 metadata.xml 244
RMD160 784e7fb6660b05dbdd027b1e23975e26e72b7a39 metadata.xml 244
SHA256 c32a1e42a5f85acb0b69af3e2644f98213d48492817c90a82c833927d2881419 metadata.xml 244
-MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-eselect-gnat-0.7 0
-RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-eselect-gnat-0.7 0
-SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-eselect-gnat-0.7 0
-MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-eselect-gnat-0.8 0
-RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-eselect-gnat-0.8 0
-SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-eselect-gnat-0.8 0
-MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-eselect-gnat-0.8-r1 0
-RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-eselect-gnat-0.8-r1 0
-SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-eselect-gnat-0.8-r1 0
MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-eselect-gnat-0.9 0
RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-eselect-gnat-0.9 0
SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-eselect-gnat-0.9 0
diff --git a/app-admin/eselect-gnat/eselect-gnat-0.7.ebuild b/app-admin/eselect-gnat/eselect-gnat-0.7.ebuild
deleted file mode 100644
index 846bee919d24..000000000000
--- a/app-admin/eselect-gnat/eselect-gnat-0.7.ebuild
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-gnat/eselect-gnat-0.7.ebuild,v 1.1 2006/05/02 10:18:57 george Exp $
-
-inherit eutils
-
-DESCRIPTION="gnat module for eselect."
-HOMEPAGE="http://www.gentoo.org"
-SRC_URI=""
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-IUSE=""
-RDEPEND="app-admin/eselect"
-
-MODULEDIR="/usr/share/eselect/modules"
-
-src_install() {
- dodir ${MODULEDIR}
- insinto ${MODULEDIR}
- doins ${FILESDIR}/gnat.eselect-${PV}
- mv ${D}${MODULEDIR}/gnat.eselect-${PV} ${D}${MODULEDIR}/gnat.eselect
-}
diff --git a/app-admin/eselect-gnat/eselect-gnat-0.8-r1.ebuild b/app-admin/eselect-gnat/eselect-gnat-0.8-r1.ebuild
deleted file mode 100644
index 48a052e6cd63..000000000000
--- a/app-admin/eselect-gnat/eselect-gnat-0.8-r1.ebuild
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-gnat/eselect-gnat-0.8-r1.ebuild,v 1.1 2006/05/17 21:28:24 george Exp $
-
-inherit eutils
-
-DESCRIPTION="gnat module for eselect."
-HOMEPAGE="http://www.gentoo.org"
-SRC_URI=""
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-
-IUSE=""
-RDEPEND="app-admin/eselect"
-
-MODULEDIR="/usr/share/eselect/modules"
-
-src_install() {
- dodir ${MODULEDIR}
- insinto ${MODULEDIR}
- doins ${FILESDIR}/gnat.eselect-${PVR}
- mv ${D}${MODULEDIR}/gnat.eselect-${PVR} ${D}${MODULEDIR}/gnat.eselect
-}
diff --git a/app-admin/eselect-gnat/eselect-gnat-0.8.ebuild b/app-admin/eselect-gnat/eselect-gnat-0.8.ebuild
deleted file mode 100644
index 741c273f9349..000000000000
--- a/app-admin/eselect-gnat/eselect-gnat-0.8.ebuild
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-gnat/eselect-gnat-0.8.ebuild,v 1.2 2006/05/12 15:11:53 josejx Exp $
-
-inherit eutils
-
-DESCRIPTION="gnat module for eselect."
-HOMEPAGE="http://www.gentoo.org"
-SRC_URI=""
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-
-IUSE=""
-RDEPEND="app-admin/eselect"
-
-MODULEDIR="/usr/share/eselect/modules"
-
-src_install() {
- dodir ${MODULEDIR}
- insinto ${MODULEDIR}
- doins ${FILESDIR}/gnat.eselect-${PV}
- mv ${D}${MODULEDIR}/gnat.eselect-${PV} ${D}${MODULEDIR}/gnat.eselect
-}
diff --git a/app-admin/eselect-gnat/files/digest-eselect-gnat-0.7 b/app-admin/eselect-gnat/files/digest-eselect-gnat-0.7
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/app-admin/eselect-gnat/files/digest-eselect-gnat-0.7
+++ /dev/null
diff --git a/app-admin/eselect-gnat/files/digest-eselect-gnat-0.8 b/app-admin/eselect-gnat/files/digest-eselect-gnat-0.8
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/app-admin/eselect-gnat/files/digest-eselect-gnat-0.8
+++ /dev/null
diff --git a/app-admin/eselect-gnat/files/digest-eselect-gnat-0.8-r1 b/app-admin/eselect-gnat/files/digest-eselect-gnat-0.8-r1
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/app-admin/eselect-gnat/files/digest-eselect-gnat-0.8-r1
+++ /dev/null
diff --git a/app-admin/eselect-gnat/files/gnat.eselect-0.7 b/app-admin/eselect-gnat/files/gnat.eselect-0.7
deleted file mode 100644
index c61833edc826..000000000000
--- a/app-admin/eselect-gnat/files/gnat.eselect-0.7
+++ /dev/null
@@ -1,293 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id: gnat.eselect-0.7,v 1.3 2006/05/02 15:47:50 george Exp $
-
-DESCRIPTION="Manage the talled gnat compilers"
-MAINTAINER="ada@gentoo.org"
-SVN_DATE='$Date: 2006/05/02 15:47:50 $'
-VERSION=$(svn_date_to_version "${SVN_DATE}" )
-
-SPECSDIR="/usr/share/gnat/eselect"
-ENVDIR="/etc/env.d"
-MARKER="55gnat-"
-#LibMarker="56"
-
-### Phylosophy
-# Each gnat installs a "specs" file named ${ARCH}-${PN}-${SLOT} under ${SPECSDIR}
-# Each lib creates a dir with its name under ${SPECSDIR} and populates it with
-# similar specs files (same name scheme)
-# Recognizing gnat specs from lib specs is then eazy - test entry for being a
-# dir, then just check what gnat profiles are installed for each lib..
-# doset then creates env file that combines settings for gnat and for the
-# corresponding profile of each installed lib..
-
-
-### Helpers
-
-# create a list of all gnat env.d files
-# for now use trivial implementation - store name of active profile in the
-# env file name, so it gets called 55gnat-${ARCH}-${PN}-${SLOT}
-get_env_list() {
- for fn in ${ENVDIR}/${MARKER}*; do
- echo $(basename ${fn})
- done
-}
-
-# return *the* name of the active profile, checking that we do not have multiple
-# env files.
-# There can be only one!
-get_current_gnat() {
- local profiles=( $(get_env_list) )
-
- if [ ${profiles[@]} == "${MARKER}*" ]; then exit; fi
-
- if (( 1 == ${#profiles[@]} )); then
- local active=${profiles[0]#${MARKER}}
- else
- die -q "${ENVDIR} contains multiple gnat profiles, please cleanup!"
- fi
-
- if [ -f ${SPECSDIR}/${active} ]; then
- echo ${active}
- else
- die -q "the active env.d profile does not correspond to any installed gnat!"
- fi
-}
-
-# find installed compilers and return a list
-find_compilers() {
- [ ! -d ${SPECSDIR} ] && exit
- for fn in ${SPECSDIR}/*; do
- [ ! -d ${fn} ] && echo $(basename ${fn});
- done
-}
-
-# find installed libs and return a list
-find_all_libs() {
- [ ! -d ${SPECSDIR} ] && exit
- for fn in ${SPECSDIR}/*; do
- [ -d ${fn} ] && echo $(basename ${fn});
- done
-}
-
-# find libs that have been built for a given profile
-# Arguments:
-# $1 - gnat profile for which to detect active libs
-find_libs4profile() {
- libs=( $(find_all_libs) )
-
- for (( i = 0 ; i < ${#libs[@]} ; i = i + 1 )) ; do
- [ -f ${SPECSDIR}/${libs[$i]}/$1 ] && echo "${libs[$i]}"
- done
-}
-
-# check if the passed arg represents the installed gnat and return it or
-# not_found
-# takes args:
-# $1 - list ID to check
-get_name_from_list() {
- compiler=$1
-
- compilers=( $(find_compilers) )
- for (( i = 0 ; i < ${#compilers[@]} ; i = i + 1 )) ; do
- if [[ ${compilers[$i]} == ${compiler} ]] ; then
- echo ${compiler}
- return
- fi
- done
-
- echo "(not-found)"
-}
-
-
-# extracts values of the passed var definition from given spec file
-# params:
-# $1: spec file (as generated by gnabuild.eclass)
-# $2: variable name
-get_var_from_spec() {
- local var=$(grep -e "^ *$2=" $1|cut -d= -f2)
- echo ${var}
-}
-
-
-# Cycle through given libs and form a : separated list of settings for the given
-# var. Returned string starts with ":" if there is any non-empty setting,
-# otherwise returns empty string
-# params:
-# $1 - list of libs to check (to avoid its composition every time)
-# $2 - name of gnat profile
-# $3 - name of env var to process
-get_lib_var_settings() {
- local libList=$1
- #echo "get_lib_var_settings: ${libList[@]}" >> rep.rep
- if [[ ! ${libList[0]} == "none" ]]; then
-
- local envString
- for (( i = 0 ; i < ${#libList[@]} ; i = i + 1 )) ; do
- #echo "lib $i = ${libList[$i]}" >> rep.rep
- specLine=$(get_var_from_spec ${SPECSDIR}/${libList[$i]}/$2 $3)
- [[ -n ${specLine} ]] && envString="${envString}:${specLine}"
- done
- echo "${envString}"
- fi
-}
-
-
-# removes env files (for compiler and libs)
-# params:
-# $1: the name of profile for which to remove env file
-unset_env() {
- rm -f ${ENVDIR}/${MARKER}$1 &> /dev/null
-}
-
-
-# Stuff common for do_set and do_update
-#
-# params:
-# $1 - profile to set (toset param inside)
-# $2 - envfile
-
-generate_envFile() {
- local toset=$1
- local envfile=$2
-
- local binpath="$(get_var_from_spec ${SPECSDIR}/${toset} binpath)"
- local libexecpath="$(get_var_from_spec ${SPECSDIR}/${toset} libexecpath)"
- local libs=( $(find_libs4profile ${toset}) )
- if (( 0 == ${#libs[@]} )); then
- libs="none"
- fi
-
- echo "PATH=${binpath}:${libexecpath}$(get_lib_var_settings ${libs} ${toset} "PATH")" > "${envfile}"
- echo "MANPATH=$(get_var_from_spec ${SPECSDIR}/${toset} manpath)$(get_lib_var_settings ${libs} ${toset} "MANPATH")" >> "${envfile}"
- echo "INFOPATH=$(get_var_from_spec ${SPECSDIR}/${toset} infopath)$(get_lib_var_settings ${libs} ${toset} "INFOPATH")" >> "${envfile}"
- echo "ADA_INCLUDE_PATH=$(get_var_from_spec ${SPECSDIR}/${toset} ldpath)/adainclude$(get_lib_var_settings ${libs} ${toset} "ADA_INCLUDE_PATH")" >> "${envfile}"
- echo "ADA_OBJECTS_PATH=$(get_var_from_spec ${SPECSDIR}/${toset} ldpath)/adalib$(get_lib_var_settings ${libs} ${toset} "ADA_OBJECTS_PATH")" >> "${envfile}"
-}
-
-### show action ###
-
-describe_show() {
- echo "Show the active gnat compiler/profile and installed libs"
-}
-
-do_show() {
- write_list_start "Current gnat version:"
- active=$(get_current_gnat)
- if [ ! -z ${active} ] ; then # not sure why [ -n ] does not do the same
- write_kv_list_entry "$active" ""
- libs=( $(find_libs4profile ${active}) )
- write_list_start "Active libs:"
- write_numbered_list "${libs[@]}"
- else
- write_kv_list_entry "(none set)" ""
- fi
-}
-
-### list action ###
-
-describe_list() {
- echo "List installed gnat compilers and libs"
-}
-
-do_list() {
- compilers=( $(find_compilers ) )
- active=$(get_current_gnat)
-
- write_list_start "Available gnat compilers:"
-
- if [[ -n ${compilers[@]} ]] ; then
- local i
- for (( i = 0 ; i < ${#compilers[@]} ; i = i + 1 )) ; do
- linkversion=${compilers[${i}]}
-
- [[ $linkversion == $active ]] && \
- compilers[${i}]="${compilers[${i}]} $(highlight '*' )"
- done
- write_numbered_list "${compilers[@]}"
-
- # now the libs
- libs=( $(find_all_libs) )
- write_list_start "Installed libs:"
- for (( i = 0 ; i < ${#libs[@]} ; i = i + 1 )) ; do
- [ -f ${SPECSDIR}/${libs[$i]}/${active} ] && \
- libs[${i}]="${libs[${i}]} $(highlight '*' )"
- done
- write_numbered_list "${libs[@]}"
- else
- write_kv_list_entry "(none found)" ""
- fi
-}
-
-
-### set action ###
-
-describe_set() {
- echo "Set active gnat compiler"
-}
-
-# The set action. Parameters:
-# $1 - name of profile to set, obligatory, passed by eselect
-# $2 - optional, name of env file to generate. Used from gnat.eclass.
-do_set() {
- if [[ -z ${1} ]] ; then
- # no parameter
- die -q "You didn't tell me which gnat to use"
- fi
-
- local toset=$(get_name_from_list $1)
- if [[ ${toset} == "(not-found)" ]] ; then
- die -q "I don't recognise the selection"
- fi
-
- # the action!
- # in this implementation simply create an appropriate env file
- local active=$(get_current_gnat)
- if [[ -z ${2} ]] ; then
- local envfile="${ENVDIR}/${MARKER}${toset}"
-
- # now we need to remove an old env file, which is guaranteed to
- # be unique by get_current_gnat above
- if [[ -n ${active} ]] ; then
- unset_env ${active}
- fi
- # just for a good measure remove the one we are going to write
- unset_env ${toset}
- else
- local envfile="$2"
- fi
-
- generate_envFile ${toset} ${envfile}
-}
-
-
-
-### update action ###
-#
-# This action regenerates the /etc/env.d file for the current profile. Basically
-# the same as set, only it does not take any parameters. It should be called from ebuilds
-# installing Ada libs
-
-describe_update() {
- echo "Update active gnat profile picking up new libs."
-}
-
-do_update() {
- local toset=$(get_current_gnat)
- local envfile="${ENVDIR}/${MARKER}${toset}"
- generate_envFile ${toset} ${envfile}
-}
-
-### unset action ###
-
-describe_unset() {
- echo "Remove settings for currently active gnat"
-}
-
-do_unset() {
- local active=$(get_current_gnat)
- # check whether we have any profile set before removing anything..
- if [[ -n ${active} ]] ; then
- unset_env ${active}
- fi
-}
diff --git a/app-admin/eselect-gnat/files/gnat.eselect-0.8 b/app-admin/eselect-gnat/files/gnat.eselect-0.8
deleted file mode 100644
index 80ea8aef01b5..000000000000
--- a/app-admin/eselect-gnat/files/gnat.eselect-0.8
+++ /dev/null
@@ -1,295 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id: gnat.eselect-0.8,v 1.1 2006/05/12 13:28:41 george Exp $
-
-DESCRIPTION="Manage the talled gnat compilers"
-MAINTAINER="ada@gentoo.org"
-SVN_DATE='$Date: 2006/05/12 13:28:41 $'
-VERSION=$(svn_date_to_version "${SVN_DATE}" )
-
-SPECSDIR="/usr/share/gnat/eselect"
-ENVDIR="/etc/env.d"
-MARKER="55gnat-"
-#LibMarker="56"
-
-### Phylosophy
-# Each gnat installs a "specs" file named ${ARCH}-${PN}-${SLOT} under ${SPECSDIR}
-# Each lib creates a dir with its name under ${SPECSDIR} and populates it with
-# similar specs files (same name scheme)
-# Recognizing gnat specs from lib specs is then eazy - test entry for being a
-# dir, then just check what gnat profiles are installed for each lib..
-# doset then creates env file that combines settings for gnat and for the
-# corresponding profile of each installed lib..
-
-
-### Helpers
-
-# create a list of all gnat env.d files
-# for now use trivial implementation - store name of active profile in the
-# env file name, so it gets called 55gnat-${ARCH}-${PN}-${SLOT}
-get_env_list() {
- for fn in ${ENVDIR}/${MARKER}*; do
- echo $(basename ${fn})
- done
-}
-
-# return *the* name of the active profile, checking that we do not have multiple
-# env files.
-# There can be only one!
-get_current_gnat() {
- local profiles=( $(get_env_list) )
-
- if [ ${profiles[@]} == "${MARKER}*" ]; then exit; fi
-
- if (( 1 == ${#profiles[@]} )); then
- local active=${profiles[0]#${MARKER}}
- else
- die -q "${ENVDIR} contains multiple gnat profiles, please cleanup!"
- fi
-
- if [ -f ${SPECSDIR}/${active} ]; then
- echo ${active}
- else
- die -q "the active env.d profile does not correspond to any installed gnat!"
- fi
-}
-
-# find installed compilers and return a list
-find_compilers() {
- [ ! -d ${SPECSDIR} ] && exit
- for fn in ${SPECSDIR}/*; do
- [ ! -d ${fn} ] && echo $(basename ${fn});
- done
-}
-
-# find installed libs and return a list
-find_all_libs() {
- [ ! -d ${SPECSDIR} ] && exit
- for fn in ${SPECSDIR}/*; do
- [ -d ${fn} ] && echo $(basename ${fn});
- done
-}
-
-# find libs that have been built for a given profile
-# Arguments:
-# $1 - gnat profile for which to detect active libs
-find_libs4profile() {
- libs=( $(find_all_libs) )
-
- for (( i = 0 ; i < ${#libs[@]} ; i = i + 1 )) ; do
- [ -f ${SPECSDIR}/${libs[$i]}/$1 ] && echo "${libs[$i]}"
- done
-}
-
-# check if the passed arg represents the installed gnat and return it or
-# not_found
-# takes args:
-# $1 - list ID to check
-get_name_from_list() {
- compiler=$1
-
- compilers=( $(find_compilers) )
- for (( i = 0 ; i < ${#compilers[@]} ; i = i + 1 )) ; do
- if [[ ${compilers[$i]} == ${compiler} ]] ; then
- echo ${compiler}
- return
- fi
- done
-
- echo "(not-found)"
-}
-
-
-# extracts values of the passed var definition from given spec file
-# params:
-# $1: spec file (as generated by gnabuild.eclass)
-# $2: variable name
-get_var_from_spec() {
- local var=$(grep -e "^ *$2=" $1|cut -d= -f2)
- echo ${var}
-}
-
-
-# Cycle through given libs and form a : separated list of settings for the given
-# var. Returned string starts with ":" if there is any non-empty setting,
-# otherwise returns empty string
-# params:
-# $1 - list of libs to check (to avoid its composition every time)
-# $2 - name of gnat profile
-# $3 - name of env var to process
-get_lib_var_settings() {
- local libList=$1
- #echo "get_lib_var_settings: ${libList[@]}" >> rep.rep
- if [[ ! ${libList[0]} == "none" ]]; then
-
- local envString
- for (( i = 0 ; i < ${#libList[@]} ; i = i + 1 )) ; do
- #echo "lib $i = ${libList[$i]}" >> rep.rep
- specLine=$(get_var_from_spec ${SPECSDIR}/${libList[$i]}/$2 $3)
- [[ -n ${specLine} ]] && envString="${envString}:${specLine}"
- done
- echo "${envString}"
- fi
-}
-
-
-# removes env files (for compiler and libs)
-# params:
-# $1: the name of profile for which to remove env file
-unset_env() {
- rm -f ${ENVDIR}/${MARKER}$1 &> /dev/null
-}
-
-
-# Stuff common for do_set and do_update
-#
-# params:
-# $1 - profile to set (toset param inside)
-# $2 - envfile
-
-generate_envFile() {
- local toset=$1
- local envfile=$2
-
- local binpath="$(get_var_from_spec ${SPECSDIR}/${toset} binpath)"
- local libexecpath="$(get_var_from_spec ${SPECSDIR}/${toset} libexecpath)"
- local libs=( $(find_libs4profile ${toset}) )
- if (( 0 == ${#libs[@]} )); then
- libs="none"
- fi
-
- local MyPath="${binpath}:${libexecpath}$(get_lib_var_settings ${libs} ${toset} PATH)"
- echo "PATH=${MyPath}" > "${envfile}"
- echo "ROOTPATH=${MyPath}" >> "${envfile}"
- echo "MANPATH=$(get_var_from_spec ${SPECSDIR}/${toset} manpath)$(get_lib_var_settings ${libs} ${toset} MANPATH)" >> "${envfile}"
- echo "INFOPATH=$(get_var_from_spec ${SPECSDIR}/${toset} infopath)$(get_lib_var_settings ${libs} ${toset} INFOPATH)" >> "${envfile}"
- echo "ADA_INCLUDE_PATH=$(get_var_from_spec ${SPECSDIR}/${toset} ldpath)/adainclude$(get_lib_var_settings ${libs} ${toset} ADA_INCLUDE_PATH)" >> "${envfile}"
- echo "ADA_OBJECTS_PATH=$(get_var_from_spec ${SPECSDIR}/${toset} ldpath)/adalib$(get_lib_var_settings ${libs} ${toset} ADA_OBJECTS_PATH)" >> "${envfile}"
-}
-
-### show action ###
-
-describe_show() {
- echo "Show the active gnat compiler/profile and installed libs"
-}
-
-do_show() {
- write_list_start "Current gnat version:"
- active=$(get_current_gnat)
- if [ ! -z ${active} ] ; then # not sure why [ -n ] does not do the same
- write_kv_list_entry "$active" ""
- libs=( $(find_libs4profile ${active}) )
- write_list_start "Active libs:"
- write_numbered_list "${libs[@]}"
- else
- write_kv_list_entry "(none set)" ""
- fi
-}
-
-### list action ###
-
-describe_list() {
- echo "List installed gnat compilers and libs"
-}
-
-do_list() {
- compilers=( $(find_compilers ) )
- active=$(get_current_gnat)
-
- write_list_start "Available gnat compilers:"
-
- if [[ -n ${compilers[@]} ]] ; then
- local i
- for (( i = 0 ; i < ${#compilers[@]} ; i = i + 1 )) ; do
- linkversion=${compilers[${i}]}
-
- [[ $linkversion == $active ]] && \
- compilers[${i}]="${compilers[${i}]} $(highlight '*' )"
- done
- write_numbered_list "${compilers[@]}"
-
- # now the libs
- libs=( $(find_all_libs) )
- write_list_start "Installed libs:"
- for (( i = 0 ; i < ${#libs[@]} ; i = i + 1 )) ; do
- [ -f ${SPECSDIR}/${libs[$i]}/${active} ] && \
- libs[${i}]="${libs[${i}]} $(highlight '*' )"
- done
- write_numbered_list "${libs[@]}"
- else
- write_kv_list_entry "(none found)" ""
- fi
-}
-
-
-### set action ###
-
-describe_set() {
- echo "Set active gnat compiler"
-}
-
-# The set action. Parameters:
-# $1 - name of profile to set, obligatory, passed by eselect
-# $2 - optional, name of env file to generate. Used from gnat.eclass.
-do_set() {
- if [[ -z ${1} ]] ; then
- # no parameter
- die -q "You didn't tell me which gnat to use"
- fi
-
- local toset=$(get_name_from_list $1)
- if [[ ${toset} == "(not-found)" ]] ; then
- die -q "I don't recognise the selection"
- fi
-
- # the action!
- # in this implementation simply create an appropriate env file
- local active=$(get_current_gnat)
- if [[ -z ${2} ]] ; then
- local envfile="${ENVDIR}/${MARKER}${toset}"
-
- # now we need to remove an old env file, which is guaranteed to
- # be unique by get_current_gnat above
- if [[ -n ${active} ]] ; then
- unset_env ${active}
- fi
- # just for a good measure remove the one we are going to write
- unset_env ${toset}
- else
- local envfile="$2"
- fi
-
- generate_envFile ${toset} ${envfile}
-}
-
-
-
-### update action ###
-#
-# This action regenerates the /etc/env.d file for the current profile. Basically
-# the same as set, only it does not take any parameters. It should be called from ebuilds
-# installing Ada libs
-
-describe_update() {
- echo "Update active gnat profile picking up new libs."
-}
-
-do_update() {
- local toset=$(get_current_gnat)
- local envfile="${ENVDIR}/${MARKER}${toset}"
- generate_envFile ${toset} ${envfile}
-}
-
-### unset action ###
-
-describe_unset() {
- echo "Remove settings for currently active gnat"
-}
-
-do_unset() {
- local active=$(get_current_gnat)
- # check whether we have any profile set before removing anything..
- if [[ -n ${active} ]] ; then
- unset_env ${active}
- fi
-}
diff --git a/app-admin/eselect-gnat/files/gnat.eselect-0.8-r1 b/app-admin/eselect-gnat/files/gnat.eselect-0.8-r1
deleted file mode 100644
index 6ebb3a31e120..000000000000
--- a/app-admin/eselect-gnat/files/gnat.eselect-0.8-r1
+++ /dev/null
@@ -1,299 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id: gnat.eselect-0.8-r1,v 1.1 2006/05/17 21:28:25 george Exp $
-
-DESCRIPTION="Manage the talled gnat compilers"
-MAINTAINER="ada@gentoo.org"
-SVN_DATE='$Date: 2006/05/17 21:28:25 $'
-VERSION=$(svn_date_to_version "${SVN_DATE}" )
-
-SPECSDIR="/usr/share/gnat/eselect"
-ENVDIR="/etc/env.d"
-MARKER="55gnat-"
-#LibMarker="56"
-
-### Phylosophy
-# Each gnat installs a "specs" file named ${ARCH}-${PN}-${SLOT} under ${SPECSDIR}
-# Each lib creates a dir with its name under ${SPECSDIR} and populates it with
-# similar specs files (same name scheme)
-# Recognizing gnat specs from lib specs is then eazy - test entry for being a
-# dir, then just check what gnat profiles are installed for each lib..
-# doset then creates env file that combines settings for gnat and for the
-# corresponding profile of each installed lib..
-
-
-### Helpers
-
-# create a list of all gnat env.d files
-# for now use trivial implementation - store name of active profile in the
-# env file name, so it gets called 55gnat-${ARCH}-${PN}-${SLOT}
-get_env_list() {
- for fn in ${ENVDIR}/${MARKER}*; do
- echo $(basename ${fn})
- done
-}
-
-# return *the* name of the active profile, checking that we do not have multiple
-# env files.
-# There can be only one!
-get_current_gnat() {
- local profiles=( $(get_env_list) )
-
- if [ ${profiles[@]} == "${MARKER}*" ]; then exit; fi
-
- if (( 1 == ${#profiles[@]} )); then
- local active=${profiles[0]#${MARKER}}
- else
- die -q "${ENVDIR} contains multiple gnat profiles, please cleanup!"
- fi
-
- if [ -f ${SPECSDIR}/${active} ]; then
- echo ${active}
- else
- die -q "the active env.d profile does not correspond to any installed gnat!"
- fi
-}
-
-# find installed compilers and return a list
-find_compilers() {
- [ ! -d ${SPECSDIR} ] && exit
- for fn in ${SPECSDIR}/*; do
- [ ! -d ${fn} ] && echo $(basename ${fn});
- done
-}
-
-# find installed libs and return a list
-find_all_libs() {
- [ ! -d ${SPECSDIR} ] && exit
- for fn in ${SPECSDIR}/*; do
- [ -d ${fn} ] && echo $(basename ${fn});
- done
-}
-
-# find libs that have been built for a given profile
-# Arguments:
-# $1 - gnat profile for which to detect active libs
-find_libs4profile() {
- libs=( $(find_all_libs) )
-
- for (( i = 0 ; i < ${#libs[@]} ; i = i + 1 )) ; do
- [ -f ${SPECSDIR}/${libs[$i]}/$1 ] && echo "${libs[$i]}"
- done
-}
-
-# check if the passed arg represents the installed gnat and return it or
-# not_found
-# takes args:
-# $1 - list ID to check
-get_name_from_list() {
- compiler=$1
-
- compilers=( $(find_compilers) )
- for (( i = 0 ; i < ${#compilers[@]} ; i = i + 1 )) ; do
- if [[ ${compilers[$i]} == ${compiler} ]] ; then
- echo ${compiler}
- return
- fi
- done
-
- echo "(not-found)"
-}
-
-
-# extracts values of the passed var definition from given spec file
-# params:
-# $1: spec file (as generated by gnabuild.eclass)
-# $2: variable name
-get_var_from_spec() {
- local var=$(grep -e "^ *$2=" $1|cut -d= -f2)
- echo ${var}
-}
-
-
-# Cycle through given libs and form a : separated list of settings for the given
-# var. Returned string starts with ":" if there is any non-empty setting,
-# otherwise returns empty string
-# params:
-# $1 - name of env var to process
-# $2 - name of gnat profile
-# $3.. - list of libs to check (to avoid its composition every time)
-# - the list is expanded to lest of args at the point of call
-get_lib_var_settings() {
- local envVar=$1
- local toset=$2
- #echo "get_lib_var_settings params:$@" >> /tmp/eselect-gnat.rep
- if [[ "none" != ${3} ]]; then
- local envString
- local specLine
- while [[ -n $3 ]]; do
- specLine=$(get_var_from_spec ${SPECSDIR}/$3/${toset} ${envVar})
- #echo "$3:${specLine}." >> /tmp/eselect-gnat.rep
- [[ -n ${specLine} ]] && envString="${envString}:${specLine}"
- shift
- done
- echo "${envString}"
- fi
-}
-
-
-# removes env files (for compiler and libs)
-# params:
-# $1: the name of profile for which to remove env file
-unset_env() {
- rm -f ${ENVDIR}/${MARKER}$1 &> /dev/null
-}
-
-
-# Stuff common for do_set and do_update
-#
-# params:
-# $1 - profile to set (toset param inside)
-# $2 - envfile
-
-generate_envFile() {
- local toset=$1
- local envfile=$2
-
- local binpath="$(get_var_from_spec ${SPECSDIR}/${toset} binpath)"
- local libexecpath="$(get_var_from_spec ${SPECSDIR}/${toset} libexecpath)"
- local libs=( $(find_libs4profile ${toset}) )
- #echo "generate_envFile: ${libs[@]}" >> /tmp/eselect-gnat.rep
- if (( 0 == ${#libs[@]} )); then
- libs="none"
- fi
-
- local MyPath="${binpath}:${libexecpath}$(get_lib_var_settings PATH ${toset} ${libs[@]})"
- echo "PATH=${MyPath}" > "${envfile}"
- echo "ROOTPATH=${MyPath}" >> "${envfile}"
- echo "MANPATH=$(get_var_from_spec ${SPECSDIR}/${toset} manpath)$(get_lib_var_settings MANPATH ${toset} ${libs[@]})" >> "${envfile}"
- echo "INFOPATH=$(get_var_from_spec ${SPECSDIR}/${toset} infopath)$(get_lib_var_settings INFOPATH ${toset} ${libs[@]})" >> "${envfile}"
- echo "ADA_INCLUDE_PATH=$(get_var_from_spec ${SPECSDIR}/${toset} ldpath)/adainclude$(get_lib_var_settings ADA_INCLUDE_PATH ${toset} ${libs[@]})" >> "${envfile}"
- echo "ADA_OBJECTS_PATH=$(get_var_from_spec ${SPECSDIR}/${toset} ldpath)/adalib$(get_lib_var_settings ADA_OBJECTS_PATH ${toset} ${libs[@]})" >> "${envfile}"
-}
-
-### show action ###
-
-describe_show() {
- echo "Show the active gnat compiler/profile and installed libs"
-}
-
-do_show() {
- write_list_start "Current gnat version:"
- active=$(get_current_gnat)
- if [ ! -z ${active} ] ; then # not sure why [ -n ] does not do the same
- write_kv_list_entry "$active" ""
- libs=( $(find_libs4profile ${active}) )
- write_list_start "Active libs:"
- write_numbered_list "${libs[@]}"
- else
- write_kv_list_entry "(none set)" ""
- fi
-}
-
-### list action ###
-
-describe_list() {
- echo "List installed gnat compilers and libs"
-}
-
-do_list() {
- compilers=( $(find_compilers ) )
- active=$(get_current_gnat)
-
- write_list_start "Available gnat compilers:"
-
- if [[ -n ${compilers[@]} ]] ; then
- local i
- for (( i = 0 ; i < ${#compilers[@]} ; i = i + 1 )) ; do
- linkversion=${compilers[${i}]}
-
- [[ $linkversion == $active ]] && \
- compilers[${i}]="${compilers[${i}]} $(highlight '*' )"
- done
- write_numbered_list "${compilers[@]}"
-
- # now the libs
- libs=( $(find_all_libs) )
- write_list_start "Installed libs:"
- for (( i = 0 ; i < ${#libs[@]} ; i = i + 1 )) ; do
- [ -f ${SPECSDIR}/${libs[$i]}/${active} ] && \
- libs[${i}]="${libs[${i}]} $(highlight '*' )"
- done
- write_numbered_list "${libs[@]}"
- else
- write_kv_list_entry "(none found)" ""
- fi
-}
-
-
-### set action ###
-
-describe_set() {
- echo "Set active gnat compiler"
-}
-
-# The set action. Parameters:
-# $1 - name of profile to set, obligatory, passed by eselect
-# $2 - optional, name of env file to generate. Used from gnat.eclass.
-do_set() {
- if [[ -z ${1} ]] ; then
- # no parameter
- die -q "You didn't tell me which gnat to use"
- fi
-
- local toset=$(get_name_from_list $1)
- if [[ ${toset} == "(not-found)" ]] ; then
- die -q "I don't recognise the selection"
- fi
-
- # the action!
- # in this implementation simply create an appropriate env file
- local active=$(get_current_gnat)
- if [[ -z ${2} ]] ; then
- local envfile="${ENVDIR}/${MARKER}${toset}"
-
- # now we need to remove an old env file, which is guaranteed to
- # be unique by get_current_gnat above
- if [[ -n ${active} ]] ; then
- unset_env ${active}
- fi
- # just for a good measure remove the one we are going to write
- unset_env ${toset}
- else
- local envfile="$2"
- fi
-
- generate_envFile ${toset} ${envfile}
-}
-
-
-
-### update action ###
-#
-# This action regenerates the /etc/env.d file for the current profile. Basically
-# the same as set, only it does not take any parameters. It should be called from ebuilds
-# installing Ada libs
-
-describe_update() {
- echo "Update active gnat profile picking up new libs."
-}
-
-do_update() {
- local toset=$(get_current_gnat)
- local envfile="${ENVDIR}/${MARKER}${toset}"
- generate_envFile ${toset} ${envfile}
-}
-
-### unset action ###
-
-describe_unset() {
- echo "Remove settings for currently active gnat"
-}
-
-do_unset() {
- local active=$(get_current_gnat)
- # check whether we have any profile set before removing anything..
- if [[ -n ${active} ]] ; then
- unset_env ${active}
- fi
-}