From e9d044d4b9b71200a96adfa280848858c0f468c9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 13 Nov 2021 13:10:00 +0000 Subject: gentoo resync : 13.11.2021 --- dev-util/btyacc/btyacc-3.0-r4.ebuild | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 dev-util/btyacc/btyacc-3.0-r4.ebuild (limited to 'dev-util/btyacc/btyacc-3.0-r4.ebuild') diff --git a/dev-util/btyacc/btyacc-3.0-r4.ebuild b/dev-util/btyacc/btyacc-3.0-r4.ebuild new file mode 100644 index 000000000000..750243f22758 --- /dev/null +++ b/dev-util/btyacc/btyacc-3.0-r4.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2021 Gentoo Authors +# 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="https://www.siber.com/btyacc" +SRC_URI="https://www.siber.com/btyacc/${MY_P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux ~ppc-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" +} + +src_compile() { + emake CC=$(tc-getCC) +} + +src_install() { + dobin btyacc + dodoc README README.BYACC + newman manpage btyacc.1 +} -- cgit v1.2.3