diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-10-07 11:03:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-10-07 11:03:14 +0100 |
commit | 957235cf19a691360c720f7913672adda4258ed0 (patch) | |
tree | 812bba7928f4293ead05a7ee9c1ac39c5ef9f12e /dev-lang/mujs/mujs-1.0.4.ebuild | |
parent | 62f67115b5c46134c34f88f4b1cbdacc19384c0a (diff) |
gentoo resync : 07.10.2018
Diffstat (limited to 'dev-lang/mujs/mujs-1.0.4.ebuild')
-rw-r--r-- | dev-lang/mujs/mujs-1.0.4.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-lang/mujs/mujs-1.0.4.ebuild b/dev-lang/mujs/mujs-1.0.4.ebuild new file mode 100644 index 000000000000..91ee7c0085a7 --- /dev/null +++ b/dev-lang/mujs/mujs-1.0.4.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit flag-o-matic multilib toolchain-funcs + +DESCRIPTION="lightweight Javascript interpreter" +HOMEPAGE="http://mujs.com/" +SRC_URI="https://mujs.com/downloads/${P}.tar.xz" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="static-libs" + +PATCHES=( + "${FILESDIR}"/${PN}-1.0.4-gentoo.patch +) + +src_prepare() { + default + append-cflags -fPIC -Wl,-soname=lib${PN}.so.${PV} + tc-export CC +} + +src_compile() { + emake VERSION=${PV} prefix=/usr shared +} + +src_install() { + emake \ + DESTDIR="${ED}" \ + VERSION=${PV} \ + prefix=/usr \ + libdir="/usr/$(get_libdir)" \ + install-shared \ + $(usex static-libs install-static '') + + mv -v "${D}"/usr/$(get_libdir)/lib${PN}.so{,.${PV}} || die + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so || die + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.${PV:0:1} || die +} |