commit:     adef43ea1d2d23c5e0a9cd3b1dce94272760a3e8
Author:     ingenarel (NeoJesus) <ingenarel_neojesus <AT> disroot <DOT> org>
AuthorDate: Wed Feb 18 09:37:10 2026 +0000
Commit:     Saad Abdullah <ingenarelitems <AT> gmail <DOT> com>
CommitDate: Wed Feb 18 09:37:25 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=adef43ea

www-client/chawan: add 9999

Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus <AT> disroot.org>

 www-client/chawan/chawan-9999.ebuild            | 45 +++++++++++++++++++++++++
 www-client/chawan/files/makefile-f51be415.patch | 32 ++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/www-client/chawan/chawan-9999.ebuild 
b/www-client/chawan/chawan-9999.ebuild
new file mode 100644
index 0000000000..a444838416
--- /dev/null
+++ b/www-client/chawan/chawan-9999.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="TUI web browser; supports CSS, images, JavaScript, and multiple 
web protocols"
+HOMEPAGE="https://chawan.net";
+
+if [[ "${PV}" == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://git.sr.ht/~bptato/${PN}";
+else
+       SRC_URI="https://git.sr.ht/~bptato/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+       S="${WORKDIR}/${PN}-v${PV}"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="Unlicense"
+
+SLOT="0"
+
+IUSE="lto"
+
+DEPEND="
+       app-arch/brotli
+       dev-libs/openssl
+       net-libs/libssh2
+"
+BDEPEND="
+       ${DEPEND}
+       dev-lang/nim
+       virtual/pkgconfig
+"
+
+PATCHES=(
+       "${FILESDIR}/makefile-f51be415.patch"
+)
+
+src_prepare(){
+       default
+       if use lto; then
+               sed -i -E 's|^FLAGS\s+\+=.+|& -d:lto|' Makefile ||
+               die "Trying to sed the Makefile for lto failed!"
+       fi
+}

diff --git a/www-client/chawan/files/makefile-f51be415.patch 
b/www-client/chawan/files/makefile-f51be415.patch
new file mode 100644
index 0000000000..0a0efc3de3
--- /dev/null
+++ b/www-client/chawan/files/makefile-f51be415.patch
@@ -0,0 +1,32 @@
+diff --git a/Makefile b/Makefile
+index 78d5fe8a..1a86c257 100644
+--- a/Makefile
++++ b/Makefile
+@@ -4,7 +4,7 @@ NIMC ?= $(NIM) c
+ OBJDIR ?= .obj
+ OUTDIR ?= target
+ # These paths are quoted in recipes.
+-PREFIX ?= /usr/local
++PREFIX ?= /usr
+ MANPREFIX ?= $(PREFIX)/share/man
+ MANPREFIX1 ?= $(MANPREFIX)/man1
+ MANPREFIX5 ?= $(MANPREFIX)/man5
+@@ -52,17 +52,7 @@ FORCE_POLL_MODE ?= 0
+ 
+ chac_flags =
+ 
+-# Nim compiler flags
+-ifeq ($(TARGET),debug)
+-FLAGS += -d:debug --debugger:native
+-else ifeq ($(TARGET),release)
+-chac_flags = -s
+-FLAGS += -d:release -d:strip -d:lto
+-else ifeq ($(TARGET),release0)
+-FLAGS += -d:release --stacktrace:on
+-else ifeq ($(TARGET),release1)
+-FLAGS += -d:release --debugger:native
+-endif
++FLAGS += -d:release
+ 
+ ssl_link = http gemini sftp
+ tohtml_link = gopher2html md2html ansi2html gmi2html dirlist2html img2html

Reply via email to