aboutsummaryrefslogtreecommitdiffstats
path: root/main/nodejs
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-11-26 13:12:04 +0100
committerJakub Jirutka <jakub@jirutka.cz>2016-11-26 21:51:21 +0100
commit6662eb3199902e8451fb20dce82554ad96f796bb (patch)
tree3c3320969f0b5b2d69bbc087c27d5402f1dec8c1 /main/nodejs
parentb4764acab0dbcfe9a5c218f5896f6fa44cfe780d (diff)
downloadaports-6662eb3199902e8451fb20dce82554ad96f796bb.tar.bz2
aports-6662eb3199902e8451fb20dce82554ad96f796bb.tar.xz
main/nodejs: remove unused bundled dependencies
Diffstat (limited to 'main/nodejs')
-rw-r--r--main/nodejs/APKBUILD15
-rw-r--r--main/nodejs/dont-run-gyp-files-for-bundled-deps.patch18
2 files changed, 29 insertions, 4 deletions
diff --git a/main/nodejs/APKBUILD b/main/nodejs/APKBUILD
index 7b6f11b3aa..b6ed3966a9 100644
--- a/main/nodejs/APKBUILD
+++ b/main/nodejs/APKBUILD
@@ -12,7 +12,8 @@ makedepends="python2 openssl-dev zlib-dev libuv-dev linux-headers paxmark
subpackages="$pkgname-dev $pkgname-doc"
replaces="nodejs-lts"
source="https://nodejs.org/dist/v$pkgver/node-v$pkgver.tar.gz
- use-system-ca-certs.patch"
+ use-system-ca-certs.patch
+ dont-run-gyp-files-for-bundled-deps.patch"
builddir="$srcdir/node-v$pkgver"
prepare() {
@@ -20,6 +21,9 @@ prepare() {
# Remove bundled CA certificates.
rm -f src/node_root_certs.h
+
+ # Remove bundled dependencies that we're not using.
+ rm -rf deps/http_parser deps/openssl deps/uv deps/zlib
}
build() {
@@ -52,8 +56,11 @@ package() {
}
md5sums="a42b7ab2bcf5f8d94a432163d90f3026 node-v6.7.0.tar.gz
-14ce8e0fb44d5bf75974026900e0d8c2 use-system-ca-certs.patch"
+14ce8e0fb44d5bf75974026900e0d8c2 use-system-ca-certs.patch
+5d99a53ef07e15fe882d449ed995bd91 dont-run-gyp-files-for-bundled-deps.patch"
sha256sums="02b8ee1719a11b9ab22bef9279519efaaf31dd0d39cba4c3a1176ccda400b8d6 node-v6.7.0.tar.gz
-fcd2becd2cb9a62537ae11f51f448fd1061aaae17835bb0f2d2aa71bdf9652c0 use-system-ca-certs.patch"
+fcd2becd2cb9a62537ae11f51f448fd1061aaae17835bb0f2d2aa71bdf9652c0 use-system-ca-certs.patch
+c20a62b9dd64591b91a0c1dae649ac04cf7aec402672b349f8daa04f2a08a77b dont-run-gyp-files-for-bundled-deps.patch"
sha512sums="3cd095adc0866b780519006098b434e3b126f67a453e44863c773829de4ce29f573d13efa1c50af001009bdb433728309ef7109e144517ffc5dd5e3251b1f511 node-v6.7.0.tar.gz
-c540878495761f4c38f3cccd61da75fa5619637ba9887b7946964a7cef790178e26678fe0aabe400e32c8f0f65e97a519ceee1534bbf18a1a14bc6e9fe067637 use-system-ca-certs.patch"
+c540878495761f4c38f3cccd61da75fa5619637ba9887b7946964a7cef790178e26678fe0aabe400e32c8f0f65e97a519ceee1534bbf18a1a14bc6e9fe067637 use-system-ca-certs.patch
+a8be538158b7c96341a407acba30450ddc5c3ad764e7efe728d1ceff64efc3067b177855b9ef91b54400be6a02600d83da4c21a07ae9d7dc0774f92b2006ea8b dont-run-gyp-files-for-bundled-deps.patch"
diff --git a/main/nodejs/dont-run-gyp-files-for-bundled-deps.patch b/main/nodejs/dont-run-gyp-files-for-bundled-deps.patch
new file mode 100644
index 0000000000..d65b456aaf
--- /dev/null
+++ b/main/nodejs/dont-run-gyp-files-for-bundled-deps.patch
@@ -0,0 +1,18 @@
+From: Stephen Gallagher <sgallagh@redhat.com>
+Date: Tue, 1 Dec 2015 16:35:29 -0500
+Subject: Disable running gyp files for bundled deps
+
+--- a/Makefile
++++ b/Makefile
+@@ -70,7 +70,7 @@ $(NODE_G_EXE): config.gypi out/Makefile
+ $(MAKE) -C out BUILDTYPE=Debug V=$(V)
+ ln -fs out/Debug/$(NODE_EXE) $@
+
+-out/Makefile: common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp deps/zlib/zlib.gyp deps/v8/build/toolchain.gypi deps/v8/build/features.gypi deps/v8/tools/gyp/v8.gyp node.gyp config.gypi
++out/Makefile: common.gypi deps/v8/build/toolchain.gypi deps/v8/build/features.gypi deps/v8/tools/gyp/v8.gyp node.gyp config.gypi
+ $(PYTHON) tools/gyp_node.py -f make
+
+ config.gypi: configure
+--
+2.9.0
+