From 48115f737dbbe00bfc9ceedc2549e79fdc878f39 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 31 Aug 2021 09:10:28 +0200 Subject: games-misc/cbonsai: add 1.3.1, drop 1.2.1 Signed-off-by: Alessandro Barbieri --- games-misc/cbonsai/Manifest | 2 +- games-misc/cbonsai/cbonsai-1.2.1.ebuild | 15 ----------- games-misc/cbonsai/cbonsai-1.3.1.ebuild | 29 ++++++++++++++++++++++ .../cbonsai/files/cbonsai-respect-variables.patch | 4 +-- 4 files changed, 32 insertions(+), 18 deletions(-) delete mode 100644 games-misc/cbonsai/cbonsai-1.2.1.ebuild create mode 100644 games-misc/cbonsai/cbonsai-1.3.1.ebuild diff --git a/games-misc/cbonsai/Manifest b/games-misc/cbonsai/Manifest index 14ee1341c2..1ee2b25218 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.2.1.ebuild deleted file mode 100644 index 3b74405dec..0000000000 --- a/games-misc/cbonsai/cbonsai-1.2.1.ebuild +++ /dev/null @@ -1,15 +0,0 @@ -# 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" - -PATCHES=( "${FILESDIR}/${PN}-respect-variables.patch" ) diff --git a/games-misc/cbonsai/cbonsai-1.3.1.ebuild b/games-misc/cbonsai/cbonsai-1.3.1.ebuild new file mode 100644 index 0000000000..a165c49d6e --- /dev/null +++ b/games-misc/cbonsai/cbonsai-1.3.1.ebuild @@ -0,0 +1,29 @@ +# 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" + +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 3187e28470..460e516935 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 - -- cgit v1.2.3-65-gdbad