summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-05-09 16:27:49 +0200
committerMarek Szuba <marecki@gentoo.org>2021-05-09 16:28:46 +0200
commit2a69a9423d3c927e16b001ac7da9d07953ff9243 (patch)
tree9cb50b0c0f871d6ee851b8a2dd59e166a643b955 /net-libs/nodejs/nodejs-14.16.1-r1.ebuild
parentnet-libs/nodejs-14.16.1-r1: synchronise test configuration with v16 (diff)
downloadgentoo-2a69a9423d3c927e16b001ac7da9d07953ff9243.tar.gz
gentoo-2a69a9423d3c927e16b001ac7da9d07953ff9243.tar.bz2
gentoo-2a69a9423d3c927e16b001ac7da9d07953ff9243.zip
net-libs/nodejs: sync the live ebuild with v16
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'net-libs/nodejs/nodejs-14.16.1-r1.ebuild')
-rw-r--r--net-libs/nodejs/nodejs-14.16.1-r1.ebuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/net-libs/nodejs/nodejs-14.16.1-r1.ebuild b/net-libs/nodejs/nodejs-14.16.1-r1.ebuild
index 3eb26e5b189c..82f78fb0068e 100644
--- a/net-libs/nodejs/nodejs-14.16.1-r1.ebuild
+++ b/net-libs/nodejs/nodejs-14.16.1-r1.ebuild
@@ -10,11 +10,18 @@ inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs
DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
HOMEPAGE="https://nodejs.org/"
-SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
-
LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
-SLOT="0/$(ver_cut 1)"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x64-macos"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/nodejs/node"
+ SLOT="0"
+else
+ SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
+ SLOT="0/$(ver_cut 1)"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x64-macos"
+ S="${WORKDIR}/node-v${PV}"
+fi
IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax_kernel +snapshot +ssl system-icu +system-ssl systemtap test"
REQUIRED_USE="inspector? ( icu ssl )
@@ -46,8 +53,6 @@ PATCHES=(
"${FILESDIR}"/${PN}-14.16.1-v8_icu69.patch
)
-S="${WORKDIR}/node-v${PV}"
-
pkg_pretend() {
(use x86 && ! use cpu_flags_x86_sse2) && \
die "Your CPU doesn't support the required SSE2 instruction."