Codebase list cbonsai / 00201a6
Merge branch 'werdahias/debian/latest' into debian/latest Robin Gustafsson 1 year, 5 months ago
12 changed file(s) with 177 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
00 cbonsai
1 cbonsai.1
33 CFLAGS += -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-qual -pedantic $(shell $(PKG_CONFIG) --cflags ncursesw panelw)
44 LDLIBS = $(shell $(PKG_CONFIG) --libs ncursesw panelw || echo "-lncursesw -ltinfo -lpanelw")
55 PREFIX = /usr/local
6 MANDIR = $(PREFIX)/share/man
67
78 cbonsai: cbonsai.c
89
9 install: cbonsai
10 cbonsai.1: cbonsai.scd
11 scdoc <$< >$@
12
13 install: cbonsai cbonsai.1
1014 mkdir -p $(DESTDIR)$(PREFIX)/bin
15 mkdir -p $(DESTDIR)$(MANDIR)/man1
1116 install -m 0755 cbonsai $(DESTDIR)$(PREFIX)/bin/cbonsai
17 install -m 0644 cbonsai.1 $(DESTDIR)$(MANDIR)/man1/cbonsai.1
1218
1319 uninstall:
1420 rm -f $(DESTDIR)$(PREFIX)/bin/cbonsai
21 rm -f $(DESTDIR)$(MANDIR)/man1/cbonsai.1
1522
1623 clean:
1724 rm -f cbonsai
25 rm -f cbonsai.1
1826
1927 .PHONY: install uninstall clean
1818 <img src="https://repology.org/badge/vertical-allrepos/cbonsai.svg" alt="Packaging status" align="right">
1919 </a>
2020
21 ### Arch Linux (AUR)
21 `cbonsai` is available in multiple repositories. Check the repology chart to the right to see if `cbonsai` is packaged for your system. A big thank you to all the people who packaged `cbonsai`!
2222
23 Nicholas Boyd Isacsson has kindly packaged `cbonsai` in the [AUR](https://aur.archlinux.org/packages/cbonsai/).
23 If no package exists for your system/distribution, you'll have to use the [manual](https://gitlab.com/jallbrit/cbonsai#manual) install instructions. Below are some more specific instructions for some distributions.
2424
2525 ### Debian-based
2626
27 Robin Gustafsson has kindly packaged `cbonsai` as a `.deb` file over in [this repository](https://gitlab.com/rgson/debian_cbonsai/-/packages).
27 `cbonsai` is only available in the Debian Unstable repository. However, if you're not on unstable, Robin Gustafsson has kindly packaged `cbonsai` as a `.deb` file over in [this repository](https://gitlab.com/rgson/debian_cbonsai/-/packages).
28
29 ### Fedora
30
31 Mohammad Kefah has kindly packaged `cbonsai` in the [Fedora copr](https://copr.fedorainfracloud.org/), which is "similar to what the AUR is to Arch". On Fedora, it can be installed like so:
32
33 ```bash
34 sudo dnf copr enable keefle/cbonsai
35 sudo dnf install cbonsai
36 ```
2837
2938 ### MacOS
3039
3645 ```
3746
3847 You may need to follow these instructions before running `make install`.
48
49 If you are having trouble installing on MacOS, try reading [this issue](https://gitlab.com/jallbrit/cbonsai/-/issues/10).
50
51 #### MacPorts
52
53 On macOS, you may also install `cbonsai` using [MacPorts](https://www.macports.org). Simply install MacPorts, then issue the following commands:
54
55 ```bash
56 sudo port selfupdate
57 sudo port install cbonsai
58 ```
3959
4060 ### Manual
4161
140160
141161 ## Inspiration
142162
143 This project wouldn't be here if it weren't for its *roots*! `cbonsai` is a newer version of [bonsai.sh](https://gitlab.com/jallbrit/bonsai.sh), which was written in `bash` and was itself a port of [this bonsai tree generator](https://avelican.github.io/bonsai/) written in `javascript`.
163 This project wouldn't be here if it weren't for its *roots*! `cbonsai` is a newer version of [bonsai.sh](https://gitlab.com/jallbrit/bonsai.sh), which was written in `bash` and was itself a port of [this bonsai tree generator](https://avelican.github.io/bonsai/) written in `javascript`.
0 cbonsai(1)
1
2 # NAME
3
4 cbonsai - grow bonsai trees in your terminal
5
6 # SYNOPSIS
7
8 cbonsai [OPTION]...
9
10 # DESCRIPTION
11
12 cbonsai is a beautifully random bonsai tree generator.
13
14 # OPTIONS
15
16 *-l*, *--live*
17 live mode: show each step of growth
18
19 *-t*, *--time*=_TIME_
20 in live mode, wait TIME secs between steps of growth (must be larger than 0) [default: 0.03]
21
22 *-i*, *--infinite*
23 infinite mode: keep growing trees
24
25 *-w*, *--wait*=_TIME_
26 in infinite mode, wait TIME between each tree generation [default: 4.00]
27
28 *-S*, *--screensaver*
29 screensaver mode; equivalent to -liWC and quit on any keypress
30
31 *-m*, *--message*=_STR_
32 attach message next to the tree
33
34 *-b*, *--base*=_INT_
35 ascii-art plant base to use, 0 is none
36
37 *-c*, *--leaf*=_LIST_
38 list of comma-delimited strings randomly chosen for leaves
39
40 *-M*, *--multiplier*=_INT_
41 branch multiplier; higher -> more branching (0-20) [default: 5]
42
43 *-L*, *--life*=_INT_
44 life; higher -> more growth (0-200) [default: 32]
45
46 *-p*, *--print*
47 print tree to terminal when finished
48
49 *-s*, *--seed*=_INT_
50 seed random number generator
51
52 *-W*, *--save*=_FILE_
53 save progress to file [default: ~/.cache/cbonsai]
54
55 *-C*, *--load*=_FILE_
56 load progress from file [default: ~/.cache/cbonsai]
57
58 *-v*, *--verbose*
59 increase output verbosity
60
61 *-h*, *--help*
62 show help
63
64 # AUTHORS
65
66 Maintained by John Allbritten <me@johnallbritten.com>, who is assisted by other
67 open source contributors. For more information about cbonsai development, see
68 <https://gitlab.com/jallbrit/cbonsai>.
0 cbonsai (1.3.1-1) UNRELEASED; urgency=medium
1
2 * New upstream release
3 * Added myself to Uploaders
4 * Imported upstream patch for manpage section
5 * Switched to scdoc in d/control for generating the manpage
6 * Bumped Standards-Version (4.6.1)
7 * Updated upstream/metadata
8 * Updated year in d/copyright
9
10 -- Matthias Geiger <matthias.geiger1024@tutanota.de> Fri, 18 Nov 2022 13:37:57 +0100
11
012 cbonsai (1.2.1-1) unstable; urgency=medium
113
214 [ Helmut Grohne ]
11 Section: games
22 Priority: optional
33 Maintainer: Robin Gustafsson <robin@rgson.se>
4 Uploaders: Matthias Geiger <matthias.geiger1024@tutanota.de>
45 Build-Depends:
56 debhelper-compat (= 13),
6 help2man,
7 scdoc,
78 libncurses-dev,
89 libncurses-dev:native,
910 pkg-config,
33 Source: https://gitlab.com/jallbrit/cbonsai
44
55 Files: *
6 Copyright: 2021 John Allbritten <me@johnallbritten.com>
6 Copyright: 2021-2022 John Allbritten <me@johnallbritten.com>
77 License: GPL-3
88
99 Files: debian/*
10 Copyright: 2021 Robin Gustafsson <robin@rgson.se>
10 Copyright: 2021-2022 Robin Gustafsson <robin@rgson.se>
1111 License: GPL-3
1212
1313 License: GPL-3
00 cbonsai usr/games
1 cbonsai.6 usr/share/man/man6
+0
-1
debian/manpages less more
0 cbonsai.6
0 Description: Move manpage to section 6
1 Since cbonsai is somewhat of a game/screensafer, this patch moves it to man section 6.
2 Original upstream author is saltedcoffee. I corrected the patch so it applies.
3 Author: Matthias Geiger <matthias.geiger1024@tutanota.de>
4 Origin: upstream
5 Bug: https://gitlab.com/jallbrit/cbonsai/-/merge_requests/21/diffs
6 Forwarded: not-needed
7 Last-Update: 2022-11-18
8 ---
9 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
10 diff --git a/Makefile b/Makefile
11 index 1d59e0d..78d2356 100644
12 --- a/Makefile
13 +++ b/Makefile
14 @@ -8,21 +8,21 @@ MANDIR = $(PREFIX)/share/man
15
16 cbonsai: cbonsai.c
17
18 -cbonsai.1: cbonsai.scd
19 +cbonsai.6: cbonsai.scd
20 scdoc <$< >$@
21
22 -install: cbonsai cbonsai.1
23 +install: cbonsai cbonsai.6
24 mkdir -p $(DESTDIR)$(PREFIX)/bin
25 - mkdir -p $(DESTDIR)$(MANDIR)/man1
26 + mkdir -p $(DESTDIR)$(MANDIR)/man6
27 install -m 0755 cbonsai $(DESTDIR)$(PREFIX)/bin/cbonsai
28 - install -m 0644 cbonsai.1 $(DESTDIR)$(MANDIR)/man1/cbonsai.1
29 + install -m 0644 cbonsai.6 $(DESTDIR)$(MANDIR)/man1/cbonsai.6
30
31 uninstall:
32 rm -f $(DESTDIR)$(PREFIX)/bin/cbonsai
33 - rm -f $(DESTDIR)$(MANDIR)/man1/cbonsai.1
34 + rm -f $(DESTDIR)$(MANDIR)/man6/cbonsai.6
35
36 clean:
37 rm -f cbonsai
38 - rm -f cbonsai.1
39 + rm -f cbonsai.6
40
41 .PHONY: install uninstall clean
42
43 diff --git a/cbonsai.scd b/cbonsai.scd
44 index a1e47ff..07902c7 100644
45 --- a/cbonsai.scd
46 +++ b/cbonsai.scd
47 @@ -1,4 +1,4 @@
48 -cbonsai(1)
49 +cbonsai(6)
50
51 # NAME
52
0 01-move-manpage-section-6.diff
1010 override_dh_auto_build:
1111 dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build -- CFLAGS="$(CFLAGS)"
1212
13 # Generate the manpage with scdoc
1314 execute_after_dh_auto_build:
14 help2man --no-info --name 'random bonsai tree generator' \
15 --version-string $(shell dpkg-parsechangelog -S version) \
16 --section 6 --output cbonsai.6 ./cbonsai
15 echo "$(scdoc < cbonsai.scd)" >> cbonsai.6
16
1717 ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
1818 dh_auto_clean
1919 dh_auto_build -- CFLAGS="$(CFLAGS)"