Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/automake/, sys-devel/automake/files/
Date: Wed, 16 Dec 2015 22:52:56
Message-Id: 1450306358.397ebbd25aa13b7e2e54b247c230d4e7c29acfdf.vapier@gentoo
1 commit: 397ebbd25aa13b7e2e54b247c230d4e7c29acfdf
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 16 22:49:26 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=397ebbd2
7
8 sys-devel/automake: fix version warning w/newer perl
9
10 sys-devel/automake/automake-1.10.3-r2.ebuild | 83 +++++++++++++++++
11 sys-devel/automake/automake-1.11.6-r2.ebuild | 91 ++++++++++++++++++
12 sys-devel/automake/automake-1.12.6-r1.ebuild | 86 +++++++++++++++++
13 sys-devel/automake/automake-1.13.4-r1.ebuild | 91 ++++++++++++++++++
14 sys-devel/automake/automake-1.14.1-r1.ebuild | 103 +++++++++++++++++++++
15 sys-devel/automake/automake-1.15-r1.ebuild | 103 +++++++++++++++++++++
16 .../automake-1.13-perl-escape-curly-bracket.patch | 37 ++++++++
17 .../automake-1.15-perl-escape-curly-bracket.patch | 37 ++++++++
18 8 files changed, 631 insertions(+)
19
20 diff --git a/sys-devel/automake/automake-1.10.3-r2.ebuild b/sys-devel/automake/automake-1.10.3-r2.ebuild
21 new file mode 100644
22 index 0000000..de41a4f
23 --- /dev/null
24 +++ b/sys-devel/automake/automake-1.10.3-r2.ebuild
25 @@ -0,0 +1,83 @@
26 +# Copyright 1999-2014 Gentoo Foundation
27 +# Distributed under the terms of the GNU General Public License v2
28 +# $Id$
29 +
30 +EAPI="4"
31 +
32 +inherit eutils
33 +
34 +DESCRIPTION="Used to generate Makefile.in from Makefile.am"
35 +HOMEPAGE="https://www.gnu.org/software/automake/"
36 +SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2"
37 +
38 +LICENSE="GPL-2"
39 +# Use Gentoo versioning for slotting.
40 +SLOT="${PV:0:4}"
41 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
42 +IUSE=""
43 +
44 +RDEPEND="dev-lang/perl
45 + >=sys-devel/automake-wrapper-10
46 + >=sys-devel/autoconf-2.69
47 + sys-devel/gnuconfig"
48 +DEPEND="${RDEPEND}
49 + sys-apps/help2man"
50 +
51 +src_prepare() {
52 + export WANT_AUTOCONF=2.5
53 + epatch "${FILESDIR}"/${PN}-1.10-perl-5.16.patch #424453
54 + epatch "${FILESDIR}"/${PN}-1.13-perl-escape-curly-bracket.patch
55 + chmod a+rx tests/*.test
56 +}
57 +
58 +src_configure() {
59 + econf --docdir=/usr/share/doc/${PF}
60 +}
61 +
62 +# slot the info pages. do this w/out munging the source so we don't have
63 +# to depend on texinfo to regen things. #464146 (among others)
64 +slot_info_pages() {
65 + pushd "${D}"/usr/share/info >/dev/null
66 + rm -f dir
67 +
68 + # Rewrite all the references to other pages.
69 + # before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4.
70 + # after: * aclocal-invocation v1.13: (automake-1.13)aclocal Invocation. Generating aclocal.m4.
71 + local p pages=( *.info ) args=()
72 + for p in "${pages[@]/%.info}" ; do
73 + args+=(
74 + -e "/START-INFO-DIR-ENTRY/,/END-INFO-DIR-ENTRY/s|: (${p})| v${SLOT}&|"
75 + -e "s:(${p}):(${p}-${SLOT}):g"
76 + )
77 + done
78 + sed -i "${args[@]}" * || die
79 +
80 + # Rewrite all the file references, and rename them in the process.
81 + local f d
82 + for f in * ; do
83 + d=${f/.info/-${SLOT}.info}
84 + mv "${f}" "${d}" || die
85 + sed -i -e "s:${f}:${d}:g" * || die
86 + done
87 +
88 + popd >/dev/null
89 +}
90 +
91 +src_install() {
92 + default
93 + slot_info_pages
94 +
95 + # SLOT the docs and junk
96 + local x
97 + for x in aclocal automake ; do
98 + help2man "perl -Ilib ${x}" > ${x}-${SLOT}.1
99 + doman ${x}-${SLOT}.1
100 + rm -f "${D}"/usr/bin/${x}
101 + done
102 +
103 + # remove all config.guess and config.sub files replacing them
104 + # w/a symlink to a specific gnuconfig version
105 + for x in guess sub ; do
106 + dosym ../gnuconfig/config.${x} /usr/share/${PN}-${SLOT}/config.${x}
107 + done
108 +}
109
110 diff --git a/sys-devel/automake/automake-1.11.6-r2.ebuild b/sys-devel/automake/automake-1.11.6-r2.ebuild
111 new file mode 100644
112 index 0000000..cd44869
113 --- /dev/null
114 +++ b/sys-devel/automake/automake-1.11.6-r2.ebuild
115 @@ -0,0 +1,91 @@
116 +# Copyright 1999-2014 Gentoo Foundation
117 +# Distributed under the terms of the GNU General Public License v2
118 +# $Id$
119 +
120 +EAPI="4"
121 +
122 +inherit eutils
123 +
124 +DESCRIPTION="Used to generate Makefile.in from Makefile.am"
125 +HOMEPAGE="https://www.gnu.org/software/automake/"
126 +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
127 +
128 +LICENSE="GPL-2"
129 +# Use Gentoo versioning for slotting.
130 +SLOT="${PV:0:4}"
131 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
132 +IUSE=""
133 +
134 +RDEPEND="dev-lang/perl
135 + >=sys-devel/automake-wrapper-10
136 + >=sys-devel/autoconf-2.69
137 + sys-devel/gnuconfig"
138 +DEPEND="${RDEPEND}
139 + sys-apps/help2man"
140 +
141 +src_prepare() {
142 + export WANT_AUTOCONF=2.5
143 + epatch "${FILESDIR}"/${PN}-1.10-perl-5.16.patch #424453
144 + epatch "${FILESDIR}"/${PN}-1.13-perl-escape-curly-bracket.patch
145 + chmod a+rx tests/*.test
146 +}
147 +
148 +src_configure() {
149 + econf --docdir=/usr/share/doc/${PF} HELP2MAN=true
150 +}
151 +
152 +src_compile() {
153 + emake APIVERSION="${SLOT}" pkgvdatadir="/usr/share/${PN}-${SLOT}"
154 +
155 + local x
156 + for x in aclocal automake; do
157 + help2man "perl -Ilib ${x}" > doc/${x}-${SLOT}.1
158 + done
159 +}
160 +
161 +# slot the info pages. do this w/out munging the source so we don't have
162 +# to depend on texinfo to regen things. #464146 (among others)
163 +slot_info_pages() {
164 + pushd "${D}"/usr/share/info >/dev/null
165 + rm -f dir
166 +
167 + # Rewrite all the references to other pages.
168 + # before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4.
169 + # after: * aclocal-invocation v1.13: (automake-1.13)aclocal Invocation. Generating aclocal.m4.
170 + local p pages=( *.info ) args=()
171 + for p in "${pages[@]/%.info}" ; do
172 + args+=(
173 + -e "/START-INFO-DIR-ENTRY/,/END-INFO-DIR-ENTRY/s|: (${p})| v${SLOT}&|"
174 + -e "s:(${p}):(${p}-${SLOT}):g"
175 + )
176 + done
177 + sed -i "${args[@]}" * || die
178 +
179 + # Rewrite all the file references, and rename them in the process.
180 + local f d
181 + for f in * ; do
182 + d=${f/.info/-${SLOT}.info}
183 + mv "${f}" "${d}" || die
184 + sed -i -e "s:${f}:${d}:g" * || die
185 + done
186 +
187 + popd >/dev/null
188 +}
189 +
190 +src_install() {
191 + emake DESTDIR="${D}" install \
192 + APIVERSION="${SLOT}" pkgvdatadir="/usr/share/${PN}-${SLOT}"
193 + slot_info_pages
194 + dodoc NEWS README THANKS TODO AUTHORS ChangeLog
195 +
196 + rm \
197 + "${D}"/usr/bin/{aclocal,automake} \
198 + "${D}"/usr/share/man/man1/{aclocal,automake}.1 || die
199 +
200 + # remove all config.guess and config.sub files replacing them
201 + # w/a symlink to a specific gnuconfig version
202 + local x
203 + for x in guess sub ; do
204 + dosym ../gnuconfig/config.${x} /usr/share/${PN}-${SLOT}/config.${x}
205 + done
206 +}
207
208 diff --git a/sys-devel/automake/automake-1.12.6-r1.ebuild b/sys-devel/automake/automake-1.12.6-r1.ebuild
209 new file mode 100644
210 index 0000000..70eee07
211 --- /dev/null
212 +++ b/sys-devel/automake/automake-1.12.6-r1.ebuild
213 @@ -0,0 +1,86 @@
214 +# Copyright 1999-2014 Gentoo Foundation
215 +# Distributed under the terms of the GNU General Public License v2
216 +# $Id$
217 +
218 +EAPI="4"
219 +
220 +inherit eutils
221 +
222 +DESCRIPTION="Used to generate Makefile.in from Makefile.am"
223 +HOMEPAGE="https://www.gnu.org/software/automake/"
224 +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
225 +
226 +LICENSE="GPL-2"
227 +# Use Gentoo versioning for slotting.
228 +SLOT="${PV:0:4}"
229 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
230 +IUSE=""
231 +
232 +RDEPEND="dev-lang/perl
233 + >=sys-devel/automake-wrapper-10
234 + >=sys-devel/autoconf-2.69
235 + sys-devel/gnuconfig"
236 +DEPEND="${RDEPEND}
237 + sys-apps/help2man"
238 +
239 +src_prepare() {
240 + export WANT_AUTOCONF=2.5
241 + epatch "${FILESDIR}"/${PN}-1.13-perl-escape-curly-bracket.patch
242 +}
243 +
244 +src_configure() {
245 + econf --docdir=/usr/share/doc/${PF} HELP2MAN=true
246 +}
247 +
248 +src_compile() {
249 + emake APIVERSION="${SLOT}" pkgvdatadir="/usr/share/${PN}-${SLOT}"
250 +}
251 +
252 +# slot the info pages. do this w/out munging the source so we don't have
253 +# to depend on texinfo to regen things. #464146 (among others)
254 +slot_info_pages() {
255 + pushd "${D}"/usr/share/info >/dev/null
256 + rm -f dir
257 +
258 + # Rewrite all the references to other pages.
259 + # before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4.
260 + # after: * aclocal-invocation v1.13: (automake-1.13)aclocal Invocation. Generating aclocal.m4.
261 + local p pages=( *.info ) args=()
262 + for p in "${pages[@]/%.info}" ; do
263 + args+=(
264 + -e "/START-INFO-DIR-ENTRY/,/END-INFO-DIR-ENTRY/s|: (${p})| v${SLOT}&|"
265 + -e "s:(${p}):(${p}-${SLOT}):g"
266 + )
267 + done
268 + sed -i "${args[@]}" * || die
269 +
270 + # Rewrite all the file references, and rename them in the process.
271 + local f d
272 + for f in * ; do
273 + d=${f/.info/-${SLOT}.info}
274 + mv "${f}" "${d}" || die
275 + sed -i -e "s:${f}:${d}:g" * || die
276 + done
277 +
278 + popd >/dev/null
279 +}
280 +
281 +src_install() {
282 + emake DESTDIR="${D}" install \
283 + APIVERSION="${SLOT}" pkgvdatadir="/usr/share/${PN}-${SLOT}"
284 + slot_info_pages
285 + rm "${D}"/usr/share/aclocal/README || die
286 + rmdir "${D}"/usr/share/aclocal || die
287 + dodoc AUTHORS ChangeLog NEWS README THANKS
288 +
289 + rm \
290 + "${D}"/usr/bin/{aclocal,automake} \
291 + "${D}"/usr/share/man/man1/{aclocal,automake}.1 || die
292 +
293 + # remove all config.guess and config.sub files replacing them
294 + # w/a symlink to a specific gnuconfig version
295 + local x
296 + for x in guess sub ; do
297 + dosym ../gnuconfig/config.${x} /usr/share/${PN}-${SLOT}/config.${x}
298 + done
299 +}
300
301 diff --git a/sys-devel/automake/automake-1.13.4-r1.ebuild b/sys-devel/automake/automake-1.13.4-r1.ebuild
302 new file mode 100644
303 index 0000000..8f515d2
304 --- /dev/null
305 +++ b/sys-devel/automake/automake-1.13.4-r1.ebuild
306 @@ -0,0 +1,91 @@
307 +# Copyright 1999-2014 Gentoo Foundation
308 +# Distributed under the terms of the GNU General Public License v2
309 +# $Id$
310 +
311 +EAPI="4"
312 +
313 +inherit eutils
314 +
315 +DESCRIPTION="Used to generate Makefile.in from Makefile.am"
316 +HOMEPAGE="https://www.gnu.org/software/automake/"
317 +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
318 +
319 +LICENSE="GPL-2"
320 +# Use Gentoo versioning for slotting.
321 +SLOT="${PV:0:4}"
322 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
323 +IUSE=""
324 +
325 +RDEPEND="dev-lang/perl
326 + >=sys-devel/automake-wrapper-10
327 + >=sys-devel/autoconf-2.69
328 + sys-devel/gnuconfig"
329 +DEPEND="${RDEPEND}
330 + sys-apps/help2man"
331 +
332 +src_prepare() {
333 + export WANT_AUTOCONF=2.5
334 + epatch "${FILESDIR}"/${PN}-1.13-dyn-ithreads.patch
335 + epatch "${FILESDIR}"/${PN}-1.13-perl-escape-curly-bracket.patch
336 +}
337 +
338 +src_configure() {
339 + econf --docdir=/usr/share/doc/${PF} HELP2MAN=true
340 +}
341 +
342 +src_compile() {
343 + emake APIVERSION="${SLOT}" pkgvdatadir="/usr/share/${PN}-${SLOT}"
344 +}
345 +
346 +src_test() {
347 + emake check
348 +}
349 +
350 +# slot the info pages. do this w/out munging the source so we don't have
351 +# to depend on texinfo to regen things. #464146 (among others)
352 +slot_info_pages() {
353 + pushd "${D}"/usr/share/info >/dev/null
354 + rm -f dir
355 +
356 + # Rewrite all the references to other pages.
357 + # before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4.
358 + # after: * aclocal-invocation v1.13: (automake-1.13)aclocal Invocation. Generating aclocal.m4.
359 + local p pages=( *.info ) args=()
360 + for p in "${pages[@]/%.info}" ; do
361 + args+=(
362 + -e "/START-INFO-DIR-ENTRY/,/END-INFO-DIR-ENTRY/s|: (${p})| v${SLOT}&|"
363 + -e "s:(${p}):(${p}-${SLOT}):g"
364 + )
365 + done
366 + sed -i "${args[@]}" * || die
367 +
368 + # Rewrite all the file references, and rename them in the process.
369 + local f d
370 + for f in * ; do
371 + d=${f/.info/-${SLOT}.info}
372 + mv "${f}" "${d}" || die
373 + sed -i -e "s:${f}:${d}:g" * || die
374 + done
375 +
376 + popd >/dev/null
377 +}
378 +
379 +src_install() {
380 + emake DESTDIR="${D}" install \
381 + APIVERSION="${SLOT}" pkgvdatadir="/usr/share/${PN}-${SLOT}"
382 + slot_info_pages
383 + rm "${D}"/usr/share/aclocal/README || die
384 + rmdir "${D}"/usr/share/aclocal || die
385 + dodoc AUTHORS ChangeLog NEWS README THANKS
386 +
387 + rm \
388 + "${D}"/usr/bin/{aclocal,automake} \
389 + "${D}"/usr/share/man/man1/{aclocal,automake}.1 || die
390 +
391 + # remove all config.guess and config.sub files replacing them
392 + # w/a symlink to a specific gnuconfig version
393 + local x
394 + for x in guess sub ; do
395 + dosym ../gnuconfig/config.${x} /usr/share/${PN}-${SLOT}/config.${x}
396 + done
397 +}
398
399 diff --git a/sys-devel/automake/automake-1.14.1-r1.ebuild b/sys-devel/automake/automake-1.14.1-r1.ebuild
400 new file mode 100644
401 index 0000000..add59cb
402 --- /dev/null
403 +++ b/sys-devel/automake/automake-1.14.1-r1.ebuild
404 @@ -0,0 +1,103 @@
405 +# Copyright 1999-2015 Gentoo Foundation
406 +# Distributed under the terms of the GNU General Public License v2
407 +# $Id$
408 +
409 +EAPI="4"
410 +
411 +inherit eutils versionator
412 +
413 +if [[ ${PV/_beta} == ${PV} ]]; then
414 + MY_P=${P}
415 + SRC_URI="mirror://gnu/${PN}/${P}.tar.xz
416 + ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz"
417 +else
418 + MY_PV="$(get_major_version).$(($(get_version_component_range 2)-1))b"
419 + MY_P="${PN}-${MY_PV}"
420 +
421 + # Alpha/beta releases are not distributed on the usual mirrors.
422 + SRC_URI="ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz"
423 +fi
424 +
425 +DESCRIPTION="Used to generate Makefile.in from Makefile.am"
426 +HOMEPAGE="https://www.gnu.org/software/automake/"
427 +
428 +LICENSE="GPL-2"
429 +# Use Gentoo versioning for slotting.
430 +SLOT="${PV:0:4}"
431 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
432 +IUSE=""
433 +
434 +RDEPEND="dev-lang/perl
435 + >=sys-devel/automake-wrapper-10
436 + >=sys-devel/autoconf-2.69
437 + sys-devel/gnuconfig"
438 +DEPEND="${RDEPEND}
439 + sys-apps/help2man"
440 +
441 +S="${WORKDIR}/${MY_P}"
442 +
443 +src_prepare() {
444 + export WANT_AUTOCONF=2.5
445 + epatch "${FILESDIR}"/${PN}-1.15-perl-escape-curly-bracket.patch
446 +}
447 +
448 +src_configure() {
449 + econf --docdir=/usr/share/doc/${PF} HELP2MAN=true
450 +}
451 +
452 +src_compile() {
453 + emake APIVERSION="${SLOT}" pkgvdatadir="/usr/share/${PN}-${SLOT}"
454 +}
455 +
456 +src_test() {
457 + emake check
458 +}
459 +
460 +# slot the info pages. do this w/out munging the source so we don't have
461 +# to depend on texinfo to regen things. #464146 (among others)
462 +slot_info_pages() {
463 + pushd "${D}"/usr/share/info >/dev/null
464 + rm -f dir
465 +
466 + # Rewrite all the references to other pages.
467 + # before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4.
468 + # after: * aclocal-invocation v1.13: (automake-1.13)aclocal Invocation. Generating aclocal.m4.
469 + local p pages=( *.info ) args=()
470 + for p in "${pages[@]/%.info}" ; do
471 + args+=(
472 + -e "/START-INFO-DIR-ENTRY/,/END-INFO-DIR-ENTRY/s|: (${p})| v${SLOT}&|"
473 + -e "s:(${p}):(${p}-${SLOT}):g"
474 + )
475 + done
476 + sed -i "${args[@]}" * || die
477 +
478 + # Rewrite all the file references, and rename them in the process.
479 + local f d
480 + for f in * ; do
481 + d=${f/.info/-${SLOT}.info}
482 + mv "${f}" "${d}" || die
483 + sed -i -e "s:${f}:${d}:g" * || die
484 + done
485 +
486 + popd >/dev/null
487 +}
488 +
489 +src_install() {
490 + emake DESTDIR="${D}" install \
491 + APIVERSION="${SLOT}" pkgvdatadir="/usr/share/${PN}-${SLOT}"
492 + slot_info_pages
493 + rm "${D}"/usr/share/aclocal/README || die
494 + rmdir "${D}"/usr/share/aclocal || die
495 + dodoc AUTHORS ChangeLog NEWS README THANKS
496 +
497 + rm \
498 + "${D}"/usr/bin/{aclocal,automake} \
499 + "${D}"/usr/share/man/man1/{aclocal,automake}.1 || die
500 +
501 + # remove all config.guess and config.sub files replacing them
502 + # w/a symlink to a specific gnuconfig version
503 + local x
504 + for x in guess sub ; do
505 + dosym ../gnuconfig/config.${x} /usr/share/${PN}-${SLOT}/config.${x}
506 + done
507 +}
508
509 diff --git a/sys-devel/automake/automake-1.15-r1.ebuild b/sys-devel/automake/automake-1.15-r1.ebuild
510 new file mode 100644
511 index 0000000..add59cb
512 --- /dev/null
513 +++ b/sys-devel/automake/automake-1.15-r1.ebuild
514 @@ -0,0 +1,103 @@
515 +# Copyright 1999-2015 Gentoo Foundation
516 +# Distributed under the terms of the GNU General Public License v2
517 +# $Id$
518 +
519 +EAPI="4"
520 +
521 +inherit eutils versionator
522 +
523 +if [[ ${PV/_beta} == ${PV} ]]; then
524 + MY_P=${P}
525 + SRC_URI="mirror://gnu/${PN}/${P}.tar.xz
526 + ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz"
527 +else
528 + MY_PV="$(get_major_version).$(($(get_version_component_range 2)-1))b"
529 + MY_P="${PN}-${MY_PV}"
530 +
531 + # Alpha/beta releases are not distributed on the usual mirrors.
532 + SRC_URI="ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz"
533 +fi
534 +
535 +DESCRIPTION="Used to generate Makefile.in from Makefile.am"
536 +HOMEPAGE="https://www.gnu.org/software/automake/"
537 +
538 +LICENSE="GPL-2"
539 +# Use Gentoo versioning for slotting.
540 +SLOT="${PV:0:4}"
541 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
542 +IUSE=""
543 +
544 +RDEPEND="dev-lang/perl
545 + >=sys-devel/automake-wrapper-10
546 + >=sys-devel/autoconf-2.69
547 + sys-devel/gnuconfig"
548 +DEPEND="${RDEPEND}
549 + sys-apps/help2man"
550 +
551 +S="${WORKDIR}/${MY_P}"
552 +
553 +src_prepare() {
554 + export WANT_AUTOCONF=2.5
555 + epatch "${FILESDIR}"/${PN}-1.15-perl-escape-curly-bracket.patch
556 +}
557 +
558 +src_configure() {
559 + econf --docdir=/usr/share/doc/${PF} HELP2MAN=true
560 +}
561 +
562 +src_compile() {
563 + emake APIVERSION="${SLOT}" pkgvdatadir="/usr/share/${PN}-${SLOT}"
564 +}
565 +
566 +src_test() {
567 + emake check
568 +}
569 +
570 +# slot the info pages. do this w/out munging the source so we don't have
571 +# to depend on texinfo to regen things. #464146 (among others)
572 +slot_info_pages() {
573 + pushd "${D}"/usr/share/info >/dev/null
574 + rm -f dir
575 +
576 + # Rewrite all the references to other pages.
577 + # before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4.
578 + # after: * aclocal-invocation v1.13: (automake-1.13)aclocal Invocation. Generating aclocal.m4.
579 + local p pages=( *.info ) args=()
580 + for p in "${pages[@]/%.info}" ; do
581 + args+=(
582 + -e "/START-INFO-DIR-ENTRY/,/END-INFO-DIR-ENTRY/s|: (${p})| v${SLOT}&|"
583 + -e "s:(${p}):(${p}-${SLOT}):g"
584 + )
585 + done
586 + sed -i "${args[@]}" * || die
587 +
588 + # Rewrite all the file references, and rename them in the process.
589 + local f d
590 + for f in * ; do
591 + d=${f/.info/-${SLOT}.info}
592 + mv "${f}" "${d}" || die
593 + sed -i -e "s:${f}:${d}:g" * || die
594 + done
595 +
596 + popd >/dev/null
597 +}
598 +
599 +src_install() {
600 + emake DESTDIR="${D}" install \
601 + APIVERSION="${SLOT}" pkgvdatadir="/usr/share/${PN}-${SLOT}"
602 + slot_info_pages
603 + rm "${D}"/usr/share/aclocal/README || die
604 + rmdir "${D}"/usr/share/aclocal || die
605 + dodoc AUTHORS ChangeLog NEWS README THANKS
606 +
607 + rm \
608 + "${D}"/usr/bin/{aclocal,automake} \
609 + "${D}"/usr/share/man/man1/{aclocal,automake}.1 || die
610 +
611 + # remove all config.guess and config.sub files replacing them
612 + # w/a symlink to a specific gnuconfig version
613 + local x
614 + for x in guess sub ; do
615 + dosym ../gnuconfig/config.${x} /usr/share/${PN}-${SLOT}/config.${x}
616 + done
617 +}
618
619 diff --git a/sys-devel/automake/files/automake-1.13-perl-escape-curly-bracket.patch b/sys-devel/automake/files/automake-1.13-perl-escape-curly-bracket.patch
620 new file mode 100644
621 index 0000000..a113d09
622 --- /dev/null
623 +++ b/sys-devel/automake/files/automake-1.13-perl-escape-curly-bracket.patch
624 @@ -0,0 +1,37 @@
625 +http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21001
626 +
627 +From 34163794a58b5bd91c5d6bd9adf5437571c7a479 Mon Sep 17 00:00:00 2001
628 +From: Pavel Raiskup <praiskup@××××××.com>
629 +Date: Tue, 7 Jul 2015 10:54:24 +0200
630 +Subject: [PATCH] bin/automake: escape '{' in regexp pattern
631 +
632 +Based on perlre(1) documentation:
633 +.. in Perl v5.26, literal uses of a curly bracket will be required
634 +to be escaped, say by preceding them with a backslash ("\{" ) or
635 +enclosing them within square brackets ("[{]") ..
636 +
637 +References:
638 +https://bugzilla.redhat.com/1239379
639 +
640 +* bin/automake.in (substitute_ac_subst_variables): Escape the
641 +occurrence of '{' character.
642 +---
643 + bin/automake.in | 2 +-
644 + 1 file changed, 1 insertion(+), 1 deletion(-)
645 +
646 +diff --git a/bin/automake.in b/bin/automake.in
647 +index 0c29184..c294ced 100644
648 +--- a/bin/automake.in
649 ++++ b/bin/automake.in
650 +@@ -3898,7 +3898,7 @@ sub substitute_ac_subst_variables_worker
651 + sub substitute_ac_subst_variables ($)
652 + {
653 + my ($text) = @_;
654 +- $text =~ s/\${([^ \t=:+{}]+)}/&substitute_ac_subst_variables_worker ($1)/ge;
655 ++ $text =~ s/\$\{([^ \t=:+{}]+)}/&substitute_ac_subst_variables_worker ($1)/ge;
656 + return $text;
657 + }
658 +
659 +--
660 +2.1.0
661 +
662
663 diff --git a/sys-devel/automake/files/automake-1.15-perl-escape-curly-bracket.patch b/sys-devel/automake/files/automake-1.15-perl-escape-curly-bracket.patch
664 new file mode 100644
665 index 0000000..268548d
666 --- /dev/null
667 +++ b/sys-devel/automake/files/automake-1.15-perl-escape-curly-bracket.patch
668 @@ -0,0 +1,37 @@
669 +http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21001
670 +
671 +From 34163794a58b5bd91c5d6bd9adf5437571c7a479 Mon Sep 17 00:00:00 2001
672 +From: Pavel Raiskup <praiskup@××××××.com>
673 +Date: Tue, 7 Jul 2015 10:54:24 +0200
674 +Subject: [PATCH] bin/automake: escape '{' in regexp pattern
675 +
676 +Based on perlre(1) documentation:
677 +.. in Perl v5.26, literal uses of a curly bracket will be required
678 +to be escaped, say by preceding them with a backslash ("\{" ) or
679 +enclosing them within square brackets ("[{]") ..
680 +
681 +References:
682 +https://bugzilla.redhat.com/1239379
683 +
684 +* bin/automake.in (substitute_ac_subst_variables): Escape the
685 +occurrence of '{' character.
686 +---
687 + bin/automake.in | 2 +-
688 + 1 file changed, 1 insertion(+), 1 deletion(-)
689 +
690 +diff --git a/bin/automake.in b/bin/automake.in
691 +index 0c29184..c294ced 100644
692 +--- a/bin/automake.in
693 ++++ b/bin/automake.in
694 +@@ -3898,7 +3898,7 @@ sub substitute_ac_subst_variables_worker
695 + sub substitute_ac_subst_variables
696 + {
697 + my ($text) = @_;
698 +- $text =~ s/\${([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
699 ++ $text =~ s/\$\{([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
700 + return $text;
701 + }
702 +
703 +--
704 +2.1.0
705 +