mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 20:13:01 -04:00
www-client/chawan: add 0.4.3
Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST chawan-0.4.1.tar.gz 3695327 BLAKE2B 54bc628574cf98d004db962b8dc5cda5380a25bb4e85765ae3504bf2036577f4f41c0bd4407f86f6d48bfa3ba652f8c0c832d4ff644fd69bf0c6d56a2619a766 SHA512 64e95eb1382202ffdc43569cee0472afed92b5acd05f39020a3f1f1c0fa0038e8ce4450041d22892b75153ec66f2dd13baa4606acfbe767c811c6f704c3c152c
|
||||
DIST chawan-0.4.2.tar.gz 3695981 BLAKE2B ac6d7a066eafda5bad0fe6566fd2ac50d5af9e8bbf2ffe47a7ba012aa6f97a67d09a9e38fb57d912ac05c4906bd388b724848ac9f40941ba5b2d132f84deb8f9 SHA512 05383f988d9c8a574b26a5e3760b2a29f99b97c4514e3c20a249b1d6e1da25031efd04289f0105a818addee536bd1eeb3bfc568e6a634ac93faff836019b2c73
|
||||
DIST chawan-0.4.3.tar.gz 3697336 BLAKE2B 2a700149aeb738c10981f7d2039a9f138586cb6659306fe07b762f5dc59f5faa60a0557f6b58ad0009b48027335b52c101b6b4f4c0583e8c68449894b2ddf4c8 SHA512 54a5111148d64b4a7f7703621ad46f60b69c489c51394ce4382e1ea6e51d4d39a5e904a30b779446b774b025619169d252ffb92e5d9d3de39cc08c2b3c372557
|
||||
|
||||
72
www-client/chawan/chawan-0.4.3.ebuild
Normal file
72
www-client/chawan/chawan-0.4.3.ebuild
Normal file
@@ -0,0 +1,72 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=9
|
||||
|
||||
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-0.4.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
|
||||
}
|
||||
|
||||
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:"$(get_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
|
||||
}
|
||||
32
www-client/chawan/files/makefile-0.4.3.patch
Normal file
32
www-client/chawan/files/makefile-0.4.3.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 8f538522..99b550a3 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
|
||||
@@ -53,17 +53,7 @@ FORCE_POLL_MODE ?= 0
|
||||
chac_flags =
|
||||
|
||||
# Nim compiler flags
|
||||
-ifeq ($(TARGET),debug)
|
||||
-FLAGS += -d:debug --debugger:native
|
||||
-CFLAGS += -DDUMP_LEAKS=1
|
||||
-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
|
||||
Reference in New Issue
Block a user