net-libs/nodejs: Fix llhttp/http_parser in live ebuild
authorJeroen Roovers <jer@gentoo.org>
Thu, 13 Dec 2018 12:49:53 +0000 (13:49 +0100)
committerJeroen Roovers <jer@gentoo.org>
Thu, 13 Dec 2018 12:50:16 +0000 (13:50 +0100)
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-libs/nodejs/files/nodejs-99999999-llhttp.patch [new file with mode: 0644]
net-libs/nodejs/nodejs-99999999.ebuild

diff --git a/net-libs/nodejs/files/nodejs-99999999-llhttp.patch b/net-libs/nodejs/files/nodejs-99999999-llhttp.patch
new file mode 100644 (file)
index 0000000..1b6eb9f
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/node.gypi
++++ b/node.gypi
+@@ -169,11 +169,15 @@
+ 
+     [ 'node_shared_http_parser=="false"', {
+       'dependencies': [
+-        'deps/http_parser/http_parser.gyp:http_parser',
+-        'deps/llhttp/llhttp.gyp:llhttp'
++        'deps/http_parser/http_parser.gyp:http_parser'
+       ],
+     } ],
+ 
++    [ '"true"', { 'dependencies': [
++        'deps/llhttp/llhttp.gyp:llhttp'
++      ],
++    }],
++
+     [ 'node_shared_cares=="false"', {
+       'dependencies': [ 'deps/cares/cares.gyp:cares' ],
+     }],
index f6a2fedbb6b8358830e913ab6bb096e013b0bd4f..e5f27818359a39635771470fa9819a34b5db3404 100644 (file)
@@ -39,6 +39,7 @@ DEPEND="
 "
 PATCHES=(
        "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
+       "${FILESDIR}"/${PN}-99999999-llhttp.patch
 )
 
 pkg_pretend() {