Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/bison/
Date: Tue, 30 Oct 2018 12:38:27
Message-Id: 1540903093.fbcb6e00d15a73628d36f14c30c03cd59e93f9a2.polynomial-c@gentoo
1 commit: fbcb6e00d15a73628d36f14c30c03cd59e93f9a2
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 30 12:37:23 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 30 12:38:13 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbcb6e00
7
8 sys-devel/bison: Bump to version 3.2
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 sys-devel/bison/Manifest | 2 +
14 sys-devel/bison/bison-3.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 fdc161c9dee..74f765f9d90 100644
19 --- a/sys-devel/bison/Manifest
20 +++ b/sys-devel/bison/Manifest
21 @@ -4,3 +4,5 @@ DIST bison-3.0.5-patches-1.1.tar.xz 5188 BLAKE2B 437a202cfc2431a5fe9a31ea6bcce59
22 DIST bison-3.0.5.tar.xz 1954868 BLAKE2B b6a8b426304f414c1b7601e75dcae8a63847b71361fba2538ad5cc52f3527fe464b066add670a236d5e1d2aff65bbe7a99c282ee3c72a0bfaa498d40e3a50398 SHA512 00b448db8abe91b07e32ff5273c6617bc1350d806f92073a9472f4c2f0de5d22c152795674171b74f2eb9eff8d36f8173b82dacb215601bb071ae39404d4a8a2
23 DIST bison-3.1-patches-1.0.tar.xz 7268 BLAKE2B 9195c00be1706664762598926913cd8fc18a32a6ae6ae4ec58748d5e8fc4877f63258db51cbe3bf84f3345ea0fc7c27d2e1190632c529615d9e6922baef74915 SHA512 5569b7901b40ea01eb7bccdc1b090207bc1ea6c50d144b561b2725ae79f3bcd51e7ea4e8ea37b60ea50ff4882e82110a07986cba1d2397a0333e7e01ae466e79
24 DIST bison-3.1.tar.xz 1990536 BLAKE2B 6223642f2934927ca118410e2655f7c677bb1d3d981875ca2224f5aa344a43efbbbea34e79dff94ea489853e505b1d7f5920f4d159d1464ce61d8956ca0401ad SHA512 2a8e217ffb55ed5b1fcc989377ac348a066e62b8a4b0b0da40c3c7202f3ea487b2aab6a704a10b48d2d17673be0e22f6ff1be91fc05c4e0a57969b42a59d0152
25 +DIST bison-3.2-patches-01.tar.xz 7696 BLAKE2B 5a83c118204173a8c264a1e9ca929612c8c1cceea40c2f45057ed053c34087b0dbef0bd25d299e9c928c192a68d55b83687c54cf3cab7c28ed557b2eac12ad5a SHA512 5fe6d40ac1f388764989653a8f1289d1368b75952ffae271e015853dc5c70a85430573a3ab261cca8d498d87f590b1257c6e72a7adb72a51a5f3e3bc56d87ec2
26 +DIST bison-3.2.tar.xz 2088320 BLAKE2B dacdf492ca49e51d30cd134db763bd174612d3e49531325f524fc1af602ba11068abdc2fac18a3698cf0f24508b6297a437f9d7ab81639869840ca1348f0b012 SHA512 2ca555df9b25f0764698cb152269dc1c24816ffeb6f912c12d1c8d1cf067f73e63c953ab2040b4dd894e6cc46a0d5b2f7cdae0ad8303e40fcd687b42d7d91410
27
28 diff --git a/sys-devel/bison/bison-3.2.ebuild b/sys-devel/bison/bison-3.2.ebuild
29 new file mode 100644
30 index 00000000000..4de6feafecc
31 --- /dev/null
32 +++ b/sys-devel/bison/bison-3.2.ebuild
33 @@ -0,0 +1,92 @@
34 +# Copyright 1999-2018 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="${P}-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-2012 NEWS README THANKS TODO ) # 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.2-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 +}