games-misc/cbonsai - 1.3.1 (myov)

Search

Install

Install this version:

emerge -a =games-misc/cbonsai-1.3.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =games-misc/cbonsai-1.3.1

Or alternatively:

emerge --autounmask-write -a =games-misc/cbonsai-1.3.1

Package Information

Description:
Grow Bonsai trees in your terminal
Homepage:
https://gitlab.com/jallbrit/cbonsai/
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
1.3.1 8 ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit custom-cflags edo toolchain-funcs

DESCRIPTION="Grow Bonsai trees in your terminal"
HOMEPAGE="https://gitlab.com/jallbrit/cbonsai/"

if [[ "${PV}" == *9999* ]] ; then
	inherit git-r3

	EGIT_REPO_URI="https://gitlab.com/jallbrit/${PN}"
else
	SRC_URI="https://gitlab.com/jallbrit/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2
		-> ${P}.gl.tar.bz2"
	S="${WORKDIR}/${PN}-v${PV}"

	KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
fi

LICENSE="GPL-3"
SLOT="0"

RDEPEND="
	sys-libs/ncurses:=
"
DEPEND="
	${RDEPEND}
"
BDEPEND="
	virtual/pkgconfig
"

DOCS=( README.md )

src_compile() {
	local -a cflags=(
		$(pkg-config --cflags ncursesw panelw)
		$(pkg-config --libs ncursesw panelw)
		${CFLAGS} ${LDFLAGS}
		-Wall -Wcast-qual -Wextra -Wpointer-arith -Wshadow -pedantic
	)
	edo "$(tc-getCC)" "${cflags[@]}" -o "${PN}" "${PN}.c"
}

src_install() {
	exeinto /usr/bin
	doexe "${PN}"

	einstalldocs
}

Inherited Eclasses

edo

Dependencies

DEPEND

	
	sys-libs/ncurses:=

RDEPEND

	sys-libs/ncurses:=

BDEPEND

	virtual/pkgconfig

Manifest for 1.3.1

Type File Size Source URLs
DIST cbonsai-1.3.1.gl.tar.bz2 21669 bytes https://gitlab.com/jallbrit/cbonsai/-/archive/v1.3.1/cbonsai-v1.3.1.tar.bz2