Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: qa@g.o, base-system@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH v2] sys-devel/autoconf: Convert from eblits into an eclass, #586424
Date: Thu, 16 Mar 2017 13:31:09
Message-Id: 20170316133051.20975-1-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH] sys-devel/autoconf: Convert from eblits into an eclass, #586424 by "Michał Górny"
1 Convert the usage of eblits in sys-devel/autoconf into an equivalent
2 eclass. This makes the ebuilds more readable, more predictable and fixes
3 compliance with stricter versions of the package manager (i.e. a future
4 release of Portage).
5
6 // changes in v2: fixed phase function call in -9999
7 ---
8 eclass/toolchain-autoconf.eclass | 70 ++++++++++++++++++++++
9 sys-devel/autoconf/autoconf-2.13.ebuild | 10 +---
10 sys-devel/autoconf/autoconf-2.59-r7.ebuild | 11 +---
11 sys-devel/autoconf/autoconf-2.61-r2.ebuild | 11 +---
12 sys-devel/autoconf/autoconf-2.62-r1.ebuild | 11 +---
13 sys-devel/autoconf/autoconf-2.63-r1.ebuild | 11 +---
14 sys-devel/autoconf/autoconf-2.64.ebuild | 11 +---
15 sys-devel/autoconf/autoconf-2.65-r1.ebuild | 11 +---
16 sys-devel/autoconf/autoconf-2.67.ebuild | 11 +---
17 sys-devel/autoconf/autoconf-2.68.ebuild | 11 +---
18 sys-devel/autoconf/autoconf-2.69-r2.ebuild | 11 +---
19 sys-devel/autoconf/autoconf-9999.ebuild | 15 ++---
20 sys-devel/autoconf/files/eblits/main.eblit | 47 ---------------
21 .../autoconf/files/eblits/src_configure.eblit | 11 ----
22 sys-devel/autoconf/files/eblits/src_install.eblit | 38 ------------
23 sys-devel/autoconf/files/eblits/src_prepare.eblit | 8 ---
24 16 files changed, 100 insertions(+), 198 deletions(-)
25 create mode 100644 eclass/toolchain-autoconf.eclass
26 delete mode 100644 sys-devel/autoconf/files/eblits/main.eblit
27 delete mode 100644 sys-devel/autoconf/files/eblits/src_configure.eblit
28 delete mode 100644 sys-devel/autoconf/files/eblits/src_install.eblit
29 delete mode 100644 sys-devel/autoconf/files/eblits/src_prepare.eblit
30
31 diff --git a/eclass/toolchain-autoconf.eclass b/eclass/toolchain-autoconf.eclass
32 new file mode 100644
33 index 000000000000..59057b8d6ebb
34 --- /dev/null
35 +++ b/eclass/toolchain-autoconf.eclass
36 @@ -0,0 +1,70 @@
37 +# Copyright 1999-2017 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +# @ECLASS: toolchain-autoconf.eclass
41 +# @MAINTAINER:
42 +# <base-system@g.o>
43 +# @BLURB: Common code for sys-devel/autoconf ebuilds
44 +# @DESCRIPTION:
45 +# This eclass contains the common phase functions migrated from
46 +# sys-devel/autoconf eblits.
47 +
48 +if [[ -z ${_TOOLCHAIN_AUTOCONF_ECLASS} ]]; then
49 +
50 +inherit eutils
51 +
52 +EXPORT_FUNCTIONS src_prepare src_configure src_install
53 +
54 +toolchain-autoconf_src_prepare() {
55 + find -name Makefile.in -exec sed -i '/^pkgdatadir/s:$:-@VERSION@:' {} + || die
56 +
57 + [[ ${#PATCHES[@]} -gt 0 ]] && epatch "${PATCHES[@]}"
58 +}
59 +
60 +toolchain-autoconf_src_configure() {
61 + # Disable Emacs in the build system since it is in a separate package.
62 + export EMACS=no
63 + econf --program-suffix="-${PV}" || die
64 + # econf updates config.{sub,guess} which forces the manpages
65 + # to be regenerated which we dont want to do #146621
66 + touch man/*.1
67 +}
68 +
69 +# slot the info pages. do this w/out munging the source so we don't have
70 +# to depend on texinfo to regen things. #464146 (among others)
71 +slot_info_pages() {
72 + [[ ${SLOT} == "0" ]] && return
73 +
74 + pushd "${ED}"/usr/share/info >/dev/null || die
75 + rm -f dir || die
76 +
77 + # Rewrite all the references to other pages.
78 + # before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4.
79 + # after: * aclocal-invocation v1.13: (automake-1.13)aclocal Invocation. Generating aclocal.m4.
80 + local p pages=( *.info ) args=()
81 + for p in "${pages[@]/%.info}" ; do
82 + args+=(
83 + -e "/START-INFO-DIR-ENTRY/,/END-INFO-DIR-ENTRY/s|: (${p})| v${SLOT}&|"
84 + -e "s:(${p}):(${p}-${SLOT}):g"
85 + )
86 + done
87 + sed -i "${args[@]}" * || die
88 +
89 + # Rewrite all the file references, and rename them in the process.
90 + local f d
91 + for f in * ; do
92 + d=${f/.info/-${SLOT}.info}
93 + mv "${f}" "${d}" || die
94 + sed -i -e "s:${f}:${d}:g" * || die
95 + done
96 +
97 + popd >/dev/null || die
98 +}
99 +
100 +toolchain-autoconf_src_install() {
101 + default
102 + slot_info_pages
103 +}
104 +
105 +_TOOLCHAIN_AUTOCONF_ECLASS=1
106 +fi
107 diff --git a/sys-devel/autoconf/autoconf-2.13.ebuild b/sys-devel/autoconf/autoconf-2.13.ebuild
108 index 60f3ef570bb6..e5ea4f482989 100644
109 --- a/sys-devel/autoconf/autoconf-2.13.ebuild
110 +++ b/sys-devel/autoconf/autoconf-2.13.ebuild
111 @@ -1,9 +1,9 @@
112 -# Copyright 1999-2016 Gentoo Foundation
113 +# Copyright 1999-2017 Gentoo Foundation
114 # Distributed under the terms of the GNU General Public License v2
115
116 EAPI="5"
117
118 -inherit eutils
119 +inherit toolchain-autoconf
120
121 DESCRIPTION="Used to create autoconfiguration files"
122 HOMEPAGE="https://www.gnu.org/software/autoconf/autoconf.html"
123 @@ -26,12 +26,6 @@ PATCHES=(
124 "${FILESDIR}"/${P}-test-fixes.patch #146592
125 )
126
127 -if [[ -z ${__EBLITS__} && -n ${FILESDIR} ]] ; then
128 - source "${FILESDIR}"/eblits/main.eblit || die
129 -fi
130 -src_prepare() { eblit-run src_prepare ; }
131 -src_install() { eblit-run src_install ; }
132 -
133 src_configure() {
134 touch configure # make sure configure is newer than configure.in
135
136 diff --git a/sys-devel/autoconf/autoconf-2.59-r7.ebuild b/sys-devel/autoconf/autoconf-2.59-r7.ebuild
137 index dbcbdf9ef005..7eade8183517 100644
138 --- a/sys-devel/autoconf/autoconf-2.59-r7.ebuild
139 +++ b/sys-devel/autoconf/autoconf-2.59-r7.ebuild
140 @@ -1,9 +1,9 @@
141 -# Copyright 1999-2015 Gentoo Foundation
142 +# Copyright 1999-2017 Gentoo Foundation
143 # Distributed under the terms of the GNU General Public License v2
144
145 EAPI="5"
146
147 -inherit eutils
148 +inherit toolchain-autoconf
149
150 DESCRIPTION="Used to create autoconfiguration files"
151 HOMEPAGE="https://www.gnu.org/software/autoconf/autoconf.html"
152 @@ -23,10 +23,3 @@ RDEPEND="${DEPEND}
153 PATCHES=(
154 "${FILESDIR}"/${P}-more-quotes.patch
155 )
156 -
157 -if [[ -z ${__EBLITS__} && -n ${FILESDIR} ]] ; then
158 - source "${FILESDIR}"/eblits/main.eblit || die
159 -fi
160 -src_prepare() { eblit-run src_prepare ; }
161 -src_configure() { eblit-run src_configure ; }
162 -src_install() { eblit-run src_install ; }
163 diff --git a/sys-devel/autoconf/autoconf-2.61-r2.ebuild b/sys-devel/autoconf/autoconf-2.61-r2.ebuild
164 index 7af545f918e9..e1fedced3204 100644
165 --- a/sys-devel/autoconf/autoconf-2.61-r2.ebuild
166 +++ b/sys-devel/autoconf/autoconf-2.61-r2.ebuild
167 @@ -1,9 +1,9 @@
168 -# Copyright 1999-2015 Gentoo Foundation
169 +# Copyright 1999-2017 Gentoo Foundation
170 # Distributed under the terms of the GNU General Public License v2
171
172 EAPI="5"
173
174 -inherit eutils
175 +inherit toolchain-autoconf
176
177 DESCRIPTION="Used to create autoconfiguration files"
178 HOMEPAGE="https://www.gnu.org/software/autoconf/autoconf.html"
179 @@ -24,13 +24,6 @@ PATCHES=(
180 "${FILESDIR}"/${P}-GETMNTENT.patch
181 )
182
183 -if [[ -z ${__EBLITS__} && -n ${FILESDIR} ]] ; then
184 - source "${FILESDIR}"/eblits/main.eblit || die
185 -fi
186 -src_prepare() { eblit-run src_prepare ; }
187 -src_configure() { eblit-run src_configure ; }
188 -src_install() { eblit-run src_install ; }
189 -
190 src_compile() {
191 # From configure output:
192 # Parallel builds via `make -jN' do not work.
193 diff --git a/sys-devel/autoconf/autoconf-2.62-r1.ebuild b/sys-devel/autoconf/autoconf-2.62-r1.ebuild
194 index 30cec8f13d42..574a0af6ce74 100644
195 --- a/sys-devel/autoconf/autoconf-2.62-r1.ebuild
196 +++ b/sys-devel/autoconf/autoconf-2.62-r1.ebuild
197 @@ -1,9 +1,9 @@
198 -# Copyright 1999-2015 Gentoo Foundation
199 +# Copyright 1999-2017 Gentoo Foundation
200 # Distributed under the terms of the GNU General Public License v2
201
202 EAPI="5"
203
204 -inherit eutils
205 +inherit toolchain-autoconf
206
207 DESCRIPTION="Used to create autoconfiguration files"
208 HOMEPAGE="https://www.gnu.org/software/autoconf/autoconf.html"
209 @@ -25,10 +25,3 @@ PATCHES=(
210 "${FILESDIR}"/${P}-at-keywords.patch
211 "${FILESDIR}"/${P}-fix-multiline-string.patch #217976
212 )
213 -
214 -if [[ -z ${__EBLITS__} && -n ${FILESDIR} ]] ; then
215 - source "${FILESDIR}"/eblits/main.eblit || die
216 -fi
217 -src_prepare() { eblit-run src_prepare ; }
218 -src_configure() { eblit-run src_configure ; }
219 -src_install() { eblit-run src_install ; }
220 diff --git a/sys-devel/autoconf/autoconf-2.63-r1.ebuild b/sys-devel/autoconf/autoconf-2.63-r1.ebuild
221 index 62d7a8200fc5..0df070c98765 100644
222 --- a/sys-devel/autoconf/autoconf-2.63-r1.ebuild
223 +++ b/sys-devel/autoconf/autoconf-2.63-r1.ebuild
224 @@ -1,9 +1,9 @@
225 -# Copyright 1999-2015 Gentoo Foundation
226 +# Copyright 1999-2017 Gentoo Foundation
227 # Distributed under the terms of the GNU General Public License v2
228
229 EAPI="5"
230
231 -inherit eutils
232 +inherit toolchain-autoconf
233
234 DESCRIPTION="Used to create autoconfiguration files"
235 HOMEPAGE="https://www.gnu.org/software/autoconf/autoconf.html"
236 @@ -23,10 +23,3 @@ RDEPEND="${DEPEND}
237 PATCHES=(
238 "${FILESDIR}"/${P}-sh.patch #264303
239 )
240 -
241 -if [[ -z ${__EBLITS__} && -n ${FILESDIR} ]] ; then
242 - source "${FILESDIR}"/eblits/main.eblit || die
243 -fi
244 -src_prepare() { eblit-run src_prepare ; }
245 -src_configure() { eblit-run src_configure ; }
246 -src_install() { eblit-run src_install ; }
247 diff --git a/sys-devel/autoconf/autoconf-2.64.ebuild b/sys-devel/autoconf/autoconf-2.64.ebuild
248 index d08d4440b413..572f9e3322af 100644
249 --- a/sys-devel/autoconf/autoconf-2.64.ebuild
250 +++ b/sys-devel/autoconf/autoconf-2.64.ebuild
251 @@ -1,8 +1,10 @@
252 -# Copyright 1999-2015 Gentoo Foundation
253 +# Copyright 1999-2017 Gentoo Foundation
254 # Distributed under the terms of the GNU General Public License v2
255
256 EAPI="5"
257
258 +inherit toolchain-autoconf
259 +
260 DESCRIPTION="Used to create autoconfiguration files"
261 HOMEPAGE="https://www.gnu.org/software/autoconf/autoconf.html"
262 SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
263 @@ -17,10 +19,3 @@ DEPEND=">=sys-devel/m4-1.4.6
264 RDEPEND="${DEPEND}
265 !~sys-devel/${P}:2.5
266 >=sys-devel/autoconf-wrapper-13"
267 -
268 -if [[ -z ${__EBLITS__} && -n ${FILESDIR} ]] ; then
269 - source "${FILESDIR}"/eblits/main.eblit || die
270 -fi
271 -src_prepare() { eblit-run src_prepare ; }
272 -src_configure() { eblit-run src_configure ; }
273 -src_install() { eblit-run src_install ; }
274 diff --git a/sys-devel/autoconf/autoconf-2.65-r1.ebuild b/sys-devel/autoconf/autoconf-2.65-r1.ebuild
275 index ad91592374e2..1354433f9d33 100644
276 --- a/sys-devel/autoconf/autoconf-2.65-r1.ebuild
277 +++ b/sys-devel/autoconf/autoconf-2.65-r1.ebuild
278 @@ -1,9 +1,9 @@
279 -# Copyright 1999-2015 Gentoo Foundation
280 +# Copyright 1999-2017 Gentoo Foundation
281 # Distributed under the terms of the GNU General Public License v2
282
283 EAPI="5"
284
285 -inherit eutils
286 +inherit toolchain-autoconf
287
288 DESCRIPTION="Used to create autoconfiguration files"
289 HOMEPAGE="https://www.gnu.org/software/autoconf/autoconf.html"
290 @@ -23,10 +23,3 @@ RDEPEND="${DEPEND}
291 PATCHES=(
292 "${FILESDIR}"/${P}-AC_TYPE_INT_T.patch #324649
293 )
294 -
295 -if [[ -z ${__EBLITS__} && -n ${FILESDIR} ]] ; then
296 - source "${FILESDIR}"/eblits/main.eblit || die
297 -fi
298 -src_prepare() { eblit-run src_prepare ; }
299 -src_configure() { eblit-run src_configure ; }
300 -src_install() { eblit-run src_install ; }
301 diff --git a/sys-devel/autoconf/autoconf-2.67.ebuild b/sys-devel/autoconf/autoconf-2.67.ebuild
302 index 0bfcaee59fb8..4290fee75751 100644
303 --- a/sys-devel/autoconf/autoconf-2.67.ebuild
304 +++ b/sys-devel/autoconf/autoconf-2.67.ebuild
305 @@ -1,8 +1,10 @@
306 -# Copyright 1999-2015 Gentoo Foundation
307 +# Copyright 1999-2017 Gentoo Foundation
308 # Distributed under the terms of the GNU General Public License v2
309
310 EAPI="5"
311
312 +inherit toolchain-autoconf
313 +
314 DESCRIPTION="Used to create autoconfiguration files"
315 HOMEPAGE="https://www.gnu.org/software/autoconf/autoconf.html"
316 SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
317 @@ -17,10 +19,3 @@ DEPEND=">=sys-devel/m4-1.4.6
318 RDEPEND="${DEPEND}
319 !~sys-devel/${P}:2.5
320 >=sys-devel/autoconf-wrapper-13"
321 -
322 -if [[ -z ${__EBLITS__} && -n ${FILESDIR} ]] ; then
323 - source "${FILESDIR}"/eblits/main.eblit || die
324 -fi
325 -src_prepare() { eblit-run src_prepare ; }
326 -src_configure() { eblit-run src_configure ; }
327 -src_install() { eblit-run src_install ; }
328 diff --git a/sys-devel/autoconf/autoconf-2.68.ebuild b/sys-devel/autoconf/autoconf-2.68.ebuild
329 index 0bfcaee59fb8..4290fee75751 100644
330 --- a/sys-devel/autoconf/autoconf-2.68.ebuild
331 +++ b/sys-devel/autoconf/autoconf-2.68.ebuild
332 @@ -1,8 +1,10 @@
333 -# Copyright 1999-2015 Gentoo Foundation
334 +# Copyright 1999-2017 Gentoo Foundation
335 # Distributed under the terms of the GNU General Public License v2
336
337 EAPI="5"
338
339 +inherit toolchain-autoconf
340 +
341 DESCRIPTION="Used to create autoconfiguration files"
342 HOMEPAGE="https://www.gnu.org/software/autoconf/autoconf.html"
343 SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
344 @@ -17,10 +19,3 @@ DEPEND=">=sys-devel/m4-1.4.6
345 RDEPEND="${DEPEND}
346 !~sys-devel/${P}:2.5
347 >=sys-devel/autoconf-wrapper-13"
348 -
349 -if [[ -z ${__EBLITS__} && -n ${FILESDIR} ]] ; then
350 - source "${FILESDIR}"/eblits/main.eblit || die
351 -fi
352 -src_prepare() { eblit-run src_prepare ; }
353 -src_configure() { eblit-run src_configure ; }
354 -src_install() { eblit-run src_install ; }
355 diff --git a/sys-devel/autoconf/autoconf-2.69-r2.ebuild b/sys-devel/autoconf/autoconf-2.69-r2.ebuild
356 index 593e8a0454d5..9d09ace0dc31 100644
357 --- a/sys-devel/autoconf/autoconf-2.69-r2.ebuild
358 +++ b/sys-devel/autoconf/autoconf-2.69-r2.ebuild
359 @@ -1,4 +1,4 @@
360 -# Copyright 1999-2016 Gentoo Foundation
361 +# Copyright 1999-2017 Gentoo Foundation
362 # Distributed under the terms of the GNU General Public License v2
363
364 EAPI="5"
365 @@ -15,6 +15,8 @@ else
366 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
367 fi
368
369 +inherit toolchain-autoconf
370 +
371 DESCRIPTION="Used to create autoconfiguration files"
372 HOMEPAGE="https://www.gnu.org/software/autoconf/autoconf.html"
373
374 @@ -29,10 +31,3 @@ RDEPEND="${DEPEND}
375 >=sys-devel/autoconf-wrapper-13"
376 [[ ${PV} == "9999" ]] && DEPEND+=" >=sys-apps/texinfo-4.3"
377 PDEPEND="emacs? ( app-emacs/autoconf-mode )"
378 -
379 -if [[ -z ${__EBLITS__} && -n ${FILESDIR} ]] ; then
380 - source "${FILESDIR}"/eblits/main.eblit || die
381 -fi
382 -src_prepare() { eblit-run src_prepare ; }
383 -src_configure() { eblit-run src_configure ; }
384 -src_install() { eblit-run src_install ; }
385 diff --git a/sys-devel/autoconf/autoconf-9999.ebuild b/sys-devel/autoconf/autoconf-9999.ebuild
386 index e54426475c8d..9495cddbedd9 100644
387 --- a/sys-devel/autoconf/autoconf-9999.ebuild
388 +++ b/sys-devel/autoconf/autoconf-9999.ebuild
389 @@ -1,4 +1,4 @@
390 -# Copyright 1999-2015 Gentoo Foundation
391 +# Copyright 1999-2017 Gentoo Foundation
392 # Distributed under the terms of the GNU General Public License v2
393
394 EAPI="5"
395 @@ -15,6 +15,8 @@ else
396 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
397 fi
398
399 +inherit toolchain-autoconf
400 +
401 DESCRIPTION="Used to create autoconfiguration files"
402 HOMEPAGE="https://www.gnu.org/software/autoconf/autoconf.html"
403
404 @@ -30,18 +32,13 @@ RDEPEND="${DEPEND}
405 [[ ${PV} == "9999" ]] && DEPEND+=" >=sys-apps/texinfo-4.3"
406 PDEPEND="emacs? ( app-emacs/autoconf-mode )"
407
408 -if [[ -z ${__EBLITS__} && -n ${FILESDIR} ]] ; then
409 - source "${FILESDIR}"/eblits/main.eblit || die
410 -fi
411 -src_prepare() { eblit-run src_prepare ; }
412 -src_configure() { eblit-run src_configure ; }
413 -src_install() { eblit-run src_install ; }
414 -
415 -eblit-src_prepare-pre() {
416 +src_prepare() {
417 # Avoid the "dirty" suffix in the git version by generating it
418 # before we run later stages which might modify source files.
419 local ver=$(./build-aux/git-version-gen .tarball-version)
420 echo "${ver}" > .tarball-version
421
422 autoreconf -f -i || die
423 +
424 + toolchain-autoconf_src_prepare
425 }
426 diff --git a/sys-devel/autoconf/files/eblits/main.eblit b/sys-devel/autoconf/files/eblits/main.eblit
427 deleted file mode 100644
428 index 66b1fe2fa87a..000000000000
429 --- a/sys-devel/autoconf/files/eblits/main.eblit
430 +++ /dev/null
431 @@ -1,47 +0,0 @@
432 -# Copyright 1999-2015 Gentoo Foundation
433 -# Distributed under the terms of the GNU General Public License v2
434 -
435 -__EBLITS__="locked-and-loaded"
436 -
437 -# eblit-include [--skip] <function> [version]
438 -eblit-include() {
439 - local skipable=false
440 - [[ $1 == "--skip" ]] && skipable=true && shift
441 - [[ $1 == pkg_* ]] && skipable=true
442 -
443 - local e v func=$1 ver=$2
444 - [[ -z ${func} ]] && die "Usage: eblit-include <function> [version]"
445 - for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do
446 - e="${FILESDIR}/eblits/${func}${v}.eblit"
447 - if [[ -e ${e} ]] ; then
448 - source "${e}"
449 - return 0
450 - fi
451 - done
452 - ${skipable} && return 0
453 - die "Could not locate requested eblit '${func}' in ${FILESDIR}/eblits/"
454 -}
455 -
456 -# eblit-run-maybe <function>
457 -# run the specified function if it is defined
458 -eblit-run-maybe() {
459 - [[ $(type -t "$@") == "function" ]] && "$@"
460 -}
461 -
462 -# eblit-run <function> [version]
463 -# aka: src_unpack() { eblit-run src_unpack ; }
464 -eblit-run() {
465 - eblit-include --skip common "${*:2}"
466 - eblit-include "$@"
467 - eblit-run-maybe eblit-$1-pre
468 - eblit-${PN}-$1
469 - eblit-run-maybe eblit-$1-post
470 -}
471 -
472 -# Copy these into the ebuilds.
473 -#src_unpack() { eblit-run src_unpack ; }
474 -#src_prepare() { eblit-run src_prepare ; }
475 -#src_configure() { eblit-run src_configure ; }
476 -#src_compile() { eblit-run src_compile ; }
477 -#src_test() { eblit-run src_test ; }
478 -#src_install() { eblit-run src_install ; }
479 diff --git a/sys-devel/autoconf/files/eblits/src_configure.eblit b/sys-devel/autoconf/files/eblits/src_configure.eblit
480 deleted file mode 100644
481 index 680a38f74a1d..000000000000
482 --- a/sys-devel/autoconf/files/eblits/src_configure.eblit
483 +++ /dev/null
484 @@ -1,11 +0,0 @@
485 -# Copyright 1999-2015 Gentoo Foundation
486 -# Distributed under the terms of the GNU General Public License v2
487 -
488 -eblit-autoconf-src_configure() {
489 - # Disable Emacs in the build system since it is in a separate package.
490 - export EMACS=no
491 - econf --program-suffix="-${PV}" || die
492 - # econf updates config.{sub,guess} which forces the manpages
493 - # to be regenerated which we dont want to do #146621
494 - touch man/*.1
495 -}
496 diff --git a/sys-devel/autoconf/files/eblits/src_install.eblit b/sys-devel/autoconf/files/eblits/src_install.eblit
497 deleted file mode 100644
498 index b64381ca1f6d..000000000000
499 --- a/sys-devel/autoconf/files/eblits/src_install.eblit
500 +++ /dev/null
501 @@ -1,38 +0,0 @@
502 -# Copyright 1999-2015 Gentoo Foundation
503 -# Distributed under the terms of the GNU General Public License v2
504 -
505 -# slot the info pages. do this w/out munging the source so we don't have
506 -# to depend on texinfo to regen things. #464146 (among others)
507 -slot_info_pages() {
508 - [[ ${SLOT} == "0" ]] && return
509 -
510 - pushd "${ED}"/usr/share/info >/dev/null
511 - rm -f dir
512 -
513 - # Rewrite all the references to other pages.
514 - # before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4.
515 - # after: * aclocal-invocation v1.13: (automake-1.13)aclocal Invocation. Generating aclocal.m4.
516 - local p pages=( *.info ) args=()
517 - for p in "${pages[@]/%.info}" ; do
518 - args+=(
519 - -e "/START-INFO-DIR-ENTRY/,/END-INFO-DIR-ENTRY/s|: (${p})| v${SLOT}&|"
520 - -e "s:(${p}):(${p}-${SLOT}):g"
521 - )
522 - done
523 - sed -i "${args[@]}" * || die
524 -
525 - # Rewrite all the file references, and rename them in the process.
526 - local f d
527 - for f in * ; do
528 - d=${f/.info/-${SLOT}.info}
529 - mv "${f}" "${d}" || die
530 - sed -i -e "s:${f}:${d}:g" * || die
531 - done
532 -
533 - popd >/dev/null
534 -}
535 -
536 -eblit-autoconf-src_install() {
537 - default
538 - slot_info_pages
539 -}
540 diff --git a/sys-devel/autoconf/files/eblits/src_prepare.eblit b/sys-devel/autoconf/files/eblits/src_prepare.eblit
541 deleted file mode 100644
542 index b34fbfc56dd4..000000000000
543 --- a/sys-devel/autoconf/files/eblits/src_prepare.eblit
544 +++ /dev/null
545 @@ -1,8 +0,0 @@
546 -# Copyright 1999-2015 Gentoo Foundation
547 -# Distributed under the terms of the GNU General Public License v2
548 -
549 -eblit-autoconf-src_prepare() {
550 - find -name Makefile.in -exec sed -i '/^pkgdatadir/s:$:-@VERSION@:' {} +
551 -
552 - [[ ${#PATCHES[@]} -gt 0 ]] && epatch "${PATCHES[@]}"
553 -}
554 --
555 2.12.0