blob: 72e9787eeba0110c27a5863da9adf8fc2659a364 (
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
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Embeddable Javascript engine"
HOMEPAGE="https://duktape.org"
SRC_URI="https://duktape.org/${P}.tar.xz"
LICENSE="MIT"
# Upstream don't maintain binary compatibility
# https://github.com/svaarala/duktape/issues/1524
SLOT="0/${PV}"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86"
PATCHES=(
"${FILESDIR}"/${PN}-2.7.0-respect-tc-env.patch
)
src_prepare() {
default
mv Makefile.sharedlibrary Makefile || die "failed to rename makefile"
}
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
dodir /usr/$(get_libdir)
dodir /usr/include
emake INSTALL_PREFIX="${ED}"/usr LIBDIR="/$(get_libdir)" install
}
|