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 B40B0138334 for ; Wed, 27 Feb 2019 04:33:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AE2FAE0845; Wed, 27 Feb 2019 04:32:59 +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 78764E0845 for ; Wed, 27 Feb 2019 04:32:59 +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 8687B335D02 for ; Wed, 27 Feb 2019 04:32:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F397354A for ; Wed, 27 Feb 2019 04:32:55 +0000 (UTC) From: "Aaron Bauman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aaron Bauman" Message-ID: <1551241834.cb4cd7feff3c370bae7a26034274efdc5c3caaa7.bman@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/btyacc/, dev-util/btyacc/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/btyacc/btyacc-3.0-r3.ebuild dev-util/btyacc/files/btyacc-3.0-includes.patch dev-util/btyacc/files/btyacc-3.0-makefile.patch X-VCS-Directories: dev-util/btyacc/files/ dev-util/btyacc/ X-VCS-Committer: bman X-VCS-Committer-Name: Aaron Bauman X-VCS-Revision: cb4cd7feff3c370bae7a26034274efdc5c3caaa7 X-VCS-Branch: master Date: Wed, 27 Feb 2019 04:32:55 +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: 7c3b7104-f3b3-49b5-ac34-0642ce4933a4 X-Archives-Hash: af205b0d007918a3efe23ed95389490c commit: cb4cd7feff3c370bae7a26034274efdc5c3caaa7 Author: Michael Mair-Keimberger gmail com> AuthorDate: Sat Aug 25 08:26:06 2018 +0000 Commit: Aaron Bauman gentoo org> CommitDate: Wed Feb 27 04:30:34 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb4cd7fe dev-util/btyacc: EAPI7 revbump, improve ebuild Closes: https://bugs.gentoo.org/664546 Signed-off-by: Michael Mair-Keimberger gmail.com> Closes: https://github.com/gentoo/gentoo/pull/9692 Signed-off-by: Aaron Bauman gentoo.org> dev-util/btyacc/btyacc-3.0-r3.ebuild | 43 +++++++++++++++++++++++++ dev-util/btyacc/files/btyacc-3.0-includes.patch | 4 +-- dev-util/btyacc/files/btyacc-3.0-makefile.patch | 4 +-- 3 files changed, 47 insertions(+), 4 deletions(-) diff --git a/dev-util/btyacc/btyacc-3.0-r3.ebuild b/dev-util/btyacc/btyacc-3.0-r3.ebuild new file mode 100644 index 00000000000..2de9c25574c --- /dev/null +++ b/dev-util/btyacc/btyacc-3.0-r3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +MY_P="${PN}-3-0" +DESCRIPTION="Backtracking YACC - modified from Berkeley YACC" +HOMEPAGE="http://www.siber.com/btyacc" +SRC_URI="http://www.siber.com/btyacc/${MY_P}.tar.gz" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-fbsd ~x86-linux ~ppc-macos ~x86-macos" + +S="${WORKDIR}" + +PATCHES=( + "${FILESDIR}/${P}-includes.patch" + "${FILESDIR}/${P}-makefile.patch" +) + +src_prepare() { + cp -av Makefile{,.orig} || die + default + # fix memory issue/glibc corruption + sed -i -e "s|len + 13|len + 14|" main.c || die "Could not fix main.c" + # Darwin doesn't do static binaries + if [[ ${CHOST} == *-darwin* ]]; then + sed -i -e 's/-static//' Makefile || die + fi +} + +src_compile() { + emake CC=$(tc-getCC) +} + +src_install() { + dobin btyacc + dodoc README README.BYACC + newman manpage btyacc.1 +} diff --git a/dev-util/btyacc/files/btyacc-3.0-includes.patch b/dev-util/btyacc/files/btyacc-3.0-includes.patch index a03f58fa386..e415574213e 100644 --- a/dev-util/btyacc/files/btyacc-3.0-includes.patch +++ b/dev-util/btyacc/files/btyacc-3.0-includes.patch @@ -1,5 +1,5 @@ ---- mstring.c -+++ mstring.c +--- a/mstring.c ++++ b/mstring.c @@ -1,6 +1,7 @@ #include #include diff --git a/dev-util/btyacc/files/btyacc-3.0-makefile.patch b/dev-util/btyacc/files/btyacc-3.0-makefile.patch index 884b49f46b9..60187256d1a 100644 --- a/dev-util/btyacc/files/btyacc-3.0-makefile.patch +++ b/dev-util/btyacc/files/btyacc-3.0-makefile.patch @@ -1,7 +1,7 @@ Respect CC, append to CFLAGS (but not -g), append to LDFLAGS, use system LD -jer ---- Makefile.orig 1999-07-15 19:40:12.000000000 +0200 -+++ Makefile 2009-09-04 15:27:15.000000000 +0200 +--- a/Makefile 1999-07-15 19:40:12.000000000 +0200 ++++ b/Makefile 2009-09-04 15:27:15.000000000 +0200 @@ -8,14 +8,13 @@ HDRS = defs.h mstring.h