www-client/elinks: update live to use new guile mechanism

Signed-off-by: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
This commit is contained in:
Alfred Wingate
2024-09-18 15:06:41 +02:00
committed by Arsen Arsenović
parent 6ab4123921
commit e89d4ca468
+13 -3
View File
@@ -3,10 +3,12 @@
EAPI=8
GUILE_REQ_USE="deprecated"
GUILE_COMPAT=( 2-2 3-0 )
PYTHON_COMPAT=( python3_{10..12} )
LUA_COMPAT=( lua5-{1,2,3,4} luajit )
inherit flag-o-matic meson lua-single python-single-r1
inherit flag-o-matic guile-single meson lua-single python-single-r1
DESCRIPTION="Advanced and well-established text-mode web browser"
HOMEPAGE="http://elinks.or.cz/"
@@ -26,6 +28,7 @@ IUSE="bittorrent brotli bzip2 debug finger ftp gopher gpm gnutls guile idn"
IUSE+=" javascript lua lzma +mouse nls nntp perl python samba ssl test tre unicode X xml zlib zstd"
RESTRICT="!test? ( test )"
REQUIRED_USE="
guile? ( ${GUILE_REQUIRED_USE} )
lua? ( ${LUA_REQUIRED_USE} )
python? ( ${PYTHON_REQUIRED_USE} )
"
@@ -37,7 +40,7 @@ RDEPEND="
gpm? (
>=sys-libs/gpm-1.20.0-r5
)
guile? ( >=dev-scheme/guile-1.6.4-r1[deprecated] )
guile? ( ${GUILE_DEPS} )
idn? ( net-dns/libidn2:= )
javascript? (
dev-cpp/libxmlpp:5.0
@@ -72,11 +75,16 @@ BDEPEND="
"
pkg_setup() {
use guile && guile-single_pkg_setup
use lua && lua-single_pkg_setup
use python && python-single-r1_pkg_setup
}
src_prepare() {
default
use guile && guile_bump_sources
}
src_configure() {
# This file is severely broken w.r.t. strict-aliasing and upstream acknowledges it:
# https://github.com/rkd77/elinks/blob/d05ce90b35d82109aab320b490e3ca54aa6df057/src/util/lists.h#L14
@@ -168,6 +176,8 @@ src_install() {
# elinks uses an internal copy of gettext which ships files that may
# collide with the system's gettext (https://bugs.gentoo.org/635090)
rm -f "${ED}"/usr/{share/locale/locale,lib/charset}.alias || die
use guile && guile_unstrip_ccache
}
pkg_postinst() {