From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A1B02138359 for ; Sat, 5 Sep 2020 17:58:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C8A4DE087A; Sat, 5 Sep 2020 17:58:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 90C55E087A for ; Sat, 5 Sep 2020 17:58:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E5E60340D7D for ; Sat, 5 Sep 2020 17:58:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 69F69335 for ; Sat, 5 Sep 2020 17:58:31 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1599328705.332d144e99865ec163da64f97f50ebf3a107c5d1.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/bison/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/bison/Manifest sys-devel/bison/bison-3.7.2.ebuild X-VCS-Directories: sys-devel/bison/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 332d144e99865ec163da64f97f50ebf3a107c5d1 X-VCS-Branch: master Date: Sat, 5 Sep 2020 17:58:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 57297cf1-86f7-4786-8695-9bc47cbaf912 X-Archives-Hash: 7cc417b1a8a1e89be024b93f09c7e112 commit: 332d144e99865ec163da64f97f50ebf3a107c5d1 Author: Thomas Deutschmann gentoo org> AuthorDate: Sat Sep 5 17:37:06 2020 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sat Sep 5 17:58:25 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=332d144e sys-devel/bison: bump to v3.7.2 Closes: https://bugs.gentoo.org/716516 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Thomas Deutschmann gentoo.org> sys-devel/bison/Manifest | 2 + sys-devel/bison/bison-3.7.2.ebuild | 92 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) diff --git a/sys-devel/bison/Manifest b/sys-devel/bison/Manifest index abcd30a5b3e..c8c816a2506 100644 --- a/sys-devel/bison/Manifest +++ b/sys-devel/bison/Manifest @@ -5,4 +5,6 @@ DIST bison-3.6.4.tar.xz 2472456 BLAKE2B d2efe7ff1a349efe5a8c79eb69aa296dbc7eb9fd DIST bison-3.7-patches-01.tar.xz 10468 BLAKE2B 62d422fa0654d6d3e9f829edcfb9a6f0eb5ae60997aa9362bbbe280fc95d86114ff9399586acfa94f2a52564b4f745ca778ce016f102e2981caefb96575f56e8 SHA512 2703963df71871b6e4973d79f69ee95aa6cc22c342d852f136b16d636f90285f6921064616db66f10f29dbfce884a23f79c005e7ceaaf9ccd9a2e1c749b337ac DIST bison-3.7.1-patches-01.tar.xz 11072 BLAKE2B e68dc42fdeebd9c530d04ba906fb49dec3f2df0a68186a54de9671564ee47f9adc9ca4cb167ddaa3e15458dd339570191b2fe6debb33fdf47f29d1a7aa8d868f SHA512 d167f5278cf3136a96450b2bd664b2563c94205d7c82298951b0b08a6b4b0733101e25636f905c8d4033b5e6d1aaaddab70b7772c28e8c1d6c31a05e23df7ce5 DIST bison-3.7.1.tar.xz 2605940 BLAKE2B a00e8af6a74100154d2dad1597c901f8473dbdcc57826eff947878c3568bfc9070d92857b3b3e349302e9fcfd67eb3287e7a04f6fcff3b897a6fecf43c1cd03d SHA512 9c4097b6ff26e819be14a9d4ef39f6f259c04627cd305e11da8e67897a369b2bba5ce96bf19fa5f6088670e90a9c5bc5c45172f8f482252aeec546b285dd0797 +DIST bison-3.7.2-patches-01.tar.xz 99572 BLAKE2B a135527cee592c63ba2398ce44a1c35e43deb61219120ce34ef81f4de26da771fdc71309256ddb02a5b9f13760073b4d89eba2d6bf0aae26a57bd904a83b1d7c SHA512 fd0826dca291c2098e26dee2e425420890a247282cf999479a6b6e54a79f75542980071d25c846f1e56cb2221a7c8d2286b2936cbd33f0f1e948f48b8891f592 +DIST bison-3.7.2.tar.xz 2613404 BLAKE2B 7543c7df4496fbe6b9ab18ffb643a0d58eb63d0d1e91d67eaa6f9a7c805180c1cef02a640fd41eec228782a6758f82058dc4a45c13e3730b740883efad77498d SHA512 42eb501c246e9b4b24cb212c8da538b11b1944b997314105e67f88f22d73b7d00cf19b21e086aa7523630a2a24e1fd70a89d85a7e3003783990e08d31f711a27 DIST bison-3.7.tar.xz 2601220 BLAKE2B 3ac140048baacebce47a9090e916815e6c30d9c8b0f9fe61a3724b46fbfddf5b8bf94be2bc533a718d84bdc8c73d579b5e43d576efd488a6f5b52424883bc5cf SHA512 f6c8f1522849b65046844bd51953b4f1e2c32818d8bca0b8e4a1035e72d6731d8a66bc307d4b20d1a576cac6cbe10aa1c66829112327f37938ace165e154ba6a diff --git a/sys-devel/bison/bison-3.7.2.ebuild b/sys-devel/bison/bison-3.7.2.ebuild new file mode 100644 index 00000000000..cf2ebd48fe9 --- /dev/null +++ b/sys-devel/bison/bison-3.7.2.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic + +PATCH_TAR="${PN}-3.7.2-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 + mirror://gentoo/${PATCH_TAR} + 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 ~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" +IUSE="examples nls static test" +RESTRICT="!test? ( test )" + +RDEPEND=">=sys-devel/m4-1.4.16" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-devel/flex + >=sys-devel/gettext-0.21 + examples? ( 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.5-optional-perl.patch #538300 + "${WORKDIR}"/patches/${PN}-3.7.2-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=( + $(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 +} + +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 +}