1 |
commit: 63926daea9a8a9b4e5e6f49b5159b5cdd6dd39b7 |
2 |
Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 7 02:13:03 2018 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 7 02:13:03 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63926dae |
7 |
|
8 |
dev-lang/mujs: bump to 1.0.4 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/605554 |
11 |
Bug: https://bugs.gentoo.org/646784 |
12 |
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org> |
13 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
14 |
|
15 |
dev-lang/mujs/Manifest | 1 + |
16 |
dev-lang/mujs/files/mujs-1.0.4-gentoo.patch | 23 ++++++++++++++++ |
17 |
dev-lang/mujs/mujs-1.0.4.ebuild | 42 +++++++++++++++++++++++++++++ |
18 |
3 files changed, 66 insertions(+) |
19 |
|
20 |
diff --git a/dev-lang/mujs/Manifest b/dev-lang/mujs/Manifest |
21 |
index 33f28245f89..55458109be0 100644 |
22 |
--- a/dev-lang/mujs/Manifest |
23 |
+++ b/dev-lang/mujs/Manifest |
24 |
@@ -1,2 +1,3 @@ |
25 |
DIST mujs-0_p20161202.tar.gz 105413 BLAKE2B a65a343d6f60975c88001cdd8eae881559eaf8ba94cf26c8aa9a9a3837cd47ee798c784ed9e90380a76ef328e56d63d1dccd8a85a4a7496d31046d221cf8d7b9 SHA512 90dd1bce44740715a6f642bdb376be230c4a03c7970c2026479cf014a080b98b56a2131ca7ef8bf9c05b91285fe7dcc21dd4ca83879750351d57088408a62cbc |
26 |
DIST mujs-1.0.1.tar.gz 116948 BLAKE2B 54d898eff95e65688a51d9df9175964609a55ad3243ffaa4da10f27a6262a207777dd500cb76aefc22aa52799fed577864d15dfec9ed4aea24f0a4f1ff8dfa0a SHA512 46cbc45735dbf173d7fa5839e3b511730e4d42933c2286d170767659649ea88c2a3dcc74fb986d1eedb1d4fec8fcaaba146805cc9d0ef7da98bb5a9ce0c80a96 |
27 |
+DIST mujs-1.0.4.tar.xz 91520 BLAKE2B 6ffe62b19b140e2ae63ebe59a3b3bd352936ccba53dda3b0fcf575440dc790a0767c7de8c0a1441d26c11c65074520a80050cc0efa1113be0df51a802e719574 SHA512 a32498fee20ab6ddc8bbf79b4fdd82f3560d4e4b28bbe57c4e8f1df4a8a5367a689b6c9a391761abe47a8f15d2832fede4a508330eb181744b9563ae9954c102 |
28 |
|
29 |
diff --git a/dev-lang/mujs/files/mujs-1.0.4-gentoo.patch b/dev-lang/mujs/files/mujs-1.0.4-gentoo.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..c05b8787466 |
32 |
--- /dev/null |
33 |
+++ b/dev-lang/mujs/files/mujs-1.0.4-gentoo.patch |
34 |
@@ -0,0 +1,23 @@ |
35 |
+1. Add to user-defined CFLAGS instead of being overwritten by them |
36 |
+2. Don't strip binaries: it leads to QA warnings |
37 |
+diff --git a/Makefile b/Makefile |
38 |
+index 7284f51..7615158 100644 |
39 |
+--- a/Makefile |
40 |
++++ b/Makefile |
41 |
+@@ -15,7 +15,7 @@ endif |
42 |
+ |
43 |
+ # Compiler flags for various configurations: |
44 |
+ |
45 |
+-CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter |
46 |
++CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter |
47 |
+ |
48 |
+ ifeq "$(CC)" "clang" |
49 |
+ CFLAGS += -Wunreachable-code |
50 |
+@@ -32,7 +32,6 @@ else ifeq "$(build)" "sanitize" |
51 |
+ LDFLAGS += -fsanitize=address |
52 |
+ else |
53 |
+ CFLAGS += -Os |
54 |
+- LDFLAGS += -Wl,-s |
55 |
+ endif |
56 |
+ |
57 |
+ ifeq "$(HAVE_READLINE)" "yes" |
58 |
|
59 |
diff --git a/dev-lang/mujs/mujs-1.0.4.ebuild b/dev-lang/mujs/mujs-1.0.4.ebuild |
60 |
new file mode 100644 |
61 |
index 00000000000..91ee7c0085a |
62 |
--- /dev/null |
63 |
+++ b/dev-lang/mujs/mujs-1.0.4.ebuild |
64 |
@@ -0,0 +1,42 @@ |
65 |
+# Copyright 1999-2018 Gentoo Authors |
66 |
+# Distributed under the terms of the GNU General Public License v2 |
67 |
+ |
68 |
+EAPI=7 |
69 |
+inherit flag-o-matic multilib toolchain-funcs |
70 |
+ |
71 |
+DESCRIPTION="lightweight Javascript interpreter" |
72 |
+HOMEPAGE="http://mujs.com/" |
73 |
+SRC_URI="https://mujs.com/downloads/${P}.tar.xz" |
74 |
+ |
75 |
+LICENSE="AGPL-3" |
76 |
+SLOT="0" |
77 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos" |
78 |
+IUSE="static-libs" |
79 |
+ |
80 |
+PATCHES=( |
81 |
+ "${FILESDIR}"/${PN}-1.0.4-gentoo.patch |
82 |
+) |
83 |
+ |
84 |
+src_prepare() { |
85 |
+ default |
86 |
+ append-cflags -fPIC -Wl,-soname=lib${PN}.so.${PV} |
87 |
+ tc-export CC |
88 |
+} |
89 |
+ |
90 |
+src_compile() { |
91 |
+ emake VERSION=${PV} prefix=/usr shared |
92 |
+} |
93 |
+ |
94 |
+src_install() { |
95 |
+ emake \ |
96 |
+ DESTDIR="${ED}" \ |
97 |
+ VERSION=${PV} \ |
98 |
+ prefix=/usr \ |
99 |
+ libdir="/usr/$(get_libdir)" \ |
100 |
+ install-shared \ |
101 |
+ $(usex static-libs install-static '') |
102 |
+ |
103 |
+ mv -v "${D}"/usr/$(get_libdir)/lib${PN}.so{,.${PV}} || die |
104 |
+ dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so || die |
105 |
+ dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.${PV:0:1} || die |
106 |
+} |