mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 22:52:59 -04:00
www-client/chawan: new package; add 0.3.3
Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org>
This commit is contained in:
1
www-client/chawan/Manifest
Normal file
1
www-client/chawan/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST chawan-0.3.3.tar.gz 3642240 BLAKE2B 96000797713b305e0ef49c83548e0bc046f1a038e63b11ae8ada9e321f9cb1a9a85d4aec0902e5c433ecf9735428fc619502fd78f4892b22764ab8c500c68510 SHA512 56042cc71e6ee33439932b4c9caefc4169c21b5a5ef7268eae922de0e58d11be03aa70d701b1f84af32204fce33abae87975c4167a4b2cce33ab1ce55c5a01ee
|
||||
45
www-client/chawan/chawan-0.3.3.ebuild
Normal file
45
www-client/chawan/chawan-0.3.3.ebuild
Normal file
@@ -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
|
||||
}
|
||||
31
www-client/chawan/files/makefile-0.3.3.patch
Normal file
31
www-client/chawan/files/makefile-0.3.3.patch
Normal file
@@ -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
|
||||
18
www-client/chawan/metadata.xml
Normal file
18
www-client/chawan/metadata.xml
Normal file
@@ -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>ingenarel_neojesus@disroot.org</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>
|
||||
Reference in New Issue
Block a user