Install this version:
emerge -a =sys-devel/cake-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sys-devel/cake-9999
Or alternatively:
emerge --autounmask-write -a =sys-devel/cake-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs git-r3
DESCRIPTION="Cake a C23 front end and transpiler written in C"
HOMEPAGE="https://cakecc.org"
EGIT_REPO_URI="https://github.com/thradams/cake.git"
# Section 7
LICENSE="GPL-3+"
SLOT="0"
src_prepare() {
default
$(tc-getCC) ${CFLAGS} src/build.c -o src/build ${LDFLAGS} || die
}
src_compile() {
cd src
./build
cd ..
}
src_install() {
insinto /usr/share/cake
doins src/cakeconf.h
exeinto /usr/share/cake
doexe src/cake src/cakeide
dosym -r /usr/share/cake/cake /usr/bin/cake
dosym -r /usr/share/cake/cakeide /usr/bin/cakeide
}