commit: 48115f737dbbe00bfc9ceedc2549e79fdc878f39
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Aug 31 07:10:28 2021 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Tue Aug 31 07:10:28 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=48115f73
games-misc/cbonsai: add 1.3.1, drop 1.2.1
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
games-misc/cbonsai/Manifest | 2 +-
.../cbonsai/{cbonsai-1.2.1.ebuild => cbonsai-1.3.1.ebuild} | 14 ++++++++++++++
games-misc/cbonsai/files/cbonsai-respect-variables.patch | 4 ++--
3 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/games-misc/cbonsai/Manifest b/games-misc/cbonsai/Manifest
index 14ee1341c..1ee2b2521 100644
--- a/games-misc/cbonsai/Manifest
+++ b/games-misc/cbonsai/Manifest
@@ -1 +1 @@
-DIST cbonsai-1.2.1.tar.bz2 20897 BLAKE2B
c69c7b0d64b30d10decf08df4bedd4e125450faf6cdf9e36d0c8fd202e67443901832a7e191cf1af3498988fd16a8e06dd54b71b8e2639bdd2e2583fc6724a91
SHA512
daf9d023687ddd8d337636365e599bd546c187cd99773eebcc830c89460558890ba8e6e895977e619b267894908480aea59c6cbbeafff06730743ac6ba42afa6
+DIST cbonsai-1.3.1.tar.bz2 21669 BLAKE2B
702d5836bfa78f08e24328ebd3f1fe7f4693d0dc84fadd7cba56b13a91696ad101c3ae41f60008377a216ca60018ec29c521dadcf4bc0a9e18c330ec35dcd59a
SHA512
6222a1e080eddf68527d151bc510d7a9cdc91d703d7e4669e37b872a5da79ecd12f9b18e8139be763a688085f4a7256fdef76a092e03bebbdda00bd6912109c3
diff --git a/games-misc/cbonsai/cbonsai-1.2.1.ebuild
b/games-misc/cbonsai/cbonsai-1.3.1.ebuild
similarity index 71%
rename from games-misc/cbonsai/cbonsai-1.2.1.ebuild
rename to games-misc/cbonsai/cbonsai-1.3.1.ebuild
index 3b74405de..a165c49d6 100644
--- a/games-misc/cbonsai/cbonsai-1.2.1.ebuild
+++ b/games-misc/cbonsai/cbonsai-1.3.1.ebuild
@@ -12,4 +12,18 @@ LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
+BDEPEND="
+ app-text/scdoc
+ virtual/pkgconfig
+"
+
PATCHES=( "${FILESDIR}/${PN}-respect-variables.patch" )
+
+src_compile() {
+ emake cbonsai
+ emake cbonsai.1
+}
+
+src_install() {
+ PREFIX="${EPREFIX}/usr" DESTDIR="${D}" emake install
+}
diff --git a/games-misc/cbonsai/files/cbonsai-respect-variables.patch
b/games-misc/cbonsai/files/cbonsai-respect-variables.patch
index 3187e2847..460e51693 100644
--- a/games-misc/cbonsai/files/cbonsai-respect-variables.patch
+++ b/games-misc/cbonsai/files/cbonsai-respect-variables.patch
@@ -7,7 +7,7 @@
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}
++LDLIBS = $(shell $(PKG_CONFIG) --libs ncursesw panelw || echo
"-lncursesw -ltinfo -lpanelw") $(LDFLAGS)
+ MANDIR = $(PREFIX)/share/man
cbonsai: cbonsai.c
-