Install this version:
emerge -a =dev-util/btyacc-3.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/btyacc-3.0
Or alternatively:
emerge --autounmask-write -a =dev-util/btyacc-3.0
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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"
S="${WORKDIR}"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
PATCHES=(
"${FILESDIR}/${P}-includes.patch"
"${FILESDIR}/${P}-makefile.patch"
"${FILESDIR}/${P}-c99.patch"
)
src_compile() {
emake CC="$(tc-getCC)"
}
src_test() {
local file
for file in "${S}"/test/*.y; do
"${S}"/btyacc "${file}" || die
rm y_tab.c || die
done
}
src_install() {
dobin btyacc
dodoc README README.BYACC
newman manpage btyacc.1
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | btyacc-3-0.tar.gz | 74770 bytes | https://www.siber.com/btyacc/btyacc-3-0.tar.gz |