1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit flag-o-matic toolchain-funcs
8 DESCRIPTION="An embeddable Javascript interpreter in C."
11 https://github.com/ccxvii/mujs/
13 SRC_URI="https://github.com/ccxvii/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
17 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 s390 sparc x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
20 RDEPEND="sys-libs/readline:0="
24 "${FILESDIR}/${P}-flags.patch"
32 append-cflags -fPIC -Wl,-soname=lib${PN}.so.${PV}
36 emake VERSION=${PV} prefix=/usr shared
43 libdir="/usr/$(get_libdir)"
46 $(usex static-libs install-static '')
49 emake "${myeconfargs[@]}"
51 mv -v "${ED}"/usr/$(get_libdir)/lib${PN}.so{,.${PV}} || die
53 dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so
54 dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.${PV:0:1}