mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 14:43:27 -04:00
dev-lang/quickjs: add 2026.06.04
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST quickjs-2025-09-13-2.tar.xz 596244 BLAKE2B da4bdb04e87a3f6086287e352e878e9f5b78034feda5687f7e191a549a4e2e7a0aa54ce89dd25b99eb685ff83db5898021a314f05ca20830c99f59379c413c3e SHA512 ea20d9ce8b6e09e58f1c3dc51086cd23c1ca18de7b5711bbd88e86dbbba2589b950acd22003e33fbed94dd4ec3e1828e6af5342ea9c62024cce7ca11eca1029c
|
||||
DIST quickjs-2026-06-04.tar.xz 621500 BLAKE2B 444207333eaf6e9bd5a6ea5fe2fda9ba3d9a596436eddc1ac2751ded1d04e877e3129828f5039802d7753ab3cb68b9e02609709021cd2328803bf8eff6ca4f19 SHA512 e02722a82de0d2b7d6c95edc57daccecb5680b8d87f3580424a143a04df197c0df5bcd51d138c5e1e8b0d78b423acfa39169e8c0bfc1ace8387e13fc3bca22e2
|
||||
|
||||
51
dev-lang/quickjs/quickjs-2026.06.04.ebuild
Normal file
51
dev-lang/quickjs/quickjs-2026.06.04.ebuild
Normal file
@@ -0,0 +1,51 @@
|
||||
# Copyright 2021-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=9
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_P="${PN}-${PV//./-}"
|
||||
|
||||
DESCRIPTION="Small embeddable Javascript engine"
|
||||
HOMEPAGE="https://bellard.org/quickjs/"
|
||||
SRC_URI="https://bellard.org/quickjs/${MY_P}.tar.xz"
|
||||
S="${WORKDIR}/${MY_P%-2}"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="lto static-libs"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/quickjs-2024-01-13-sharedlib.patch"
|
||||
"${FILESDIR}/quickjs-2025-09-13-respect-flags.patch"
|
||||
"${FILESDIR}/quickjs-2025-09-13-quickjs-pc.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i '/$(STRIP) .*/d' Makefile || die "Failed removing STRIP call"
|
||||
|
||||
sed -Ei '/^\s*(CC|AR)=/d' Makefile \
|
||||
|| die "Failed removing hard-coded tools"
|
||||
|
||||
sed -i 's;$(PREFIX)/lib;$(LIBDIR);' Makefile || die "Failed fixing libdir"
|
||||
|
||||
if ! use static-libs; then
|
||||
sed -i '/install -m644 libquickjs.a "$(DESTDIR)$(LIBDIR)\/quickjs"/d' Makefile || die "Failed fixing static-libs"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export CC="$(tc-getCC)"
|
||||
export AR="$(tc-getAR)"
|
||||
|
||||
export PREFIX=/usr
|
||||
export LIBDIR="/usr/$(get_libdir)"
|
||||
|
||||
export CONFIG_LTO=$(use lto)
|
||||
if ! use static-libs; then
|
||||
export CONFIG_SHARED=y
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user