pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/games
Module Name: pkgsrc
Committed By: nia
Date: Mon May 18 12:20:36 UTC 2026
Modified Files:
pkgsrc/games: Makefile
Added Files:
pkgsrc/games/cbonsai: DESCR Makefile PLIST distinfo
pkgsrc/games/cbonsai/patches: patch-Makefile patch-cbonsai.c
Log Message:
cbonsai: Initial import.
cbonsai is a bonsai tree generator. It intelligently creates,
colors, and positions a bonsai tree, and is entirely configurable
via CLI options. There are 2 modes of operation: static (see
finished bonsai tree), and live (see growth step-by-step).
This package was verified to build on FreeBSD, NetBSD, OpenBSD,
retro Linux, and macOS.
To generate a diff of this commit:
cvs rdiff -u -r1.564 -r1.565 pkgsrc/games/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/games/cbonsai/DESCR \
pkgsrc/games/cbonsai/Makefile pkgsrc/games/cbonsai/PLIST \
pkgsrc/games/cbonsai/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/games/cbonsai/patches/patch-Makefile \
pkgsrc/games/cbonsai/patches/patch-cbonsai.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/games/Makefile
diff -u pkgsrc/games/Makefile:1.564 pkgsrc/games/Makefile:1.565
--- pkgsrc/games/Makefile:1.564 Mon May 4 12:28:51 2026
+++ pkgsrc/games/Makefile Mon May 18 12:20:35 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.564 2026/05/04 12:28:51 nia Exp $
+# $NetBSD: Makefile,v 1.565 2026/05/18 12:20:35 nia Exp $
#
COMMENT= Games
@@ -64,6 +64,7 @@ SUBDIR+= burgerspace
SUBDIR+= bzflag
SUBDIR+= cataclysm-dda
SUBDIR+= cataclysm-dda-sdl
+SUBDIR+= cbonsai
SUBDIR+= cbzone
SUBDIR+= ccgo
SUBDIR+= ccleste
Added files:
Index: pkgsrc/games/cbonsai/DESCR
diff -u /dev/null pkgsrc/games/cbonsai/DESCR:1.1
--- /dev/null Mon May 18 12:20:36 2026
+++ pkgsrc/games/cbonsai/DESCR Mon May 18 12:20:35 2026
@@ -0,0 +1,4 @@
+cbonsai is a bonsai tree generator. It intelligently creates,
+colors, and positions a bonsai tree, and is entirely configurable
+via CLI options. There are 2 modes of operation: static (see
+finished bonsai tree), and live (see growth step-by-step).
Index: pkgsrc/games/cbonsai/Makefile
diff -u /dev/null pkgsrc/games/cbonsai/Makefile:1.1
--- /dev/null Mon May 18 12:20:36 2026
+++ pkgsrc/games/cbonsai/Makefile Mon May 18 12:20:35 2026
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2026/05/18 12:20:35 nia Exp $
+
+DISTNAME= cbonsai-1.4.2
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_GITLAB:=jallbrit/}
+GITLAB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://gitlab.com/jallbrit/cbonsai
+COMMENT= Grow bonsai trees in your terminal
+LICENSE= gnu-gpl-v3
+
+WRKSRC= ${WRKDIR}/${PKGBASE}-${GITLAB_TAG}
+
+USE_TOOLS+= gmake pkg-config
+
+TOOL_DEPENDS+= scdoc-[0-9]*:../../textproc/scdoc
+
+BUILD_TARGET= cbonsai cbonsai.6
+
+MAKE_FLAGS+= CC=${CC:Q}
+MAKE_FLAGS+= PREFIX=${PREFIX}
+MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}
+
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/games/cbonsai/PLIST
diff -u /dev/null pkgsrc/games/cbonsai/PLIST:1.1
--- /dev/null Mon May 18 12:20:36 2026
+++ pkgsrc/games/cbonsai/PLIST Mon May 18 12:20:35 2026
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2026/05/18 12:20:35 nia Exp $
+bin/cbonsai
+man/man6/cbonsai.6
+share/bash-completion/completions/cbonsai
Index: pkgsrc/games/cbonsai/distinfo
diff -u /dev/null pkgsrc/games/cbonsai/distinfo:1.1
--- /dev/null Mon May 18 12:20:36 2026
+++ pkgsrc/games/cbonsai/distinfo Mon May 18 12:20:35 2026
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2026/05/18 12:20:35 nia Exp $
+
+BLAKE2s (cbonsai-1.4.2.tar.gz) = 8e3b0ac3d48bd2fc901e24f011080ce93a8a47ebbc89e15d254c80277fbc3c05
+SHA512 (cbonsai-1.4.2.tar.gz) = e7abe46f027a74d4b8958066839ece870499124fa874f8507b775eb1cdc55d59134835ee573c6820de1a8b5db2ded50b4bdada5127f73851d1a4ff5ca05cc71c
+Size (cbonsai-1.4.2.tar.gz) = 24393 bytes
+SHA1 (patch-Makefile) = d7990bd1ebde2b590587775666ea3c8020055bbd
+SHA1 (patch-cbonsai.c) = dc91328308b4475061b4aec8b48a8798e2f94fe3
Index: pkgsrc/games/cbonsai/patches/patch-Makefile
diff -u /dev/null pkgsrc/games/cbonsai/patches/patch-Makefile:1.1
--- /dev/null Mon May 18 12:20:36 2026
+++ pkgsrc/games/cbonsai/patches/patch-Makefile Mon May 18 12:20:35 2026
@@ -0,0 +1,19 @@
+$NetBSD: patch-Makefile,v 1.1 2026/05/18 12:20:35 nia Exp $
+
+Support for NetBSD curses and wcwidth(3) visibility.
+
+https://gitlab.com/jallbrit/cbonsai/-/merge_requests/26
+
+--- Makefile.orig 2025-06-20 02:28:16.000000000 +0000
++++ Makefile
+@@ -1,8 +1,7 @@ CC = cc
+ .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")
++CFLAGS += -std=c99 -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-qual -pedantic
++LDLIBS = -lcurses -lpanel
+ PREFIX = /usr/local
+ DATADIR = $(PREFIX)/share
+ MANDIR = $(DATADIR)/man
Index: pkgsrc/games/cbonsai/patches/patch-cbonsai.c
diff -u /dev/null pkgsrc/games/cbonsai/patches/patch-cbonsai.c:1.1
--- /dev/null Mon May 18 12:20:36 2026
+++ pkgsrc/games/cbonsai/patches/patch-cbonsai.c Mon May 18 12:20:36 2026
@@ -0,0 +1,23 @@
+$NetBSD: patch-cbonsai.c,v 1.1 2026/05/18 12:20:36 nia Exp $
+
+Support for NetBSD curses and wcwidth(3) visibility.
+
+https://gitlab.com/jallbrit/cbonsai/-/merge_requests/26
+
+--- cbonsai.c.orig 2025-06-20 02:28:16.000000000 +0000
++++ cbonsai.c
+@@ -1,5 +1,5 @@
+ #ifndef _XOPEN_SOURCE
+-#define _XOPEN_SOURCE 500
++#define _XOPEN_SOURCE 600
+ #endif
+
+ #include <stdlib.h>
+@@ -643,7 +643,6 @@ void init(const struct config *conf, struct ncursesObj
+ }
+
+ void init(const struct config *conf, struct ncursesObjects *objects) {
+- savetty(); // save terminal settings
+ initscr(); // init ncurses screen
+ noecho(); // don't echo input to screen
+ curs_set(0); // make cursor invisible
Home |
Main Index |
Thread Index |
Old Index