1 |
commit: 9a438ff2e35b0523c94358ce17649736eca65e89 |
2 |
Author: Sam James (sam_c) <sam <AT> cmpct <DOT> info> |
3 |
AuthorDate: Fri Jun 19 06:25:12 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 26 20:42:03 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a438ff2 |
7 |
|
8 |
dev-lang/mujs: bump to 1.0.7 |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Sam James (sam_c) <sam <AT> cmpct.info> |
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
dev-lang/mujs/Manifest | 1 + |
15 |
dev-lang/mujs/mujs-1.0.7.ebuild | 58 +++++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 59 insertions(+) |
17 |
|
18 |
diff --git a/dev-lang/mujs/Manifest b/dev-lang/mujs/Manifest |
19 |
index c99e3bce086..c07e750b3a5 100644 |
20 |
--- a/dev-lang/mujs/Manifest |
21 |
+++ b/dev-lang/mujs/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST mujs-1.0.5.tar.gz 119353 BLAKE2B 48f1b598e50d5804b0d64230cdd6b4d3f719187ea0906f45c9f45baee2c8df59c6fd09dc25afc9e1ce4e20a9866d158d16a4632bec552fddd8fac70b20e2363f SHA512 c1c59b5e80e0e5f580f30dfc0b4707b6a1e44a73c746b9783bb24d91429ddf8ed670a7663478300cc568cfc15a511720b6d18be2ade40a3a66fc7ab8f3933c2d |
24 |
DIST mujs-1.0.6.tar.gz 121385 BLAKE2B b74da9cc9df6c51d81fe4b6170fddd9bfd3e37cc1c48509ddbcc9b657feb7169cfa98427770a118fb9c0923e70320668198739ea111cbd5d1c2303b2ada7093d SHA512 c3062348dcc79b8ea3726fc528b3ba765d3462232059617b9ab221ba47fa904cc81a305a6199a9a2cea24a2d891ca63d475b4884cd4e53fa715b3a55f51ca4d9 |
25 |
+DIST mujs-1.0.7.tar.xz 93928 BLAKE2B 3c29ad3c23b75ee310824a36c0b08ede07b4ebaebff78558d07bc0eda55d6a994551502089cebd5b53ae24364ec1170e0865b7f1560d909dd15a18040666fea2 SHA512 30cc06ce4a608e091d46ba903ffc2eda29972cf583eb077d7824627fa20423c4721a406bf4271ebd5e5cade74f34e19acc9cffbc6d4d44314085a5525e91564f |
26 |
|
27 |
diff --git a/dev-lang/mujs/mujs-1.0.7.ebuild b/dev-lang/mujs/mujs-1.0.7.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..e6ca251d080 |
30 |
--- /dev/null |
31 |
+++ b/dev-lang/mujs/mujs-1.0.7.ebuild |
32 |
@@ -0,0 +1,58 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit flag-o-matic toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="An embeddable Javascript interpreter in C." |
41 |
+HOMEPAGE=" |
42 |
+ https://mujs.com/ |
43 |
+ https://github.com/ccxvii/mujs/ |
44 |
+" |
45 |
+SRC_URI="https://mujs.com/downloads/${P}.tar.xz" |
46 |
+ |
47 |
+LICENSE="ISC" |
48 |
+# subslot matches SONAME |
49 |
+SLOT="0/${PV}" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos" |
51 |
+IUSE="static-libs" |
52 |
+ |
53 |
+RDEPEND="sys-libs/readline:0=" |
54 |
+DEPEND="${RDEPEND}" |
55 |
+ |
56 |
+PATCHES=( |
57 |
+ "${FILESDIR}/${PN}-1.0.5-flags.patch" |
58 |
+) |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ |
63 |
+ tc-export AR CC |
64 |
+ |
65 |
+ # library's ABI (and API) changes in ~each release: |
66 |
+ # diff 'usr/includemujs.h' across releases to validate |
67 |
+ append-cflags -fPIC -Wl,-soname=lib${PN}.so.${PV} |
68 |
+} |
69 |
+ |
70 |
+src_compile() { |
71 |
+ emake VERSION=${PV} prefix=/usr shared |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ local myeconfargs=( |
76 |
+ DESTDIR="${ED}" |
77 |
+ install-shared |
78 |
+ libdir="/usr/$(get_libdir)" |
79 |
+ prefix="/usr" |
80 |
+ VERSION="${PV}" |
81 |
+ $(usex static-libs install-static '') |
82 |
+ ) |
83 |
+ |
84 |
+ emake "${myeconfargs[@]}" |
85 |
+ |
86 |
+ mv -v "${ED}"/usr/$(get_libdir)/lib${PN}.so{,.${PV}} || die |
87 |
+ |
88 |
+ dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so |
89 |
+ dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.${PV:0:1} |
90 |
+} |