Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-misc/cbonsai/files/, games-misc/cbonsai/
Date: Thu, 15 Jul 2021 17:12:31
Message-Id: 1626369145.22575c16be0a00285114b14a3efa368144675fae.Alessandro-Barbieri@gentoo
1 commit: 22575c16be0a00285114b14a3efa368144675fae
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Thu Jul 15 17:12:00 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Thu Jul 15 17:12:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=22575c16
7
8 games-misc/cbonsai: initial import
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 games-misc/cbonsai/Manifest | 1 +
13 games-misc/cbonsai/cbonsai-1.2.1.ebuild | 15 +++++++++++++++
14 games-misc/cbonsai/files/cbonsai-respect-variables.patch | 13 +++++++++++++
15 games-misc/cbonsai/metadata.xml | 15 +++++++++++++++
16 4 files changed, 44 insertions(+)
17
18 diff --git a/games-misc/cbonsai/Manifest b/games-misc/cbonsai/Manifest
19 new file mode 100644
20 index 000000000..14ee1341c
21 --- /dev/null
22 +++ b/games-misc/cbonsai/Manifest
23 @@ -0,0 +1 @@
24 +DIST cbonsai-1.2.1.tar.bz2 20897 BLAKE2B c69c7b0d64b30d10decf08df4bedd4e125450faf6cdf9e36d0c8fd202e67443901832a7e191cf1af3498988fd16a8e06dd54b71b8e2639bdd2e2583fc6724a91 SHA512 daf9d023687ddd8d337636365e599bd546c187cd99773eebcc830c89460558890ba8e6e895977e619b267894908480aea59c6cbbeafff06730743ac6ba42afa6
25
26 diff --git a/games-misc/cbonsai/cbonsai-1.2.1.ebuild b/games-misc/cbonsai/cbonsai-1.2.1.ebuild
27 new file mode 100644
28 index 000000000..3b74405de
29 --- /dev/null
30 +++ b/games-misc/cbonsai/cbonsai-1.2.1.ebuild
31 @@ -0,0 +1,15 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DESCRIPTION="grow bonsai trees in your terminal"
38 +HOMEPAGE="https://gitlab.com/jallbrit/cbonsai"
39 +SRC_URI="https://gitlab.com/jallbrit/cbonsai/-/archive/v${PV}/cbonsai-v${PV}.tar.bz2 -> ${P}.tar.bz2"
40 +S="${WORKDIR}/${PN}-v${PV}"
41 +
42 +LICENSE="GPL-3"
43 +SLOT="0"
44 +KEYWORDS="~amd64"
45 +
46 +PATCHES=( "${FILESDIR}/${PN}-respect-variables.patch" )
47
48 diff --git a/games-misc/cbonsai/files/cbonsai-respect-variables.patch b/games-misc/cbonsai/files/cbonsai-respect-variables.patch
49 new file mode 100644
50 index 000000000..3187e2847
51 --- /dev/null
52 +++ b/games-misc/cbonsai/files/cbonsai-respect-variables.patch
53 @@ -0,0 +1,13 @@
54 +--- a/Makefile
55 ++++ b/Makefile
56 +@@ -1,9 +1,7 @@
57 + .POSIX:
58 +-CC = cc
59 + PKG_CONFIG ?= pkg-config
60 + CFLAGS += -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-qual -pedantic $(shell $(PKG_CONFIG) --cflags ncursesw panelw)
61 +-LDLIBS = $(shell $(PKG_CONFIG) --libs ncursesw panelw || echo "-lncursesw -ltinfo -lpanelw")
62 +-PREFIX = /usr/local
63 ++LDLIBS = $(shell $(PKG_CONFIG) --libs ncursesw panelw || echo "-lncursesw -ltinfo -lpanelw") ${LDFLAGS}
64 +
65 + cbonsai: cbonsai.c
66 +
67
68 diff --git a/games-misc/cbonsai/metadata.xml b/games-misc/cbonsai/metadata.xml
69 new file mode 100644
70 index 000000000..5c0d6a88f
71 --- /dev/null
72 +++ b/games-misc/cbonsai/metadata.xml
73 @@ -0,0 +1,15 @@
74 +<?xml version="1.0" encoding="UTF-8"?>
75 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
76 +<pkgmetadata>
77 + <maintainer type="person">
78 + <email>lssndrbarbieri@×××××.com</email>
79 + <name>Alessandro Barbieri</name>
80 + </maintainer>
81 + <longdescription lang="en">
82 +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).
83 + </longdescription>
84 + <upstream>
85 + <bugs-to>https://gitlab.com/jallbrit/cbonsai/-/issues</bugs-to>
86 + <remote-id type="gitlab">jallbrit/cbonsai</remote-id>
87 + </upstream>
88 +</pkgmetadata>