commit: 55cc99be60d45eea636071cdb623d59156805425
Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Thu Apr 29 22:10:55 2021 +0000
Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Thu Apr 29 22:10:55 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=55cc99be
dev-lang/quickjs: Version bump: 2021.03.27.
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
dev-lang/quickjs/Manifest | 1 +
dev-lang/quickjs/quickjs-2021.03.27.ebuild | 36 ++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+)
diff --git a/dev-lang/quickjs/Manifest b/dev-lang/quickjs/Manifest
index 0ce68514d..63f196f34 100644
--- a/dev-lang/quickjs/Manifest
+++ b/dev-lang/quickjs/Manifest
@@ -1 +1,2 @@
DIST quickjs-2020-11-08.tar.xz 752132 BLAKE2B
6382bac9f42f89f63ee90af1845f3d6370d434f4b05415559801d9e8c4d06ed672b7db8296300e884a1ac8a96e174257b25097ee299689da2d6c2ece42ad680d
SHA512
d437813948269bab6046c0219eb20ccea45613073bea1c4eee5b553831fdaaa5e2165b14fcb436e86bf70d488200845f7821864abb6f40b115f0ef7f24971e02
+DIST quickjs-2021-03-27.tar.xz 753556 BLAKE2B
a959da95ca4861b5675359ac81598b50a80170ec4f4d819c44d666dd4ecb5a2e11d63230f98b611d5109941f5b21f5c8f791d56d153b818408ec1c59350d5e1d
SHA512
eeb810083484df213bc658a8703ca3ef094b7789c2b49eed86cb4068c9f9da401ad0300261d61a163c6ea82306f3ef50bf8e29a64920f704fd8958ef08a7286c
diff --git a/dev-lang/quickjs/quickjs-2021.03.27.ebuild
b/dev-lang/quickjs/quickjs-2021.03.27.ebuild
new file mode 100644
index 000000000..c787f5c8a
--- /dev/null
+++ b/dev-lang/quickjs/quickjs-2021.03.27.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+MY_P="${PN}-${PV//./-}"
+
+DESCRIPTION="Small embeddable Javascript engine"
+HOMEPAGE="https://bellard.org/quickjs/"
+SRC_URI="https://bellard.org/quickjs/${MY_P}.tar.xz"
+S="${WORKDIR}/${MY_P}"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+PATCHES=( "${FILESDIR}/${PN}-2020.11.08_Remove-TTY-check-in-test.patch" )
+
+src_prepare() {
+ sed -i \
+ -e 's;prefix=/usr/local;prefix=/usr;' \
+ -e '/$(STRIP) .*/d' \
+ Makefile || die "Failed setting prefix"
+
+ sed -Ei '/^\s*(CC|AR)=/d' Makefile \
+ || die "Failed to remove hard-coded tools."
+
+ sed -Ei 's/(^\s*(C|LD)FLAGS)=/\1\+=/' Makefile \
+ || die "Failed to change build flag assignment into addition."
+
+ export CC="$(tc-getCC)"
+ export AR="$(tc-getAR)"
+
+ default
+}