From c6ca2571480b61e52dbc91f05b9ee31b8f275dad Mon Sep 17 00:00:00 2001 From: Ceres Date: Sun, 29 Mar 2026 14:40:41 +0100 Subject: [PATCH] games-misc/cbonsai: add 1.4.2 Signed-off-by: Ceres --- games-misc/cbonsai/Manifest | 1 + games-misc/cbonsai/cbonsai-1.4.2.ebuild | 27 +++++++++++++++++++ .../cbonsai-respect-variables-1.4.2.patch | 13 +++++++++ 3 files changed, 41 insertions(+) create mode 100644 games-misc/cbonsai/cbonsai-1.4.2.ebuild create mode 100644 games-misc/cbonsai/files/cbonsai-respect-variables-1.4.2.patch diff --git a/games-misc/cbonsai/Manifest b/games-misc/cbonsai/Manifest index 1ee2b25218..1e3c3d41a4 100644 --- a/games-misc/cbonsai/Manifest +++ b/games-misc/cbonsai/Manifest @@ -1 +1,2 @@ DIST cbonsai-1.3.1.tar.bz2 21669 BLAKE2B 702d5836bfa78f08e24328ebd3f1fe7f4693d0dc84fadd7cba56b13a91696ad101c3ae41f60008377a216ca60018ec29c521dadcf4bc0a9e18c330ec35dcd59a SHA512 6222a1e080eddf68527d151bc510d7a9cdc91d703d7e4669e37b872a5da79ecd12f9b18e8139be763a688085f4a7256fdef76a092e03bebbdda00bd6912109c3 +DIST cbonsai-1.4.2.tar.bz2 22827 BLAKE2B 7796172d3f146d596e951e8db1e724e42139809cf142afc96d116176b05a103dab7bf1c99677e9a1ff7e27f9286f57a3ce8b30875a7f6e1e16669b8efa3dc5fc SHA512 47b9edffe3ca0a34e733d8fa1c61e96caacd4b18b303e5dc807f856a764bb47e0e55a45ddbd2bef2be8b1c3f2a0707e7ab521b8063c9b35186bea001bd4c11e0 diff --git a/games-misc/cbonsai/cbonsai-1.4.2.ebuild b/games-misc/cbonsai/cbonsai-1.4.2.ebuild new file mode 100644 index 0000000000..090e5921a0 --- /dev/null +++ b/games-misc/cbonsai/cbonsai-1.4.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="grow bonsai trees in your terminal" +HOMEPAGE="https://gitlab.com/jallbrit/cbonsai" +SRC_URI="https://gitlab.com/jallbrit/cbonsai/-/archive/v${PV}/cbonsai-v${PV}.tar.bz2 -> ${P}.tar.bz2" +S="${WORKDIR}/${PN}-v${PV}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="sys-libs/ncurses" +DEPEND="${RDEPEND}" +BDEPEND=" + app-text/scdoc + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}/${PN}-respect-variables-1.4.2.patch" ) + +src_install() { + PREFIX="${EPREFIX}/usr" DESTDIR="${D}" emake install + dodoc README.md +} diff --git a/games-misc/cbonsai/files/cbonsai-respect-variables-1.4.2.patch b/games-misc/cbonsai/files/cbonsai-respect-variables-1.4.2.patch new file mode 100644 index 0000000000..065cd837ac --- /dev/null +++ b/games-misc/cbonsai/files/cbonsai-respect-variables-1.4.2.patch @@ -0,0 +1,13 @@ +--- a/Makefile 2025-06-20 03:28:16.000000000 +0100 ++++ b/Makefile 2026-03-29 14:36:43.324630218 +0100 +@@ -1,9 +1,7 @@ + .POSIX: +-CC = cc + PKG_CONFIG ?= pkg-config + CFLAGS += -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-qual -pedantic $(shell $(PKG_CONFIG) --cflags ncursesw panelw) +-LDLIBS = $(shell $(PKG_CONFIG) --libs ncursesw panelw || echo "-lncursesw -ltinfo -lpanelw") +-PREFIX = /usr/local ++LDLIBS = $(shell $(PKG_CONFIG) --libs ncursesw panelw || echo "-lncursesw -ltinfo -lpanelw") $(LDFLAGS) + DATADIR = $(PREFIX)/share + MANDIR = $(DATADIR)/man + WITH_BASH = 1