guru/dev-lang/quickjs/quickjs-2020.11.08.ebuild
Andrew Ammerlaan c0dfcc7b35
dev-lang/quickjs: add missing metadata file
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
2021-01-25 18:37:37 +01:00

24 lines
486 B
Bash

# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
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"
src_prepare() {
sed -i \
-e 's;prefix=/usr/local;prefix=/usr;' \
-e '/$(STRIP) .*/d' \
Makefile || die "Failed setting prefix"
default
}