From 22575c16be0a00285114b14a3efa368144675fae Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Thu, 15 Jul 2021 19:12:00 +0200 Subject: games-misc/cbonsai: initial import Signed-off-by: Alessandro Barbieri --- games-misc/cbonsai/Manifest | 1 + games-misc/cbonsai/cbonsai-1.2.1.ebuild | 15 +++++++++++++++ games-misc/cbonsai/files/cbonsai-respect-variables.patch | 13 +++++++++++++ games-misc/cbonsai/metadata.xml | 15 +++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 games-misc/cbonsai/Manifest create mode 100644 games-misc/cbonsai/cbonsai-1.2.1.ebuild create mode 100644 games-misc/cbonsai/files/cbonsai-respect-variables.patch create mode 100644 games-misc/cbonsai/metadata.xml (limited to 'games-misc') diff --git a/games-misc/cbonsai/Manifest b/games-misc/cbonsai/Manifest new file mode 100644 index 000000000..14ee1341c --- /dev/null +++ b/games-misc/cbonsai/Manifest @@ -0,0 +1 @@ +DIST cbonsai-1.2.1.tar.bz2 20897 BLAKE2B c69c7b0d64b30d10decf08df4bedd4e125450faf6cdf9e36d0c8fd202e67443901832a7e191cf1af3498988fd16a8e06dd54b71b8e2639bdd2e2583fc6724a91 SHA512 daf9d023687ddd8d337636365e599bd546c187cd99773eebcc830c89460558890ba8e6e895977e619b267894908480aea59c6cbbeafff06730743ac6ba42afa6 diff --git a/games-misc/cbonsai/cbonsai-1.2.1.ebuild b/games-misc/cbonsai/cbonsai-1.2.1.ebuild new file mode 100644 index 000000000..3b74405de --- /dev/null +++ b/games-misc/cbonsai/cbonsai-1.2.1.ebuild @@ -0,0 +1,15 @@ +# 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/files/cbonsai-respect-variables.patch b/games-misc/cbonsai/files/cbonsai-respect-variables.patch new file mode 100644 index 000000000..3187e2847 --- /dev/null +++ b/games-misc/cbonsai/files/cbonsai-respect-variables.patch @@ -0,0 +1,13 @@ +--- a/Makefile ++++ b/Makefile +@@ -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} + + cbonsai: cbonsai.c + diff --git a/games-misc/cbonsai/metadata.xml b/games-misc/cbonsai/metadata.xml new file mode 100644 index 000000000..5c0d6a88f --- /dev/null +++ b/games-misc/cbonsai/metadata.xml @@ -0,0 +1,15 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +cbonsai is a bonsai tree generator, written in C using ncurses. It intelligently creates, colors, and positions a bonsai tree, and is entirely configurable via CLI options-- see usage. There are 2 modes of operation: static (see finished bonsai tree), and live (see growth step-by-step). + + + https://gitlab.com/jallbrit/cbonsai/-/issues + jallbrit/cbonsai + + -- cgit v1.2.3-65-gdbad