Install this version:
emerge -a =dev-lang/quickjs-2024.07.27
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-lang/quickjs-2024.07.27
Or alternatively:
emerge --autounmask-write -a =dev-lang/quickjs-2024.07.27
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 2024.07.27 | 8 | ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 | 0 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit custom-cflags toolchain-funcs
DESCRIPTION="Small embeddable JavaScript engine"
HOMEPAGE="https://bellard.org/quickjs/
https://github.com/bellard/quickjs/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/bellard/${PN}.git"
else
if [[ "${PV}" == 2024.07.27* ]] ; then
COMMIT="6e2e68fd0896957f92eb6c242a2e048c1ef3cae0"
else
die "Unknown COMMIT for version, given: ${PV}"
fi
SRC_URI="https://github.com/bellard/${PN}/archive/${COMMIT}.tar.gz
-> ${P}.gh.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
fi
LICENSE="MIT"
SLOT="0"
PATCHES=(
"${FILESDIR}/quickjs-2024.01.13-sharedlib.patch"
)
src_prepare() {
default
sed -i Makefile \
-e '/$(STRIP) .*/d' -e 's;$(PREFIX)/lib;$(LIBDIR);' \
|| die
sed -E -i Makefile \
-e '/^\s*(CC|AR)=/d' \
|| die
}
src_configure() {
custom-cflags_src_configure
tc-export AR CC
export CONFIG_SHARED="y"
export PREFIX="/usr"
export LIBDIR="/usr/$(get_libdir)"
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | quickjs-2024.07.27.gh.tar.gz | 628637 bytes | https://github.com/bellard/quickjs/archive/6e2e68fd0896957f92eb6c242a2e048c1ef3cae0.tar.gz |