dev-lang/quickjs: Version bump: 2021.03.27.

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
Ronny (tastytea) Gutbrod
2021-04-30 00:10:55 +02:00
parent cb92f64988
commit 55cc99be60
2 changed files with 37 additions and 0 deletions

View File

@@ -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

View File

@@ -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
}