1 |
commit: 55cc99be60d45eea636071cdb623d59156805425 |
2 |
Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de> |
3 |
AuthorDate: Thu Apr 29 22:10:55 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Thu Apr 29 22:10:55 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=55cc99be |
7 |
|
8 |
dev-lang/quickjs: Version bump: 2021.03.27. |
9 |
|
10 |
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de> |
11 |
|
12 |
dev-lang/quickjs/Manifest | 1 + |
13 |
dev-lang/quickjs/quickjs-2021.03.27.ebuild | 36 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 37 insertions(+) |
15 |
|
16 |
diff --git a/dev-lang/quickjs/Manifest b/dev-lang/quickjs/Manifest |
17 |
index 0ce68514d..63f196f34 100644 |
18 |
--- a/dev-lang/quickjs/Manifest |
19 |
+++ b/dev-lang/quickjs/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST quickjs-2020-11-08.tar.xz 752132 BLAKE2B 6382bac9f42f89f63ee90af1845f3d6370d434f4b05415559801d9e8c4d06ed672b7db8296300e884a1ac8a96e174257b25097ee299689da2d6c2ece42ad680d SHA512 d437813948269bab6046c0219eb20ccea45613073bea1c4eee5b553831fdaaa5e2165b14fcb436e86bf70d488200845f7821864abb6f40b115f0ef7f24971e02 |
22 |
+DIST quickjs-2021-03-27.tar.xz 753556 BLAKE2B a959da95ca4861b5675359ac81598b50a80170ec4f4d819c44d666dd4ecb5a2e11d63230f98b611d5109941f5b21f5c8f791d56d153b818408ec1c59350d5e1d SHA512 eeb810083484df213bc658a8703ca3ef094b7789c2b49eed86cb4068c9f9da401ad0300261d61a163c6ea82306f3ef50bf8e29a64920f704fd8958ef08a7286c |
23 |
|
24 |
diff --git a/dev-lang/quickjs/quickjs-2021.03.27.ebuild b/dev-lang/quickjs/quickjs-2021.03.27.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000..c787f5c8a |
27 |
--- /dev/null |
28 |
+++ b/dev-lang/quickjs/quickjs-2021.03.27.ebuild |
29 |
@@ -0,0 +1,36 @@ |
30 |
+# Copyright 2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+inherit toolchain-funcs |
36 |
+ |
37 |
+MY_P="${PN}-${PV//./-}" |
38 |
+ |
39 |
+DESCRIPTION="Small embeddable Javascript engine" |
40 |
+HOMEPAGE="https://bellard.org/quickjs/" |
41 |
+SRC_URI="https://bellard.org/quickjs/${MY_P}.tar.xz" |
42 |
+S="${WORKDIR}/${MY_P}" |
43 |
+LICENSE="MIT" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64" |
46 |
+ |
47 |
+PATCHES=( "${FILESDIR}/${PN}-2020.11.08_Remove-TTY-check-in-test.patch" ) |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ sed -i \ |
51 |
+ -e 's;prefix=/usr/local;prefix=/usr;' \ |
52 |
+ -e '/$(STRIP) .*/d' \ |
53 |
+ Makefile || die "Failed setting prefix" |
54 |
+ |
55 |
+ sed -Ei '/^\s*(CC|AR)=/d' Makefile \ |
56 |
+ || die "Failed to remove hard-coded tools." |
57 |
+ |
58 |
+ sed -Ei 's/(^\s*(C|LD)FLAGS)=/\1\+=/' Makefile \ |
59 |
+ || die "Failed to change build flag assignment into addition." |
60 |
+ |
61 |
+ export CC="$(tc-getCC)" |
62 |
+ export AR="$(tc-getAR)" |
63 |
+ |
64 |
+ default |
65 |
+} |