blob: 12214dabbbe0d02ccfc514d87399d097158f8f76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
DESCRIPTION="QuickJS, the Next Generation: a mighty JavaScript engine"
HOMEPAGE="https://github.com/quickjs-ng/quickjs"
SRC_URI="
https://github.com/quickjs-ng/quickjs/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
"
MY_PN="quickjs"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="MIT"
SLOT="0/$(ver_cut 1)"
KEYWORDS="amd64 arm64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
src_configure() {
local emesonargs=(
-Ddefault_library=shared # default_library=static hardcoded.
-Ddocdir="${EPREFIX}/usr/share/doc/${PF}"
"$(meson_feature test tests)"
-Dlibc=true
-Dexamples=disabled
)
meson_src_configure
}
src_install() {
# Source code files under examples.
docompress -x "/usr/share/doc/${PF}/examples"
meson_src_install
}
|