net-libs/nodejs: Add USE=inspector (bug #638456 by Rodrigo Saboya).
authorJeroen Roovers <jer@gentoo.org>
Sat, 25 Nov 2017 06:35:42 +0000 (07:35 +0100)
committerJeroen Roovers <jer@gentoo.org>
Sat, 25 Nov 2017 06:36:23 +0000 (07:36 +0100)
Package-Manager: Portage-2.3.16, Repoman-2.3.6

net-libs/nodejs/metadata.xml
net-libs/nodejs/nodejs-8.9.1-r1.ebuild
net-libs/nodejs/nodejs-9.2.0-r1.ebuild

index 2950626d4ef62002d0c51a2d0949d07a58b6225e..d512ddee8e7b67d36546ce0ce78d81a7bf090332 100644 (file)
@@ -6,6 +6,7 @@
                <name>Patrick Lauer</name>
        </maintainer>
        <use>
+       <flag name="inspector">Enable V8 inspector</flag>
        <flag name="npm">Enable NPM package manager</flag>
        <flag name="snapshot">Enable snapshot creation for faster startup</flag>
        <flag name="systemtap">Enable SystemTAP/DTrace tracing</flag>
index c36cfdcd86b5ef99bfe144babf953edc67becfbe..e3f1fec1f463fde6344c86241e52398a167a9270 100644 (file)
@@ -16,7 +16,11 @@ 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"
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
-IUSE="cpu_flags_x86_sse2 debug doc icu +npm +snapshot +ssl systemtap test"
+IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
+REQUIRED_USE="
+       ${PYTHON_REQUIRED_USE}
+       inspector? ( icu ssl )
+"
 
 RDEPEND="
        >=dev-libs/libuv-1.15.0:=
@@ -33,7 +37,6 @@ DEPEND="${RDEPEND}
        test? ( net-misc/curl )"
 
 S="${WORKDIR}/node-v${PV}"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 PATCHES=(
        "${FILESDIR}"/gentoo-global-npm-config.patch
@@ -94,6 +97,7 @@ src_configure() {
        local myconf=( --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib )
        use debug && myconf+=( --debug )
        use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
+       use inspector || myconf+=( --without-inspector )
        use npm || myconf+=( --without-npm )
        use snapshot && myconf+=( --with-snapshot )
        use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )
index 741c961bd19cba6e7c1343dde48042afba11021c..782c122520460615d2b082fbf51fead9eb2a7884 100644 (file)
@@ -16,7 +16,11 @@ 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"
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
-IUSE="cpu_flags_x86_sse2 debug doc icu +npm +snapshot +ssl systemtap test"
+IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
+REQUIRED_USE="
+       ${PYTHON_REQUIRED_USE}
+       inspector? ( icu ssl )
+"
 
 RDEPEND="
        >=dev-libs/libuv-1.16.1:=
@@ -33,7 +37,6 @@ DEPEND="${RDEPEND}
        test? ( net-misc/curl )"
 
 S="${WORKDIR}/node-v${PV}"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 PATCHES=(
        "${FILESDIR}"/gentoo-global-npm-config.patch
@@ -94,6 +97,7 @@ src_configure() {
        local myconf=( --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib )
        use debug && myconf+=( --debug )
        use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
+       use inspector || myconf+=( --without-inspector )
        use npm || myconf+=( --without-npm )
        use snapshot && myconf+=( --with-snapshot )
        use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )