Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/bison/
Date: Sat, 05 Sep 2020 17:58:35
Message-Id: 1599328705.332d144e99865ec163da64f97f50ebf3a107c5d1.whissi@gentoo
1 commit: 332d144e99865ec163da64f97f50ebf3a107c5d1
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 5 17:37:06 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 5 17:58:25 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=332d144e
7
8 sys-devel/bison: bump to v3.7.2
9
10 Closes: https://bugs.gentoo.org/716516
11 Package-Manager: Portage-3.0.4, Repoman-3.0.1
12 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
13
14 sys-devel/bison/Manifest | 2 +
15 sys-devel/bison/bison-3.7.2.ebuild | 92 ++++++++++++++++++++++++++++++++++++++
16 2 files changed, 94 insertions(+)
17
18 diff --git a/sys-devel/bison/Manifest b/sys-devel/bison/Manifest
19 index abcd30a5b3e..c8c816a2506 100644
20 --- a/sys-devel/bison/Manifest
21 +++ b/sys-devel/bison/Manifest
22 @@ -5,4 +5,6 @@ DIST bison-3.6.4.tar.xz 2472456 BLAKE2B d2efe7ff1a349efe5a8c79eb69aa296dbc7eb9fd
23 DIST bison-3.7-patches-01.tar.xz 10468 BLAKE2B 62d422fa0654d6d3e9f829edcfb9a6f0eb5ae60997aa9362bbbe280fc95d86114ff9399586acfa94f2a52564b4f745ca778ce016f102e2981caefb96575f56e8 SHA512 2703963df71871b6e4973d79f69ee95aa6cc22c342d852f136b16d636f90285f6921064616db66f10f29dbfce884a23f79c005e7ceaaf9ccd9a2e1c749b337ac
24 DIST bison-3.7.1-patches-01.tar.xz 11072 BLAKE2B e68dc42fdeebd9c530d04ba906fb49dec3f2df0a68186a54de9671564ee47f9adc9ca4cb167ddaa3e15458dd339570191b2fe6debb33fdf47f29d1a7aa8d868f SHA512 d167f5278cf3136a96450b2bd664b2563c94205d7c82298951b0b08a6b4b0733101e25636f905c8d4033b5e6d1aaaddab70b7772c28e8c1d6c31a05e23df7ce5
25 DIST bison-3.7.1.tar.xz 2605940 BLAKE2B a00e8af6a74100154d2dad1597c901f8473dbdcc57826eff947878c3568bfc9070d92857b3b3e349302e9fcfd67eb3287e7a04f6fcff3b897a6fecf43c1cd03d SHA512 9c4097b6ff26e819be14a9d4ef39f6f259c04627cd305e11da8e67897a369b2bba5ce96bf19fa5f6088670e90a9c5bc5c45172f8f482252aeec546b285dd0797
26 +DIST bison-3.7.2-patches-01.tar.xz 99572 BLAKE2B a135527cee592c63ba2398ce44a1c35e43deb61219120ce34ef81f4de26da771fdc71309256ddb02a5b9f13760073b4d89eba2d6bf0aae26a57bd904a83b1d7c SHA512 fd0826dca291c2098e26dee2e425420890a247282cf999479a6b6e54a79f75542980071d25c846f1e56cb2221a7c8d2286b2936cbd33f0f1e948f48b8891f592
27 +DIST bison-3.7.2.tar.xz 2613404 BLAKE2B 7543c7df4496fbe6b9ab18ffb643a0d58eb63d0d1e91d67eaa6f9a7c805180c1cef02a640fd41eec228782a6758f82058dc4a45c13e3730b740883efad77498d SHA512 42eb501c246e9b4b24cb212c8da538b11b1944b997314105e67f88f22d73b7d00cf19b21e086aa7523630a2a24e1fd70a89d85a7e3003783990e08d31f711a27
28 DIST bison-3.7.tar.xz 2601220 BLAKE2B 3ac140048baacebce47a9090e916815e6c30d9c8b0f9fe61a3724b46fbfddf5b8bf94be2bc533a718d84bdc8c73d579b5e43d576efd488a6f5b52424883bc5cf SHA512 f6c8f1522849b65046844bd51953b4f1e2c32818d8bca0b8e4a1035e72d6731d8a66bc307d4b20d1a576cac6cbe10aa1c66829112327f37938ace165e154ba6a
29
30 diff --git a/sys-devel/bison/bison-3.7.2.ebuild b/sys-devel/bison/bison-3.7.2.ebuild
31 new file mode 100644
32 index 00000000000..cf2ebd48fe9
33 --- /dev/null
34 +++ b/sys-devel/bison/bison-3.7.2.ebuild
35 @@ -0,0 +1,92 @@
36 +# Copyright 1999-2020 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +inherit flag-o-matic
42 +
43 +PATCH_TAR="${PN}-3.7.2-patches-01.tar.xz"
44 +
45 +DESCRIPTION="A general-purpose (yacc-compatible) parser generator"
46 +HOMEPAGE="https://www.gnu.org/software/bison/"
47 +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz
48 + mirror://gentoo/${PATCH_TAR}
49 + https://dev.gentoo.org/~whissi/dist/bison/${PATCH_TAR}
50 + https://dev.gentoo.org/~polynomial-c/dist/bison/${PATCH_TAR}"
51 +
52 +LICENSE="GPL-2"
53 +SLOT="0"
54 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
55 +IUSE="examples nls static test"
56 +RESTRICT="!test? ( test )"
57 +
58 +RDEPEND=">=sys-devel/m4-1.4.16"
59 +DEPEND="${RDEPEND}"
60 +BDEPEND="
61 + sys-devel/flex
62 + >=sys-devel/gettext-0.21
63 + examples? ( dev-lang/perl )
64 + test? ( dev-lang/perl )
65 +"
66 +
67 +DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) # ChangeLog-2012 ChangeLog-1998 PACKAGING README-alpha README-release
68 +
69 +PATCHES=(
70 + "${WORKDIR}"/patches/${PN}-3.5-optional-perl.patch #538300
71 + "${WORKDIR}"/patches/${PN}-3.7.2-avoid_autoreconf.patch
72 +)
73 +
74 +src_prepare() {
75 + # Record date to avoid 'config.status --recheck' & regen of 'tests/package.m4'
76 + touch -r configure.ac old.configure.ac || die
77 + touch -r configure old.configure || die
78 +
79 + default
80 +
81 + # Restore date after patching
82 + touch -r old.configure.ac configure.ac || die
83 + touch -r old.configure configure || die
84 +
85 + # The makefiles make the man page depend on the configure script
86 + # which we patched above. Touch it to prevent regeneration.
87 + touch doc/bison.1 || die #548778 #538300#9
88 +
89 + # Avoid regenerating the info page when the timezone is diff. #574492
90 + sed -i '2iexport TZ=UTC' build-aux/mdate-sh || die
91 +}
92 +
93 +src_configure() {
94 + use static && append-ldflags -static
95 +
96 + local myeconfargs=(
97 + $(use_enable examples)
98 + $(use_enable nls)
99 + )
100 + econf "${myeconfargs[@]}"
101 +}
102 +
103 +src_install() {
104 + default
105 +
106 + # This one is installed by dev-util/yacc
107 + mv "${ED}"/usr/bin/yacc{,.bison} || die
108 + mv "${ED}"/usr/share/man/man1/yacc{,.bison}.1 || die
109 +
110 + # We do not need liby.a
111 + rm -r "${ED}"/usr/lib* || die
112 +}
113 +
114 +pkg_postinst() {
115 + local f="${EROOT}/usr/bin/yacc"
116 + if [[ ! -e ${f} ]] ; then
117 + ln -s yacc.bison "${f}"
118 + fi
119 +}
120 +
121 +pkg_postrm() {
122 + # clean up the dead symlink when we get unmerged #377469
123 + local f="${EROOT}/usr/bin/yacc"
124 + if [[ -L ${f} && ! -e ${f} ]] ; then
125 + rm -f "${f}"
126 + fi
127 +}