1 |
commit: e7c14360e27d860bec3a80ba9c92bfb025c4b3e9 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 16 21:56:23 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 16 22:52:38 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7c14360 |
7 |
|
8 |
sys-devel/automake-wrapper: drop versions <10 |
9 |
|
10 |
.../automake-wrapper/automake-wrapper-9.ebuild | 29 ---- |
11 |
sys-devel/automake-wrapper/files/am-wrapper-9.sh | 187 --------------------- |
12 |
2 files changed, 216 deletions(-) |
13 |
|
14 |
diff --git a/sys-devel/automake-wrapper/automake-wrapper-9.ebuild b/sys-devel/automake-wrapper/automake-wrapper-9.ebuild |
15 |
deleted file mode 100644 |
16 |
index 3424bd4..0000000 |
17 |
--- a/sys-devel/automake-wrapper/automake-wrapper-9.ebuild |
18 |
+++ /dev/null |
19 |
@@ -1,29 +0,0 @@ |
20 |
-# Copyright 1999-2014 Gentoo Foundation |
21 |
-# Distributed under the terms of the GNU General Public License v2 |
22 |
-# $Id$ |
23 |
- |
24 |
-DESCRIPTION="wrapper for automake to manage multiple automake versions" |
25 |
-HOMEPAGE="https://www.gentoo.org/" |
26 |
-SRC_URI="" |
27 |
- |
28 |
-LICENSE="GPL-2" |
29 |
-SLOT="0" |
30 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
31 |
-IUSE="" |
32 |
- |
33 |
-S=${WORKDIR} |
34 |
- |
35 |
-src_unpack() { |
36 |
- cp "${FILESDIR}"/am-wrapper-${PV}.sh "${S}"/ |
37 |
- # usr/bin/aclocal: bad substitution -> /bin/sh != POSIX shell |
38 |
- if use prefix ; then |
39 |
- sed -i -e '1c\#!'"${EPREFIX}"'/bin/sh' "${S}"/am-wrapper-${PV}.sh || die |
40 |
- fi |
41 |
-} |
42 |
- |
43 |
-src_install() { |
44 |
- newbin "${S}"/am-wrapper-${PV}.sh automake || die |
45 |
- dosym automake /usr/bin/aclocal |
46 |
- |
47 |
- keepdir /usr/share/aclocal |
48 |
-} |
49 |
|
50 |
diff --git a/sys-devel/automake-wrapper/files/am-wrapper-9.sh b/sys-devel/automake-wrapper/files/am-wrapper-9.sh |
51 |
deleted file mode 100644 |
52 |
index 6342625..0000000 |
53 |
--- a/sys-devel/automake-wrapper/files/am-wrapper-9.sh |
54 |
+++ /dev/null |
55 |
@@ -1,187 +0,0 @@ |
56 |
-#!/bin/sh |
57 |
-# Copyright 1999-2013 Gentoo Foundation |
58 |
-# Distributed under the terms of the GNU General Public License v2 |
59 |
-# $Id$ |
60 |
- |
61 |
-# Executes the correct automake version. |
62 |
-# |
63 |
-# If WANT_AUTOMAKE is set (can be a whitespace delimited list of versions): |
64 |
-# - attempt to find an installed version using those |
65 |
-# - if magic keyword 'latest' is found, pick the latest version that exists |
66 |
-# - if nothing found, warn, and proceed as if WANT_AUTOMAKE was not set (below) |
67 |
-# If WANT_AUTOMAKE is not set: |
68 |
-# - Try to detect the version of automake used to generate things (look at |
69 |
-# Makefile.in and aclocal.m4 and any other useful file) |
70 |
-# - If detected version is not found, warn and proceed as if blank slate |
71 |
-# - Try to locate the latest version of automake that exists and run it |
72 |
- |
73 |
-(set -o posix) 2>/dev/null && set -o posix |
74 |
- |
75 |
-_stderr() { printf 'am-wrapper: %s: %b\n' "${argv0}" "$*" 1>&2; } |
76 |
-warn() { _stderr "warning: $*"; } |
77 |
-err() { _stderr "error: $*"; exit 1; } |
78 |
-unset IFS |
79 |
-which() { |
80 |
- local p |
81 |
- IFS=: # we don't use IFS anywhere, so don't bother saving/restoring |
82 |
- for p in ${PATH} ; do |
83 |
- p="${p}/$1" |
84 |
- [ -e "${p}" ] && echo "${p}" && return 0 |
85 |
- done |
86 |
- unset IFS |
87 |
- return 1 |
88 |
-} |
89 |
- |
90 |
-# |
91 |
-# Sanitize argv[0] since it isn't always a full path #385201 |
92 |
-# |
93 |
-argv0=${0##*/} |
94 |
-case $0 in |
95 |
- ${argv0}) |
96 |
- # find it in PATH |
97 |
- if ! full_argv0=$(which "${argv0}") ; then |
98 |
- err "could not locate ${argv0}; file a bug" |
99 |
- fi |
100 |
- ;; |
101 |
- *) |
102 |
- # re-use full/relative paths |
103 |
- full_argv0=$0 |
104 |
- ;; |
105 |
-esac |
106 |
- |
107 |
-if ! seq 0 0 2>/dev/null 1>&2 ; then #338518 |
108 |
- seq() { |
109 |
- local f l i |
110 |
- case $# in |
111 |
- 1) f=1 i=1 l=$1;; |
112 |
- 2) f=$1 i=1 l=$2;; |
113 |
- 3) f=$1 i=$2 l=$3;; |
114 |
- esac |
115 |
- while :; do |
116 |
- [ $l -lt $f -a $i -gt 0 ] && break |
117 |
- [ $f -lt $l -a $i -lt 0 ] && break |
118 |
- echo $f |
119 |
- : $(( f += i )) |
120 |
- done |
121 |
- return 0 |
122 |
- } |
123 |
-fi |
124 |
- |
125 |
-# |
126 |
-# Set up bindings between actual version and WANT_AUTOMAKE; |
127 |
-# Start with last known versions to speed up lookup process. |
128 |
-# |
129 |
-LAST_KNOWN_AUTOMAKE_VER="14" |
130 |
-vers=$(printf '1.%s ' `seq ${LAST_KNOWN_AUTOMAKE_VER} -1 4`) |
131 |
- |
132 |
-# |
133 |
-# Helper to scan for a usable program based on version. |
134 |
-# |
135 |
-binary= |
136 |
-all_vers= |
137 |
-find_binary() { |
138 |
- local v |
139 |
- all_vers="${all_vers} $*" # For error messages. |
140 |
- for v ; do |
141 |
- if [ -x "${full_argv0}-${v}" ] ; then |
142 |
- binary="${full_argv0}-${v}" |
143 |
- binary_ver=${v} |
144 |
- return 0 |
145 |
- fi |
146 |
- done |
147 |
- return 1 |
148 |
-} |
149 |
- |
150 |
-# |
151 |
-# Try and find a usable automake version. First check the WANT_AUTOMAKE |
152 |
-# setting (whitespace delimited list), then fallback to the latest. |
153 |
-# |
154 |
-find_latest() { |
155 |
- if ! find_binary ${vers} ; then |
156 |
- # Brute force it. |
157 |
- find_binary $(printf '1.%s ' `seq 99 -1 ${LAST_KNOWN_AUTOMAKE_VER}`) |
158 |
- fi |
159 |
-} |
160 |
-for wx in ${WANT_AUTOMAKE:-latest} ; do |
161 |
- if [ "${wx}" = "latest" ] ; then |
162 |
- find_latest && break |
163 |
- else |
164 |
- find_binary ${wx} && break |
165 |
- fi |
166 |
-done |
167 |
- |
168 |
-if [ -z "${binary}" ] && [ -n "${WANT_AUTOMAKE}" ] ; then |
169 |
- warn "could not locate installed version for WANT_AUTOMAKE='${WANT_AUTOMAKE}'; ignoring" |
170 |
- unset WANT_AUTOMAKE |
171 |
- find_latest |
172 |
-fi |
173 |
- |
174 |
-if [ -z "${binary}" ] ; then |
175 |
- err "Unable to locate any usuable version of automake.\n" \ |
176 |
- "\tI tried these versions:${all_vers}\n" \ |
177 |
- "\tWith a base name of '${full_argv0}'." |
178 |
-fi |
179 |
- |
180 |
-# |
181 |
-# autodetect helpers |
182 |
-# |
183 |
-do_awk() { |
184 |
- local file=$1 ; shift |
185 |
- local v=$(awk -v regex="$*" '{ |
186 |
- if (ret = match($0, regex)) { |
187 |
- s = substr($0, ret, RLENGTH) |
188 |
- ret = match(s, "[0-9]\\.[0-9]+") |
189 |
- print substr(s, ret, RLENGTH) |
190 |
- exit |
191 |
- } |
192 |
- }' "${file}") |
193 |
- case " ${auto_vers} " in |
194 |
- *" ${v} "*) ;; |
195 |
- *) auto_vers="${auto_vers:+${auto_vers} }${v}" ;; |
196 |
- esac |
197 |
-} |
198 |
- |
199 |
-# |
200 |
-# autodetect routine |
201 |
-# |
202 |
-if [ -z "${WANT_AUTOMAKE}" ] ; then |
203 |
- auto_vers= |
204 |
- if [ -r "Makefile.in" ] ; then |
205 |
- do_awk Makefile.in '^# Makefile.in generated (automatically )?by automake [0-9]\\.[0-9]+' |
206 |
- fi |
207 |
- if [ -r "aclocal.m4" ] ; then |
208 |
- do_awk aclocal.m4 'generated automatically by aclocal [0-9]\\.[0-9]+' |
209 |
- do_awk aclocal.m4 '[[:space:]]*\\[?AM_AUTOMAKE_VERSION\\(\\[?[0-9]\\.[0-9]+[^)]*\\]?\\)' |
210 |
- fi |
211 |
- # We don't need to set $binary here as it has already been setup for us |
212 |
- # earlier to the latest available version. |
213 |
- if [ -n "${auto_vers}" ] ; then |
214 |
- if ! find_binary ${auto_vers} ; then |
215 |
- warn "auto-detected versions not found (${auto_vers}); falling back to latest available" |
216 |
- fi |
217 |
- fi |
218 |
-fi |
219 |
- |
220 |
-if [ -n "${WANT_AMWRAPPER_DEBUG}" ] ; then |
221 |
- if [ -n "${WANT_AUTOMAKE}" ] ; then |
222 |
- warn "DEBUG: WANT_AUTOMAKE is set to ${WANT_AUTOMAKE}" |
223 |
- fi |
224 |
- warn "DEBUG: will execute <${binary}>" |
225 |
-fi |
226 |
- |
227 |
-# |
228 |
-# for further consistency |
229 |
-# |
230 |
-export WANT_AUTOMAKE="${binary_ver}" |
231 |
- |
232 |
-# |
233 |
-# Now try to run the binary |
234 |
-# |
235 |
-if [ ! -x "${binary}" ] ; then |
236 |
- # this shouldn't happen |
237 |
- err "${binary} is missing or not executable.\n" \ |
238 |
- "\tPlease try installing the correct version of automake." |
239 |
-fi |
240 |
- |
241 |
-exec "${binary}" "$@" |
242 |
-# The shell will error out if `exec` failed. |