1 |
commit: 5cea866cd51e6c4cf0981c31bdcd0fd73be2ca6c |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 4 09:04:25 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 4 09:18:20 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cea866c |
7 |
|
8 |
sys-devel/bison: Bump to version 3.3.2 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/677244 |
11 |
Package-Manager: Portage-2.3.59, Repoman-2.3.12 |
12 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
13 |
|
14 |
sys-devel/bison/Manifest | 1 + |
15 |
sys-devel/bison/bison-3.3.2.ebuild | 92 ++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 93 insertions(+) |
17 |
|
18 |
diff --git a/sys-devel/bison/Manifest b/sys-devel/bison/Manifest |
19 |
index cb366449dbf..68022917cef 100644 |
20 |
--- a/sys-devel/bison/Manifest |
21 |
+++ b/sys-devel/bison/Manifest |
22 |
@@ -4,3 +4,4 @@ DIST bison-3.2.3-patches-01.tar.xz 9460 BLAKE2B 3e9f3e636d774d005c861c4f5fe121a8 |
23 |
DIST bison-3.2.4.tar.xz 2094568 BLAKE2B 9b7617b25f1b151c3b86a5f57e733543160fb40f992ff968eaadfc91d8f1a67f56d0afeafbed5003ea1a5e0c861b12ef4cc27065d1b6cbc1d0845710164d84e2 SHA512 652b54fdee969bbc17eeb04d05d65f143e8e0e1b46ac2574e3a76687b9bd916c9a0c97658b4f8357958d64e87fe2a6a2a98a6c312970f0e74fb4445962e9daae |
24 |
DIST bison-3.3-patches-01.tar.xz 10768 BLAKE2B 6b4df80d0cf6ff3445019bbc66063b794731d2c9869b20b0ace3ed9500e7ea4a30685a4084717871a68838b31392a90d2e1b52ef01eb2f62ea420e513268652c SHA512 32accc5a9e7b18b8dd98c73e5da50018be68effed9b69ed4d30604c7e7ba4495eef54b7882c3fe32bdeffb9278165ac2b5f3164b7c122e2001e4dd60ac2f4d1a |
25 |
DIST bison-3.3.1.tar.xz 2106048 BLAKE2B 998ab8cd014e0dde5a9a709ec8505e51ac5a85f3f88eb5c1a8dda7d2f1a8d82fbe6bd75b06b7a8ca3c67072f1ad09997c559a7584c443174165408f6200276ab SHA512 8901a97adda0d6d62c06e85d12645b35fa624c9f05e40250c1bb387d5524ac52c2b7de0402ab970f6ccfaf99c9bb5356873daa20cdd0c37d73b4a6ed7b98c44f |
26 |
+DIST bison-3.3.2.tar.xz 2108612 BLAKE2B 84cf59c02ff4ba34c052ef2539cde8d5932145ab21b63c879eeb32d183cadba6cb6209278090e38f3f03085e58ad1fff71248e5729513d8dffdcc14e8f924dfc SHA512 63c67291ea1bd00f4412fc589ffb891ede3e2577253016a9a185e00fb2d702371f3862486639a8f52f8a887f340a639575ff3b7ba93c152170cbfd8c9585c1dc |
27 |
|
28 |
diff --git a/sys-devel/bison/bison-3.3.2.ebuild b/sys-devel/bison/bison-3.3.2.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..ca879edb243 |
31 |
--- /dev/null |
32 |
+++ b/sys-devel/bison/bison-3.3.2.ebuild |
33 |
@@ -0,0 +1,92 @@ |
34 |
+# Copyright 1999-2019 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI="6" |
38 |
+ |
39 |
+inherit flag-o-matic |
40 |
+ |
41 |
+PATCHES="${PN}-3.3-patches-01.tar.xz" |
42 |
+ |
43 |
+DESCRIPTION="A general-purpose (yacc-compatible) parser generator" |
44 |
+HOMEPAGE="https://www.gnu.org/software/bison/" |
45 |
+SRC_URI="mirror://gnu/${PN}/${P}.tar.xz |
46 |
+ https://dev.gentoo.org/~whissi/dist/bison/${PATCHES} |
47 |
+ https://dev.gentoo.org/~polynomial-c/dist/bison/${PATCHES}" |
48 |
+ |
49 |
+LICENSE="GPL-2" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
52 |
+IUSE="examples nls static test" |
53 |
+ |
54 |
+RDEPEND=">=sys-devel/m4-1.4.16" |
55 |
+DEPEND="${RDEPEND} |
56 |
+ sys-devel/flex |
57 |
+ examples? ( dev-lang/perl ) |
58 |
+ nls? ( sys-devel/gettext ) |
59 |
+ test? ( dev-lang/perl )" |
60 |
+ |
61 |
+DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) # ChangeLog-2012 ChangeLog-1998 PACKAGING README-alpha README-release |
62 |
+ |
63 |
+PATCHES=( |
64 |
+ "${WORKDIR}"/patches/${PN}-3.1-optional-perl.patch #538300 |
65 |
+ "${WORKDIR}"/patches/${PN}-3.3-avoid_autoreconf.patch |
66 |
+) |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ # Record date to avoid 'config.status --recheck' & regen of 'tests/package.m4' |
70 |
+ touch -r configure.ac old.configure.ac || die |
71 |
+ touch -r configure old.configure || die |
72 |
+ |
73 |
+ default |
74 |
+ |
75 |
+ # Restore date after patching |
76 |
+ touch -r old.configure.ac configure.ac || die |
77 |
+ touch -r old.configure configure || die |
78 |
+ |
79 |
+ # The makefiles make the man page depend on the configure script |
80 |
+ # which we patched above. Touch it to prevent regeneration. |
81 |
+ touch doc/bison.1 || die #548778 #538300#9 |
82 |
+ |
83 |
+ # Avoid regenerating the info page when the timezone is diff. #574492 |
84 |
+ sed -i '2iexport TZ=UTC' build-aux/mdate-sh || die |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ use static && append-ldflags -static |
89 |
+ |
90 |
+ local myeconfargs=( |
91 |
+ --docdir='$(datarootdir)'/doc/${PF} |
92 |
+ $(use_enable examples) |
93 |
+ $(use_enable nls) |
94 |
+ ) |
95 |
+ econf "${myeconfargs[@]}" |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ default |
100 |
+ |
101 |
+ # This one is installed by dev-util/yacc |
102 |
+ mv "${ED%/}"/usr/bin/yacc{,.bison} || die |
103 |
+ mv "${ED%/}"/usr/share/man/man1/yacc{,.bison}.1 || die |
104 |
+ |
105 |
+ # We do not need liby.a |
106 |
+ rm -r "${ED%/}"/usr/lib* || die |
107 |
+ |
108 |
+ # Move to documentation directory and leave compressing for EAPI>=4 |
109 |
+ mv "${ED%/}"/usr/share/${PN}/README "${ED%/}"/usr/share/doc/${PF}/README.data |
110 |
+} |
111 |
+ |
112 |
+pkg_postinst() { |
113 |
+ local f="${EROOT%/}/usr/bin/yacc" |
114 |
+ if [[ ! -e ${f} ]] ; then |
115 |
+ ln -s yacc.bison "${f}" |
116 |
+ fi |
117 |
+} |
118 |
+ |
119 |
+pkg_postrm() { |
120 |
+ # clean up the dead symlink when we get unmerged #377469 |
121 |
+ local f="${EROOT%/}/usr/bin/yacc" |
122 |
+ if [[ -L ${f} && ! -e ${f} ]] ; then |
123 |
+ rm -f "${f}" |
124 |
+ fi |
125 |
+} |