mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 20:13:01 -04:00
dev-lang/quickjs: Version bump: 2021.03.27.
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
36
dev-lang/quickjs/quickjs-2021.03.27.ebuild
Normal file
36
dev-lang/quickjs/quickjs-2021.03.27.ebuild
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user