commit: 247a63f7cd8886b4f4ae86d3adbce70f5ef2296f Author: ingenarel (NeoJesus) <ingenarel_neojesus <AT> disroot <DOT> org> AuthorDate: Wed Feb 18 09:36:29 2026 +0000 Commit: Saad Abdullah <ingenarelitems <AT> gmail <DOT> com> CommitDate: Wed Feb 18 09:37:24 2026 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=247a63f7
www-client/chawan: new package; add 0.3.3 Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus <AT> disroot.org> www-client/chawan/Manifest | 1 + www-client/chawan/chawan-0.3.3.ebuild | 45 ++++++++++++++++++++++++++++ www-client/chawan/files/makefile-0.3.3.patch | 31 +++++++++++++++++++ www-client/chawan/metadata.xml | 18 +++++++++++ 4 files changed, 95 insertions(+) diff --git a/www-client/chawan/Manifest b/www-client/chawan/Manifest new file mode 100644 index 0000000000..629be9fdf5 --- /dev/null +++ b/www-client/chawan/Manifest @@ -0,0 +1 @@ +DIST chawan-0.3.3.tar.gz 3642240 BLAKE2B 96000797713b305e0ef49c83548e0bc046f1a038e63b11ae8ada9e321f9cb1a9a85d4aec0902e5c433ecf9735428fc619502fd78f4892b22764ab8c500c68510 SHA512 56042cc71e6ee33439932b4c9caefc4169c21b5a5ef7268eae922de0e58d11be03aa70d701b1f84af32204fce33abae87975c4167a4b2cce33ab1ce55c5a01ee diff --git a/www-client/chawan/chawan-0.3.3.ebuild b/www-client/chawan/chawan-0.3.3.ebuild new file mode 100644 index 0000000000..623a0913e6 --- /dev/null +++ b/www-client/chawan/chawan-0.3.3.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-0.3.3.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-0.3.3.patch b/www-client/chawan/files/makefile-0.3.3.patch new file mode 100644 index 0000000000..c03a107995 --- /dev/null +++ b/www-client/chawan/files/makefile-0.3.3.patch @@ -0,0 +1,31 @@ +diff --git a/Makefile b/Makefile +index d64c406a..874b7d4e 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 +@@ -50,16 +50,7 @@ OUTDIR_MAN = $(OUTDIR_TARGET)/share/man + # platform-specific adjustments. + FORCE_POLL_MODE ?= 0 + +-# Nim compiler flags +-ifeq ($(TARGET),debug) +-FLAGS += -d:debug --debugger:native +-else ifeq ($(TARGET),release) +-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 diff --git a/www-client/chawan/metadata.xml b/www-client/chawan/metadata.xml new file mode 100644 index 0000000000..1920cefefa --- /dev/null +++ b/www-client/chawan/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>ingenarel</name> + </maintainer> + <longdescription> + Chawan is a text-mode web browser and pager for Unix-like systems, with a focus on implementing modern web standards + while remaining self-contained, easy to understand and extensible. It includes functionality like CSS, inline images + inside the terminal, and JavaScript through a small, independent browser engine. Most of Chawan has been developed + from scratch in the memory-safe Nim programming language. Supports HTTP(S), SFTP (using libssh2), FTP, Gopher, + Gemini, Finger, Spartan, and user defined protocols + </longdescription> +<upstream> + <remote-id type="sourcehut">~bptato/chawan</remote-id> +</upstream> +</pkgmetadata>
