www-client/chawan: add 0.4.2

Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org>
This commit is contained in:
ingenarel (NeoJesus)
2026-06-09 04:17:51 +06:00
parent f15060ab4f
commit 53379094c7
2 changed files with 73 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST chawan-0.4.0.tar.gz 3694715 BLAKE2B 9079632b99292b3a0827349ba9fe3932ef55d785658d1527806c60317fea86770a3b16201133d6bafe0075170760bdf760d2e1210268f996eff30aaa41c35ecb SHA512 095d1167f13cb756a8c885accf27eb2623f4590f4daced9cbe2a1812b89193a04dd5b3111073d8e1abe9756015e4e7fcdc9bd0679aef3d14ecad75d7dacbb49a
DIST chawan-0.4.1.tar.gz 3695327 BLAKE2B 54bc628574cf98d004db962b8dc5cda5380a25bb4e85765ae3504bf2036577f4f41c0bd4407f86f6d48bfa3ba652f8c0c832d4ff644fd69bf0c6d56a2619a766 SHA512 64e95eb1382202ffdc43569cee0472afed92b5acd05f39020a3f1f1c0fa0038e8ce4450041d22892b75153ec66f2dd13baa4606acfbe767c811c6f704c3c152c
DIST chawan-0.4.2.tar.gz 3695981 BLAKE2B ac6d7a066eafda5bad0fe6566fd2ac50d5af9e8bbf2ffe47a7ba012aa6f97a67d09a9e38fb57d912ac05c4906bd388b724848ac9f40941ba5b2d132f84deb8f9 SHA512 05383f988d9c8a574b26a5e3760b2a29f99b97c4514e3c20a249b1d6e1da25031efd04289f0105a818addee536bd1eeb3bfc568e6a634ac93faff836019b2c73

View File

@@ -0,0 +1,72 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs multiprocessing
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="
dev-lang/nim
virtual/pkgconfig
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/makefile-491b4231.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
}
src_configure(){
# code is mostly copy pasted from the nim_gen_config() function from nim-utils.eclass, modifed a bit to actually
# append to the original nim.cfg, instead of replacing it
cat >> "${S}"/nim.cfg <<- EOF || die "Failed to append to Nim config"
--parallelBuild:"$(makeopts_jobs)"
cc:"gcc"
gcc.exe:"$(tc-getCC)"
gcc.linkerexe:"$(tc-getCC)"
gcc.cpp.exe:"$(tc-getCXX)"
gcc.cpp.linkerexe:"$(tc-getCXX)"
gcc.options.speed:"${CFLAGS}"
gcc.options.size:"${CFLAGS}"
gcc.options.debug:"${CFLAGS}"
gcc.options.always:"${CPPFLAGS}"
gcc.options.linker:"${LDFLAGS}"
gcc.cpp.options.speed:"${CXXFLAGS}"
gcc.cpp.options.size:"${CXXFLAGS}"
gcc.cpp.options.debug:"${CXXFLAGS}"
gcc.cpp.options.always:"${CPPFLAGS}"
gcc.cpp.options.linker:"${LDFLAGS}"
EOF
default
}