net-libs/nodejs-25.2.1 : Removed deprecated keyword ~amd64-linux && added dev-cpp/ada and dev-cpp/simdutf dependencies && filtered some noisy warnings

This commit is contained in:
saundersp
2026-01-09 03:37:52 +01:00
parent 7cd55ba23c
commit 6d0ddd29fc
3 changed files with 36 additions and 30 deletions

View File

@@ -4,10 +4,11 @@
EAPI=8
CONFIG_CHECK="~ADVISE_SYSCALLS"
PYTHON_COMPAT=( python3_{13..14} )
PYTHON_COMPAT=( python3_{11..14} )
PYTHON_REQ_USE="threads(+)"
inherit bash-completion-r1 check-reqs flag-o-matic linux-info ninja-utils pax-utils python-any-r1 toolchain-funcs xdg-utils
inherit bash-completion-r1 check-reqs flag-o-matic linux-info ninja-utils
inherit pax-utils python-any-r1 toolchain-funcs xdg-utils
DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
HOMEPAGE="https://nodejs.org/"
@@ -20,11 +21,11 @@ if [[ ${PV} == *9999 ]]; then
else
SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
SLOT="0/$(ver_cut 1)"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux ~x64-macos"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~x64-macos"
S="${WORKDIR}/node-v${PV}"
fi
IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto npm pax-kernel +snapshot +ssl +system-icu +system-ssl test"
IUSE="cpu_flags_x86_sse2 debug doc +icu +inspector lto npm pax-kernel +snapshot +ssl +system-icu +system-ssl test"
REQUIRED_USE="inspector? ( icu ssl )
npm? ( ssl )
system-icu? ( icu )
@@ -33,27 +34,33 @@ REQUIRED_USE="inspector? ( icu ssl )
RESTRICT="!test? ( test )"
RDEPEND=">=app-arch/brotli-1.1.0:=
COMMON_DEPEND=">=app-arch/brotli-1.1.0:=
dev-db/sqlite:3
>=dev-cpp/ada-3.3.0:=
>=dev-cpp/simdutf-7.3.4:=
>=dev-libs/libuv-1.51.0:=
>=dev-libs/simdjson-3.10.1:=
>=net-dns/c-ares-1.34.4:=
>=net-libs/nghttp2-1.64.0:=
>=dev-libs/simdjson-4.0.7:=
>=net-dns/c-ares-1.34.5:=
>=net-libs/nghttp2-1.66.0:=
>=net-libs/nghttp3-1.7.0:=
system-icu? ( >=dev-libs/icu-73:= )
system-ssl? (
>=net-libs/ngtcp2-1.9.1:=
>=dev-libs/openssl-1.1.1:0=
>=net-libs/ngtcp2-1.11.0:=
>=dev-libs/openssl-3.5.4:0=
)
!system-ssl? ( >=net-libs/ngtcp2-1.9.1:=[-gnutls] )
sys-devel/gcc:*"
!system-ssl? ( >=net-libs/ngtcp2-1.11.0:=[-gnutls] )
|| (
sys-devel/gcc:*
llvm-runtimes/libatomic-stub
)"
BDEPEND="${PYTHON_DEPS}
app-alternatives/ninja
sys-apps/coreutils
virtual/pkgconfig
test? ( net-misc/curl )
pax-kernel? ( sys-apps/elfix )"
DEPEND="${RDEPEND}"
DEPEND="${COMMON_DEPEND}"
RDEPEND="${COMMON_DEPEND}"
# These are measured on a loong machine with -ggdb on, and only checked
# if debugging flags are present in CFLAGS.
@@ -105,7 +112,8 @@ src_prepare() {
fi
# We need to disable mprotect on two files when it builds Bug 694100.
use pax-kernel && PATCHES+=( "${FILESDIR}"/${PN}-24.1.0-paxmarking.patch )
use pax-kernel &&
PATCHES+=( "${FILESDIR}"/${PN}-24.1.0-paxmarking.patch )
default
}
@@ -115,12 +123,14 @@ src_configure() {
# LTO compiler flags are handled by configure.py itself
filter-lto
# The warnings are *so* noisy and make build.logs massive
append-cxxflags $(test-flags-CXX -Wno-template-id-cdtor)
# https://bugs.gentoo.org/931514
use arm64 && append-flags $(test-flags-CXX -mbranch-protection=none)
local myconf=(
--ninja
# ada is not packaged yet
# https://github.com/ada-url/ada
# --shared-ada
--shared-ada
--shared-brotli
--shared-cares
--shared-libuv
@@ -128,9 +138,7 @@ src_configure() {
--shared-nghttp3
--shared-ngtcp2
--shared-simdjson
# sindutf is not packaged yet
# https://github.com/simdutf/simdutf
# --shared-simdutf
--shared-simdutf
--shared-sqlite
--shared-zlib
)
@@ -175,8 +183,7 @@ src_configure() {
}
src_compile() {
export NINJA_ARGS=" $(get_NINJAOPTS)"
emake -Onone
eninja -C out/Release
}
src_install() {
@@ -212,13 +219,12 @@ src_install() {
# Clean up
rm -f "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile}
rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man}
local find_exp="-or -name"
local find_name=()
for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
"*.md" "*.markdown" "*.bat" "*.cmd"; do
"*.bat" "*.cmd"; do
find_name+=( ${find_exp} "${match}" )
done