From ac853406ad8adb3fad2f53d6e2970b64cf58eb7d Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Tue, 19 Oct 2021 09:50:45 +0200 Subject: [PATCH] sys-devel/bison: Sync with gentoo It's from gentoo commit 05ac71ce6639a14df6af2f05db1c57d147fd0f19. The updated sys-apps/gawk started to depend on a newer version of sys-devel/bison, so update the latter too. --- .../portage-stable/sys-devel/bison/Manifest | 11 +-- .../sys-devel/bison/bison-3.1.ebuild | 89 ----------------- .../sys-devel/bison/bison-3.2.4.ebuild | 92 ------------------ .../sys-devel/bison/bison-3.3.2.ebuild | 92 ------------------ ...{bison-3.3.1.ebuild => bison-3.7.6.ebuild} | 47 +++++---- .../sys-devel/bison/bison-3.8.1.ebuild | 96 +++++++++++++++++++ .../sys-devel/bison/bison-3.8.2.ebuild | 96 +++++++++++++++++++ .../sys-devel/bison/metadata.xml | 2 +- 8 files changed, 220 insertions(+), 305 deletions(-) delete mode 100644 sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.1.ebuild delete mode 100644 sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.2.4.ebuild delete mode 100644 sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.3.2.ebuild rename sdk_container/src/third_party/portage-stable/sys-devel/bison/{bison-3.3.1.ebuild => bison-3.7.6.ebuild} (58%) create mode 100644 sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.8.1.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.8.2.ebuild diff --git a/sdk_container/src/third_party/portage-stable/sys-devel/bison/Manifest b/sdk_container/src/third_party/portage-stable/sys-devel/bison/Manifest index 68022917ce..60fc54129f 100644 --- a/sdk_container/src/third_party/portage-stable/sys-devel/bison/Manifest +++ b/sdk_container/src/third_party/portage-stable/sys-devel/bison/Manifest @@ -1,7 +1,4 @@ -DIST bison-3.1-patches-1.0.tar.xz 7268 BLAKE2B 9195c00be1706664762598926913cd8fc18a32a6ae6ae4ec58748d5e8fc4877f63258db51cbe3bf84f3345ea0fc7c27d2e1190632c529615d9e6922baef74915 SHA512 5569b7901b40ea01eb7bccdc1b090207bc1ea6c50d144b561b2725ae79f3bcd51e7ea4e8ea37b60ea50ff4882e82110a07986cba1d2397a0333e7e01ae466e79 -DIST bison-3.1.tar.xz 1990536 BLAKE2B 6223642f2934927ca118410e2655f7c677bb1d3d981875ca2224f5aa344a43efbbbea34e79dff94ea489853e505b1d7f5920f4d159d1464ce61d8956ca0401ad SHA512 2a8e217ffb55ed5b1fcc989377ac348a066e62b8a4b0b0da40c3c7202f3ea487b2aab6a704a10b48d2d17673be0e22f6ff1be91fc05c4e0a57969b42a59d0152 -DIST bison-3.2.3-patches-01.tar.xz 9460 BLAKE2B 3e9f3e636d774d005c861c4f5fe121a862cbfc38f5efd5bb7ac7d2944f71e80eabd6621f3f5507d9f78727f22b574581c9b694457c63b5181a8cc1a0ac69d294 SHA512 6c599583b67f8999c8e2c8492a19ad0b43bbadef1d9c062c752e7c1cc3d178c2106262c70c998a0588bc6255ec27b2623a90267e0858e2d776ac2f4cf6cb688f -DIST bison-3.2.4.tar.xz 2094568 BLAKE2B 9b7617b25f1b151c3b86a5f57e733543160fb40f992ff968eaadfc91d8f1a67f56d0afeafbed5003ea1a5e0c861b12ef4cc27065d1b6cbc1d0845710164d84e2 SHA512 652b54fdee969bbc17eeb04d05d65f143e8e0e1b46ac2574e3a76687b9bd916c9a0c97658b4f8357958d64e87fe2a6a2a98a6c312970f0e74fb4445962e9daae -DIST bison-3.3-patches-01.tar.xz 10768 BLAKE2B 6b4df80d0cf6ff3445019bbc66063b794731d2c9869b20b0ace3ed9500e7ea4a30685a4084717871a68838b31392a90d2e1b52ef01eb2f62ea420e513268652c SHA512 32accc5a9e7b18b8dd98c73e5da50018be68effed9b69ed4d30604c7e7ba4495eef54b7882c3fe32bdeffb9278165ac2b5f3164b7c122e2001e4dd60ac2f4d1a -DIST bison-3.3.1.tar.xz 2106048 BLAKE2B 998ab8cd014e0dde5a9a709ec8505e51ac5a85f3f88eb5c1a8dda7d2f1a8d82fbe6bd75b06b7a8ca3c67072f1ad09997c559a7584c443174165408f6200276ab SHA512 8901a97adda0d6d62c06e85d12645b35fa624c9f05e40250c1bb387d5524ac52c2b7de0402ab970f6ccfaf99c9bb5356873daa20cdd0c37d73b4a6ed7b98c44f -DIST bison-3.3.2.tar.xz 2108612 BLAKE2B 84cf59c02ff4ba34c052ef2539cde8d5932145ab21b63c879eeb32d183cadba6cb6209278090e38f3f03085e58ad1fff71248e5729513d8dffdcc14e8f924dfc SHA512 63c67291ea1bd00f4412fc589ffb891ede3e2577253016a9a185e00fb2d702371f3862486639a8f52f8a887f340a639575ff3b7ba93c152170cbfd8c9585c1dc +DIST bison-3.7.6-patches-01.tar.xz 10600 BLAKE2B c7907a327c2bbb82a2e575a864e71400f91cd4349a84f95b187ecaadefc1bfd595a91bce6c8c47e42423cace9cf78a4041fde3fdc489a4824aa3c10ca73be7cb SHA512 8f2ddee79b9678b9fd9a7a34f26d44f7c4472d0fc55c9fef8b418d27949b6a27309b7aa5ac3f4a5ad27c90ad7d92d824ffe767c77b0ed81de6b2897c91cd7560 +DIST bison-3.7.6.tar.xz 2627180 BLAKE2B 2f1015b517e46ff0870378b4d0dd489c8c737f31b2b69146bd7fbbae1e3adcdff0e4837cfdf1d238e8660ecc2b310ce87ec8940ed4989278b3df6cbb2d464e54 SHA512 6c1c9b825fbd2c94b8903f03a7e68e6832599f7bbd8d3c49864537c11b038c45a15de02fd36128d662af314334c83515bbc132df84e9acc6c651e98649c65bad +DIST bison-3.8.1.tar.xz 2800372 BLAKE2B 0b70ee1b3ab8075540d9254cffdc1dfc9a9fb354d8b9b79dd3b097bf9a2235f892e120736e4195ad21ce8fbf3831c63b2d1a267a20a7abf85f0d72cdcdac1820 SHA512 f87978c41eca4db22de4f64feb3be92e44862d412f75dd84980045faf0f9e7f5a41b25bef8d4acd90743638eab61a7ac111444969d958fef5fe3535bac416921 +DIST bison-3.8.2.tar.xz 2817324 BLAKE2B e211b61494c911f55b72a8b70b5a48cdf4000ce9e675a1f1f52735bb8f57d93a3f8075341451263af9c9c531004907ae2b62b1873e7e4664c2cd26fa3b12271c SHA512 d4d23af6671406e97257892f90651b67f2ab95219831372be032190b7156c10a3435d457857e677445df8b2327aacccc15344acbbc3808a6f332a93cce23b444 diff --git a/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.1.ebuild b/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.1.ebuild deleted file mode 100644 index be1712c544..0000000000 --- a/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.1.ebuild +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit flag-o-matic - -DESCRIPTION="A general-purpose (yacc-compatible) parser generator" -HOMEPAGE="https://www.gnu.org/software/bison/" -SRC_URI="mirror://gnu/${PN}/${P}.tar.xz - https://dev.gentoo.org/~whissi/dist/bison/${P}-patches-1.0.tar.xz" - -LICENSE="GPL-2" -SLOT="0" -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" -IUSE="examples nls static test" - -RDEPEND=">=sys-devel/m4-1.4.16" -DEPEND="${RDEPEND} - sys-devel/flex - examples? ( dev-lang/perl ) - nls? ( sys-devel/gettext ) - test? ( dev-lang/perl )" - -DOCS=( AUTHORS ChangeLog-2012 NEWS README THANKS TODO ) # ChangeLog-1998 PACKAGING README-alpha README-release - -PATCHES=( - "${WORKDIR}"/patches/${P}-optional-perl.patch #538300 - "${WORKDIR}"/patches/${P}-avoid_autoreconf.patch -) - -src_prepare() { - # Record date to avoid 'config.status --recheck' & regen of 'tests/package.m4' - touch -r configure.ac old.configure.ac || die - touch -r configure old.configure || die - - default - - # Restore date after patching - touch -r old.configure.ac configure.ac || die - touch -r old.configure configure || die - - # The makefiles make the man page depend on the configure script - # which we patched above. Touch it to prevent regeneration. - touch doc/bison.1 || die #548778 #538300#9 - - # Avoid regenerating the info page when the timezone is diff. #574492 - sed -i '2iexport TZ=UTC' build-aux/mdate-sh || die -} - -src_configure() { - use static && append-ldflags -static - - local myeconfargs=( - --docdir='$(datarootdir)'/doc/${PF} - $(use_enable examples) - $(use_enable nls) - ) - econf "${myeconfargs[@]}" -} - -src_install() { - default - - # This one is installed by dev-util/yacc - mv "${ED%/}"/usr/bin/yacc{,.bison} || die - mv "${ED%/}"/usr/share/man/man1/yacc{,.bison}.1 || die - - # We do not need liby.a - rm -r "${ED%/}"/usr/lib* || die - - # Move to documentation directory and leave compressing for EAPI>=4 - mv "${ED%/}"/usr/share/${PN}/README "${ED%/}"/usr/share/doc/${PF}/README.data -} - -pkg_postinst() { - local f="${EROOT%/}/usr/bin/yacc" - if [[ ! -e ${f} ]] ; then - ln -s yacc.bison "${f}" - fi -} - -pkg_postrm() { - # clean up the dead symlink when we get unmerged #377469 - local f="${EROOT%/}/usr/bin/yacc" - if [[ -L ${f} && ! -e ${f} ]] ; then - rm -f "${f}" - fi -} diff --git a/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.2.4.ebuild b/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.2.4.ebuild deleted file mode 100644 index 4d3d12b7fd..0000000000 --- a/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.2.4.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit flag-o-matic - -PATCHES="${PN}-3.2.3-patches-01.tar.xz" - -DESCRIPTION="A general-purpose (yacc-compatible) parser generator" -HOMEPAGE="https://www.gnu.org/software/bison/" -SRC_URI="mirror://gnu/${PN}/${P}.tar.xz - https://dev.gentoo.org/~whissi/dist/bison/${PATCHES} - https://dev.gentoo.org/~polynomial-c/dist/bison/${PATCHES}" - -LICENSE="GPL-2" -SLOT="0" -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" -IUSE="examples nls static test" - -RDEPEND=">=sys-devel/m4-1.4.16" -DEPEND="${RDEPEND} - sys-devel/flex - examples? ( dev-lang/perl ) - nls? ( sys-devel/gettext ) - test? ( dev-lang/perl )" - -DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) # ChangeLog-2012 ChangeLog-1998 PACKAGING README-alpha README-release - -PATCHES=( - "${WORKDIR}"/patches/${PN}-3.1-optional-perl.patch #538300 - "${WORKDIR}"/patches/${PN}-3.2.3-avoid_autoreconf.patch -) - -src_prepare() { - # Record date to avoid 'config.status --recheck' & regen of 'tests/package.m4' - touch -r configure.ac old.configure.ac || die - touch -r configure old.configure || die - - default - - # Restore date after patching - touch -r old.configure.ac configure.ac || die - touch -r old.configure configure || die - - # The makefiles make the man page depend on the configure script - # which we patched above. Touch it to prevent regeneration. - touch doc/bison.1 || die #548778 #538300#9 - - # Avoid regenerating the info page when the timezone is diff. #574492 - sed -i '2iexport TZ=UTC' build-aux/mdate-sh || die -} - -src_configure() { - use static && append-ldflags -static - - local myeconfargs=( - --docdir='$(datarootdir)'/doc/${PF} - $(use_enable examples) - $(use_enable nls) - ) - econf "${myeconfargs[@]}" -} - -src_install() { - default - - # This one is installed by dev-util/yacc - mv "${ED%/}"/usr/bin/yacc{,.bison} || die - mv "${ED%/}"/usr/share/man/man1/yacc{,.bison}.1 || die - - # We do not need liby.a - rm -r "${ED%/}"/usr/lib* || die - - # Move to documentation directory and leave compressing for EAPI>=4 - mv "${ED%/}"/usr/share/${PN}/README "${ED%/}"/usr/share/doc/${PF}/README.data -} - -pkg_postinst() { - local f="${EROOT%/}/usr/bin/yacc" - if [[ ! -e ${f} ]] ; then - ln -s yacc.bison "${f}" - fi -} - -pkg_postrm() { - # clean up the dead symlink when we get unmerged #377469 - local f="${EROOT%/}/usr/bin/yacc" - if [[ -L ${f} && ! -e ${f} ]] ; then - rm -f "${f}" - fi -} diff --git a/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.3.2.ebuild b/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.3.2.ebuild deleted file mode 100644 index ca879edb24..0000000000 --- a/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.3.2.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit flag-o-matic - -PATCHES="${PN}-3.3-patches-01.tar.xz" - -DESCRIPTION="A general-purpose (yacc-compatible) parser generator" -HOMEPAGE="https://www.gnu.org/software/bison/" -SRC_URI="mirror://gnu/${PN}/${P}.tar.xz - https://dev.gentoo.org/~whissi/dist/bison/${PATCHES} - https://dev.gentoo.org/~polynomial-c/dist/bison/${PATCHES}" - -LICENSE="GPL-2" -SLOT="0" -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" -IUSE="examples nls static test" - -RDEPEND=">=sys-devel/m4-1.4.16" -DEPEND="${RDEPEND} - sys-devel/flex - examples? ( dev-lang/perl ) - nls? ( sys-devel/gettext ) - test? ( dev-lang/perl )" - -DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) # ChangeLog-2012 ChangeLog-1998 PACKAGING README-alpha README-release - -PATCHES=( - "${WORKDIR}"/patches/${PN}-3.1-optional-perl.patch #538300 - "${WORKDIR}"/patches/${PN}-3.3-avoid_autoreconf.patch -) - -src_prepare() { - # Record date to avoid 'config.status --recheck' & regen of 'tests/package.m4' - touch -r configure.ac old.configure.ac || die - touch -r configure old.configure || die - - default - - # Restore date after patching - touch -r old.configure.ac configure.ac || die - touch -r old.configure configure || die - - # The makefiles make the man page depend on the configure script - # which we patched above. Touch it to prevent regeneration. - touch doc/bison.1 || die #548778 #538300#9 - - # Avoid regenerating the info page when the timezone is diff. #574492 - sed -i '2iexport TZ=UTC' build-aux/mdate-sh || die -} - -src_configure() { - use static && append-ldflags -static - - local myeconfargs=( - --docdir='$(datarootdir)'/doc/${PF} - $(use_enable examples) - $(use_enable nls) - ) - econf "${myeconfargs[@]}" -} - -src_install() { - default - - # This one is installed by dev-util/yacc - mv "${ED%/}"/usr/bin/yacc{,.bison} || die - mv "${ED%/}"/usr/share/man/man1/yacc{,.bison}.1 || die - - # We do not need liby.a - rm -r "${ED%/}"/usr/lib* || die - - # Move to documentation directory and leave compressing for EAPI>=4 - mv "${ED%/}"/usr/share/${PN}/README "${ED%/}"/usr/share/doc/${PF}/README.data -} - -pkg_postinst() { - local f="${EROOT%/}/usr/bin/yacc" - if [[ ! -e ${f} ]] ; then - ln -s yacc.bison "${f}" - fi -} - -pkg_postrm() { - # clean up the dead symlink when we get unmerged #377469 - local f="${EROOT%/}/usr/bin/yacc" - if [[ -L ${f} && ! -e ${f} ]] ; then - rm -f "${f}" - fi -} diff --git a/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.3.1.ebuild b/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.7.6.ebuild similarity index 58% rename from sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.3.1.ebuild rename to sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.7.6.ebuild index ca879edb24..a9e566e5e6 100644 --- a/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.3.1.ebuild +++ b/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.7.6.ebuild @@ -1,42 +1,45 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="6" +EAPI=7 inherit flag-o-matic -PATCHES="${PN}-3.3-patches-01.tar.xz" +PATCH_TAR="${PN}-3.7.6-patches-01.tar.xz" DESCRIPTION="A general-purpose (yacc-compatible) parser generator" HOMEPAGE="https://www.gnu.org/software/bison/" SRC_URI="mirror://gnu/${PN}/${P}.tar.xz - https://dev.gentoo.org/~whissi/dist/bison/${PATCHES} - https://dev.gentoo.org/~polynomial-c/dist/bison/${PATCHES}" + https://dev.gentoo.org/~whissi/dist/bison/${PATCH_TAR} + https://dev.gentoo.org/~polynomial-c/dist/bison/${PATCH_TAR}" LICENSE="GPL-2" SLOT="0" -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" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="examples nls static test" +RESTRICT="!test? ( test )" -RDEPEND=">=sys-devel/m4-1.4.16" -DEPEND="${RDEPEND} +# gettext _IS_ required in RDEPEND because >=bison-3.7 links against +# libtextstyle.so!!! (see bug #740754) +DEPEND=" + >=sys-devel/m4-1.4.16 + >=sys-devel/gettext-0.21 +" +RDEPEND="${DEPEND}" +BDEPEND=" sys-devel/flex examples? ( dev-lang/perl ) - nls? ( sys-devel/gettext ) - test? ( dev-lang/perl )" + test? ( dev-lang/perl ) +" DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) # ChangeLog-2012 ChangeLog-1998 PACKAGING README-alpha README-release -PATCHES=( - "${WORKDIR}"/patches/${PN}-3.1-optional-perl.patch #538300 - "${WORKDIR}"/patches/${PN}-3.3-avoid_autoreconf.patch -) - src_prepare() { # Record date to avoid 'config.status --recheck' & regen of 'tests/package.m4' touch -r configure.ac old.configure.ac || die touch -r configure old.configure || die + eapply "${WORKDIR}"/patches default # Restore date after patching @@ -55,7 +58,6 @@ src_configure() { use static && append-ldflags -static local myeconfargs=( - --docdir='$(datarootdir)'/doc/${PF} $(use_enable examples) $(use_enable nls) ) @@ -66,18 +68,15 @@ src_install() { default # This one is installed by dev-util/yacc - mv "${ED%/}"/usr/bin/yacc{,.bison} || die - mv "${ED%/}"/usr/share/man/man1/yacc{,.bison}.1 || die + mv "${ED}"/usr/bin/yacc{,.bison} || die + mv "${ED}"/usr/share/man/man1/yacc{,.bison}.1 || die # We do not need liby.a - rm -r "${ED%/}"/usr/lib* || die - - # Move to documentation directory and leave compressing for EAPI>=4 - mv "${ED%/}"/usr/share/${PN}/README "${ED%/}"/usr/share/doc/${PF}/README.data + rm -r "${ED}"/usr/lib* || die } pkg_postinst() { - local f="${EROOT%/}/usr/bin/yacc" + local f="${EROOT}/usr/bin/yacc" if [[ ! -e ${f} ]] ; then ln -s yacc.bison "${f}" fi @@ -85,7 +84,7 @@ pkg_postinst() { pkg_postrm() { # clean up the dead symlink when we get unmerged #377469 - local f="${EROOT%/}/usr/bin/yacc" + local f="${EROOT}/usr/bin/yacc" if [[ -L ${f} && ! -e ${f} ]] ; then rm -f "${f}" fi diff --git a/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.8.1.ebuild b/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.8.1.ebuild new file mode 100644 index 0000000000..21002c007b --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.8.1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic + +DESCRIPTION="A general-purpose (yacc-compatible) parser generator" +HOMEPAGE="https://www.gnu.org/software/bison/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="examples nls static test" +RESTRICT="!test? ( test )" + +# gettext _IS_ required in RDEPEND because >=bison-3.7 links against +# libtextstyle.so!!! (see bug #740754) +DEPEND=" + >=sys-devel/m4-1.4.16 + >=sys-devel/gettext-0.21 +" +RDEPEND="${DEPEND}" +BDEPEND=" + sys-devel/flex + test? ( dev-lang/perl ) +" + +DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) # ChangeLog-2012 ChangeLog-1998 PACKAGING README-alpha README-release + +src_prepare() { + # Old logic when we needed to patch configure.ac + # Keeping in case it's useful for future + + # Record date to avoid 'config.status --recheck' & regen of 'tests/package.m4' + #touch -r configure.ac old.configure.ac || die + #touch -r configure old.configure || die + + #eapply "${WORKDIR}"/patches + #default + + # Restore date after patching + #touch -r old.configure.ac configure.ac || die + #touch -r old.configure configure || die + + # The makefiles make the man page depend on the configure script + # which we patched above. Touch it to prevent regeneration. + #touch doc/bison.1 || die #548778 #538300#9 + + default + + # Avoid regenerating the info page when the timezone is diff. #574492 + sed -i '2iexport TZ=UTC' build-aux/mdate-sh || die +} + +src_configure() { + use static && append-ldflags -static + + local myeconfargs=( + $(use_enable nls) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + # This one is installed by dev-util/yacc + mv "${ED}"/usr/bin/yacc{,.bison} || die + mv "${ED}"/usr/share/man/man1/yacc{,.bison}.1 || die + + # We do not need liby.a + rm -r "${ED}"/usr/lib* || die + + # Examples are about 200K, so let's make them optional still for now. + if ! use examples ; then + rm -r "${ED}"/usr/share/doc/${PF}/examples/ || die + fi +} + +pkg_postinst() { + local f="${EROOT}/usr/bin/yacc" + if [[ ! -e ${f} ]] ; then + ln -s yacc.bison "${f}" + fi +} + +pkg_postrm() { + # clean up the dead symlink when we get unmerged #377469 + local f="${EROOT}/usr/bin/yacc" + if [[ -L ${f} && ! -e ${f} ]] ; then + rm -f "${f}" + fi +} diff --git a/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.8.2.ebuild b/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.8.2.ebuild new file mode 100644 index 0000000000..21002c007b --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-devel/bison/bison-3.8.2.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic + +DESCRIPTION="A general-purpose (yacc-compatible) parser generator" +HOMEPAGE="https://www.gnu.org/software/bison/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="examples nls static test" +RESTRICT="!test? ( test )" + +# gettext _IS_ required in RDEPEND because >=bison-3.7 links against +# libtextstyle.so!!! (see bug #740754) +DEPEND=" + >=sys-devel/m4-1.4.16 + >=sys-devel/gettext-0.21 +" +RDEPEND="${DEPEND}" +BDEPEND=" + sys-devel/flex + test? ( dev-lang/perl ) +" + +DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) # ChangeLog-2012 ChangeLog-1998 PACKAGING README-alpha README-release + +src_prepare() { + # Old logic when we needed to patch configure.ac + # Keeping in case it's useful for future + + # Record date to avoid 'config.status --recheck' & regen of 'tests/package.m4' + #touch -r configure.ac old.configure.ac || die + #touch -r configure old.configure || die + + #eapply "${WORKDIR}"/patches + #default + + # Restore date after patching + #touch -r old.configure.ac configure.ac || die + #touch -r old.configure configure || die + + # The makefiles make the man page depend on the configure script + # which we patched above. Touch it to prevent regeneration. + #touch doc/bison.1 || die #548778 #538300#9 + + default + + # Avoid regenerating the info page when the timezone is diff. #574492 + sed -i '2iexport TZ=UTC' build-aux/mdate-sh || die +} + +src_configure() { + use static && append-ldflags -static + + local myeconfargs=( + $(use_enable nls) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + # This one is installed by dev-util/yacc + mv "${ED}"/usr/bin/yacc{,.bison} || die + mv "${ED}"/usr/share/man/man1/yacc{,.bison}.1 || die + + # We do not need liby.a + rm -r "${ED}"/usr/lib* || die + + # Examples are about 200K, so let's make them optional still for now. + if ! use examples ; then + rm -r "${ED}"/usr/share/doc/${PF}/examples/ || die + fi +} + +pkg_postinst() { + local f="${EROOT}/usr/bin/yacc" + if [[ ! -e ${f} ]] ; then + ln -s yacc.bison "${f}" + fi +} + +pkg_postrm() { + # clean up the dead symlink when we get unmerged #377469 + local f="${EROOT}/usr/bin/yacc" + if [[ -L ${f} && ! -e ${f} ]] ; then + rm -f "${f}" + fi +} diff --git a/sdk_container/src/third_party/portage-stable/sys-devel/bison/metadata.xml b/sdk_container/src/third_party/portage-stable/sys-devel/bison/metadata.xml index 56c1244130..73dda144f9 100644 --- a/sdk_container/src/third_party/portage-stable/sys-devel/bison/metadata.xml +++ b/sdk_container/src/third_party/portage-stable/sys-devel/bison/metadata.xml @@ -1,5 +1,5 @@ - + base-system@gentoo.org