1 |
commit: 8e9892f5a71d61a65f78478ac92c580009ce9303 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 22 00:46:49 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 22 00:47:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e9892f5 |
7 |
|
8 |
sys-devel/bison: Bump to version 3.2.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-devel/bison/Manifest | 2 + |
14 |
sys-devel/bison/bison-3.2.2.ebuild | 92 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 94 insertions(+) |
16 |
|
17 |
diff --git a/sys-devel/bison/Manifest b/sys-devel/bison/Manifest |
18 |
index 5ffc8e248ed..166e908f985 100644 |
19 |
--- a/sys-devel/bison/Manifest |
20 |
+++ b/sys-devel/bison/Manifest |
21 |
@@ -5,4 +5,6 @@ DIST bison-3.1.tar.xz 1990536 BLAKE2B 6223642f2934927ca118410e2655f7c677bb1d3d98 |
22 |
DIST bison-3.2-patches-01.tar.xz 7696 BLAKE2B 5a83c118204173a8c264a1e9ca929612c8c1cceea40c2f45057ed053c34087b0dbef0bd25d299e9c928c192a68d55b83687c54cf3cab7c28ed557b2eac12ad5a SHA512 5fe6d40ac1f388764989653a8f1289d1368b75952ffae271e015853dc5c70a85430573a3ab261cca8d498d87f590b1257c6e72a7adb72a51a5f3e3bc56d87ec2 |
23 |
DIST bison-3.2.1-patches-01.tar.xz 8232 BLAKE2B 84be6854bc26cdf1308c466257ba03b0a8cfffd668332454a59311239347f6bd83fb53a742ad85d06b607c45c9f0d1498a53fca9cb82595406f760ce362d3761 SHA512 b0a5b37bd0e9bf09ef742f2b3b4b06d0954a66f411f87975e023468b8705dc31e58bd365cb501a1c53777cf98c05b5473bf12f034a55b8b99066202a382d196d |
24 |
DIST bison-3.2.1.tar.xz 2091684 BLAKE2B f2cfb1ec96dc0c5daf71a78348c8b4cb212262c00fa7f4474fd5634dd88bfe76b2ff63c9bb047d7b7eb42490bb188c5cb1db8cb1b9caa8972f9771bcbd74acce SHA512 2f6382d276d37f513a4cbb5badd8ac45a7f936e075ccd0d55e5a27802538fd2fdda24b7dc780d006eca0da499b264817a7aa6901bf423666bb34e86d3a180a52 |
25 |
+DIST bison-3.2.2-patches-01.tar.xz 9300 BLAKE2B ce48cd493d6fd5767b76125599c8c603c64ebd16772896cef14fd623386d5e3cf98f184892e7916840d1033c3059f6c175434e6aed304eb1061e316ca073e190 SHA512 54419279dbe3d0080a63e3e3dd862f2046ced266a4cc0b06f545295719210ed07bfed01efc2109a8208689408a103686967bc4e193bffd3de696af4b8350a7e0 |
26 |
+DIST bison-3.2.2.tar.xz 2091244 BLAKE2B 09448b6af67e05a2cc5011eb9de987473cdaa1a9d387baf0df876811ba052682fcf24df06c0d26fe019ce75a194e1f046f0e6f0ab6b895cf28b3d4f75f0c9091 SHA512 b1a49f5c987f1b39febb6b9557d5bafd0ab4952f4e9b9c3ad7650210643ba3bbf365367bf1736f396c1b881b13fff52a69409198fad5a4120c19f29c0fb4e2f1 |
27 |
DIST bison-3.2.tar.xz 2088320 BLAKE2B dacdf492ca49e51d30cd134db763bd174612d3e49531325f524fc1af602ba11068abdc2fac18a3698cf0f24508b6297a437f9d7ab81639869840ca1348f0b012 SHA512 2ca555df9b25f0764698cb152269dc1c24816ffeb6f912c12d1c8d1cf067f73e63c953ab2040b4dd894e6cc46a0d5b2f7cdae0ad8303e40fcd687b42d7d91410 |
28 |
|
29 |
diff --git a/sys-devel/bison/bison-3.2.2.ebuild b/sys-devel/bison/bison-3.2.2.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..c70a4d81f8f |
32 |
--- /dev/null |
33 |
+++ b/sys-devel/bison/bison-3.2.2.ebuild |
34 |
@@ -0,0 +1,92 @@ |
35 |
+# Copyright 1999-2018 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI="6" |
39 |
+ |
40 |
+inherit flag-o-matic |
41 |
+ |
42 |
+PATCHES="${P}-patches-01.tar.xz" |
43 |
+ |
44 |
+DESCRIPTION="A general-purpose (yacc-compatible) parser generator" |
45 |
+HOMEPAGE="https://www.gnu.org/software/bison/" |
46 |
+SRC_URI="mirror://gnu/${PN}/${P}.tar.xz |
47 |
+ https://dev.gentoo.org/~whissi/dist/bison/${PATCHES} |
48 |
+ https://dev.gentoo.org/~polynomial-c/dist/bison/${PATCHES}" |
49 |
+ |
50 |
+LICENSE="GPL-2" |
51 |
+SLOT="0" |
52 |
+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" |
53 |
+IUSE="examples nls static test" |
54 |
+ |
55 |
+RDEPEND=">=sys-devel/m4-1.4.16" |
56 |
+DEPEND="${RDEPEND} |
57 |
+ sys-devel/flex |
58 |
+ examples? ( dev-lang/perl ) |
59 |
+ nls? ( sys-devel/gettext ) |
60 |
+ test? ( dev-lang/perl )" |
61 |
+ |
62 |
+DOCS=( AUTHORS ChangeLog-2012 NEWS README THANKS TODO ) # ChangeLog-1998 PACKAGING README-alpha README-release |
63 |
+ |
64 |
+PATCHES=( |
65 |
+ "${WORKDIR}"/patches/${PN}-3.1-optional-perl.patch #538300 |
66 |
+ "${WORKDIR}"/patches/${P}-avoid_autoreconf.patch |
67 |
+) |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ # Record date to avoid 'config.status --recheck' & regen of 'tests/package.m4' |
71 |
+ touch -r configure.ac old.configure.ac || die |
72 |
+ touch -r configure old.configure || die |
73 |
+ |
74 |
+ default |
75 |
+ |
76 |
+ # Restore date after patching |
77 |
+ touch -r old.configure.ac configure.ac || die |
78 |
+ touch -r old.configure configure || die |
79 |
+ |
80 |
+ # The makefiles make the man page depend on the configure script |
81 |
+ # which we patched above. Touch it to prevent regeneration. |
82 |
+ touch doc/bison.1 || die #548778 #538300#9 |
83 |
+ |
84 |
+ # Avoid regenerating the info page when the timezone is diff. #574492 |
85 |
+ sed -i '2iexport TZ=UTC' build-aux/mdate-sh || die |
86 |
+} |
87 |
+ |
88 |
+src_configure() { |
89 |
+ use static && append-ldflags -static |
90 |
+ |
91 |
+ local myeconfargs=( |
92 |
+ --docdir='$(datarootdir)'/doc/${PF} |
93 |
+ $(use_enable examples) |
94 |
+ $(use_enable nls) |
95 |
+ ) |
96 |
+ econf "${myeconfargs[@]}" |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ default |
101 |
+ |
102 |
+ # This one is installed by dev-util/yacc |
103 |
+ mv "${ED%/}"/usr/bin/yacc{,.bison} || die |
104 |
+ mv "${ED%/}"/usr/share/man/man1/yacc{,.bison}.1 || die |
105 |
+ |
106 |
+ # We do not need liby.a |
107 |
+ rm -r "${ED%/}"/usr/lib* || die |
108 |
+ |
109 |
+ # Move to documentation directory and leave compressing for EAPI>=4 |
110 |
+ mv "${ED%/}"/usr/share/${PN}/README "${ED%/}"/usr/share/doc/${PF}/README.data |
111 |
+} |
112 |
+ |
113 |
+pkg_postinst() { |
114 |
+ local f="${EROOT%/}/usr/bin/yacc" |
115 |
+ if [[ ! -e ${f} ]] ; then |
116 |
+ ln -s yacc.bison "${f}" |
117 |
+ fi |
118 |
+} |
119 |
+ |
120 |
+pkg_postrm() { |
121 |
+ # clean up the dead symlink when we get unmerged #377469 |
122 |
+ local f="${EROOT%/}/usr/bin/yacc" |
123 |
+ if [[ -L ${f} && ! -e ${f} ]] ; then |
124 |
+ rm -f "${f}" |
125 |
+ fi |
126 |
+} |