commit: e57488ce27eaeaf5358d856589becee56851c18e Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Tue Nov 25 20:36:49 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Nov 28 03:03:47 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e57488ce
app-accessibility/edbrowse: add 3.8.15 edbrowse migrates to dev-libs/quickjs-ng instead of static quickjs Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/44781 Signed-off-by: Sam James <sam <AT> gentoo.org> app-accessibility/edbrowse/Manifest | 1 + app-accessibility/edbrowse/edbrowse-3.8.15.ebuild | 53 ++++++++++++++++++++++ .../files/edbrowse-3.8.15-quickjs-ng.patch | 38 ++++++++++++++++ 3 files changed, 92 insertions(+) diff --git a/app-accessibility/edbrowse/Manifest b/app-accessibility/edbrowse/Manifest index 15b3bc018fef..72516da01838 100644 --- a/app-accessibility/edbrowse/Manifest +++ b/app-accessibility/edbrowse/Manifest @@ -1,4 +1,5 @@ DIST edbrowse-3.8.12.tar.gz 1084438 BLAKE2B f8a2d7fa90b6339dcd820b0fa22ee9ba2c30af6dd58fcd6a6ee72061e190b6397e72cc03b239f123c834a868657652babc7d870600b52352ef817319a66ccf3b SHA512 124dc0a5154837d4e017f6c8f9ce7882ead8e70f22f42a43cfb701133fdc598608dadf6a54434f68fa1e0c647b9f7351aa490a61b99819816bb66ecd832fbad0 DIST edbrowse-3.8.13.tar.gz 1095751 BLAKE2B 09e951a6daf37eeea9ac85181a75a408d6b5fb2db601b91a8c4609f3e0c3657b028563a82335ce61fa2d341d166c8debe3e8410740792db07640de7912d7f285 SHA512 5911838e9ff54745db0dd250d0a4b7c63aec0c4d986c36493e194fca6524477f3386ea829cb93ab2ef79775fd26b4eb62458e90030fbc7f0a00dfb853f3df66c +DIST edbrowse-3.8.15.tar.gz 1099530 BLAKE2B 86df909bcb9a373ea58921fe4327241754733bf4d0cde5e594c4348cdac6f4140e3fe69e5c43874ce1cf9894bdfd45c89adfbd034cb587ba2119da51650376da SHA512 9dbccf389ffa9aaf16cfb1000e768dcd94b19bf18384b248db8480464d6a69d7972d524f987cf20e9c459c1d78d9062568f78556bc6e6a4517f81631d10a5fd5 DIST quickjs-1fdc768fdc8571300755cdd3e4654ce99c0255ce.tar.gz 593055 BLAKE2B f06408d0f65be94222023a00a7693af9bc2acb38af1a61688f80630a647d7e2fe5725a4da9fd0aae40455d3085d2c13f372e7ac5ccb59198e529e4463a39a5d5 SHA512 bfe1fc3d7441726227182528f1cb8baf01be835e38d638e25fe499f3b33fe59d6e307f2fb60855583cc84184c73b4c37934221fa2668909293139ccb9c1282e8 DIST quickjs-eb2c89087def1829ed99630cb14b549d7a98408c.tar.gz 608712 BLAKE2B 0671de5f4886b378d37bbb067f5b1aab226d876090ef97b28422505d1aaf286738af317cf6946b19347ab6b4af46a231ae140e95467d4c4f79ac652c8b07bf7a SHA512 0377ce8046afcf5a7733031b35ef870959dcf52923c887628d1a9afeff411c9b0e96788327344594d4f25c038ad3671f86930ad74af98f5a77f12f75ea6f4118 diff --git a/app-accessibility/edbrowse/edbrowse-3.8.15.ebuild b/app-accessibility/edbrowse/edbrowse-3.8.15.ebuild new file mode 100644 index 000000000000..4f6e9d7ca024 --- /dev/null +++ b/app-accessibility/edbrowse/edbrowse-3.8.15.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo toolchain-funcs + +DESCRIPTION="Combination editor, browser, and mail client that is 100% text based" +HOMEPAGE="https://edbrowse.org" +SRC_URI="https://github.com/edbrowse/edbrowse/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+ curl MIT CC0-1.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-db/unixODBC + dev-libs/libpcre2:= + dev-libs/openssl:= + dev-libs/quickjs-ng + net-misc/curl + sys-libs/readline:= +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-lang/perl + virtual/pkgconfig +" + +PATCHES=( + # adapt makefile for shared quickjs-ng + "${FILESDIR}"/${PN}-3.8.15-quickjs-ng.patch +) + +src_compile() { + tc-export CC PKG_CONFIG + emake STRIP= +} + +src_test() { + # create an empty config file + touch "${HOME}"/.ebrc || die + # basic test + echo -e "b ${S}/doc/usersguide.html\n1,3p\nqt" | edo ./src/edbrowse -d3 -e +} + +src_install() { + dobin src/edbrowse + newman doc/man-edbrowse-debian.1 edbrowse.1 + local DOCS=( README doc/sample* ) + local HTML_DOCS=( doc/*.html ) + einstalldocs +} diff --git a/app-accessibility/edbrowse/files/edbrowse-3.8.15-quickjs-ng.patch b/app-accessibility/edbrowse/files/edbrowse-3.8.15-quickjs-ng.patch new file mode 100644 index 000000000000..1ec05a84a004 --- /dev/null +++ b/app-accessibility/edbrowse/files/edbrowse-3.8.15-quickjs-ng.patch @@ -0,0 +1,38 @@ +use shared quickjs-ng instead of static quickjs +--- a/src/makefile ++++ b/src/makefile +@@ -2,16 +2,13 @@ + CC ?= cc + PERL ?= perl + PREFIX ?= /usr/local +-QUICKJS_INCLUDE ?= $(PREFIX)/include +-QUICKJS_LIB ?= $(PREFIX)/lib +-QUICKJS_LIB_NAME ?= qjs + CFLAGS += -Wall -D_FILE_OFFSET_BITS=64 + + # determine includes and linker flags +-DEPENDENCIES = libcurl:curl odbc libpcre2-8:pcre2-8 readline openssl ++DEPENDENCIES = libcurl:curl odbc libpcre2-8:pcre2-8 readline openssl quickjs-ng + INCLUDES = $(shell ./make-helper.sh pkg-config-includes $(DEPENDENCIES)) + LINKER_LIBS = $(shell ./make-helper.sh pkg-config-libs $(DEPENDENCIES)) +-CPPFLAGS += $(INCLUDES) -I$(QUICKJS_INCLUDE) ++CFLAGS += $(INCLUDES) + + # Set EBDEMIN=on to support dynamic js deminimization + ifneq ($(EBDEMIN),) +@@ -34,14 +31,7 @@ ifneq ($(EBPROF),) + STRIP = -pg + endif + +-# LDFLAGS for quickjs loading. +-QUICKJS_LDFLAGS = -L$(QUICKJS_LIB) -l$(QUICKJS_LIB_NAME) -ldl +-ifeq ($(shell uname),Linux) +- QUICKJS_LDFLAGS += -latomic +-endif +-LDFLAGS += $(QUICKJS_LDFLAGS) +-# and the other loader flags +-LDFLAGS += $(STRIP) $(LINKER_LIBS) -lpthread -lm -lssl -lcrypto ++LDFLAGS += $(STRIP) $(LINKER_LIBS) -lpthread + + # ESQL C load flags + #ESQLDFLAGS = $(STRIP) -Xlinker -rpath -Xlinker $(INFORMIXDIR)/lib:$(INFORMIXDIR)/lib/esql
