[Buildroot] [PATCH 2/2] package/vuejs: bump to version 3.2.39
Thomas Claveirole
thomas.claveirole at green-communications.fr
Tue Sep 13 17:40:39 UTC 2022
Signed-off-by: Thomas Claveirole <thomas.claveirole at green-communications.fr>
---
DEVELOPERS | 1 +
...hardcode-build-commit-to-v3.2.39-f79c4236.patch | 13 +++++++++++++
package/vuejs/Config.in | 4 ++++
package/vuejs/vuejs.hash | 2 +-
package/vuejs/vuejs.mk | 14 ++++++++++----
5 files changed, 29 insertions(+), 5 deletions(-)
create mode 100644 package/vuejs/0001-hardcode-build-commit-to-v3.2.39-f79c4236.patch
diff --git a/DEVELOPERS b/DEVELOPERS
index a707b0e5e1..fd32716282 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2818,6 +2818,7 @@ F: package/x265/
N: Thomas Claveirole <thomas.claveirole at green-communications.fr>
F: package/fcgiwrap/
F: package/openlayers/
+F: package/vuejs/
F: package/vuejs-router/
N: Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>
diff --git a/package/vuejs/0001-hardcode-build-commit-to-v3.2.39-f79c4236.patch b/package/vuejs/0001-hardcode-build-commit-to-v3.2.39-f79c4236.patch
new file mode 100644
index 0000000000..11a84e5c83
--- /dev/null
+++ b/package/vuejs/0001-hardcode-build-commit-to-v3.2.39-f79c4236.patch
@@ -0,0 +1,13 @@
+diff --git a/scripts/build.js b/scripts/build.js
+index efa5d7f0..f577dc61 100644
+--- a/scripts/build.js
++++ b/scripts/build.js
+@@ -31,7 +31,7 @@ const sourceMap = args.sourcemap || args.s
+ const isRelease = args.release
+ const buildTypes = args.t || args.types || isRelease
+ const buildAllMatching = args.all || args.a
+-const commit = execa.sync('git', ['rev-parse', 'HEAD']).stdout.slice(0, 7)
++const commit = "f79c4236"
+
+ run()
+
diff --git a/package/vuejs/Config.in b/package/vuejs/Config.in
index 6456d288f9..5413de0a01 100644
--- a/package/vuejs/Config.in
+++ b/package/vuejs/Config.in
@@ -1,5 +1,9 @@
config BR2_PACKAGE_VUEJS
bool "vuejs"
+ depends on BR2_PACKAGE_HOST_QEMU_USER_ARCH_SUPPORTS # host-nodejs
+ depends on BR2_HOST_GCC_AT_LEAST_8 # host-nodejs
+ select BR2_PACKAGE_HOST_NODEJS
+ select BR2_PACKAGE_HOST_NODEJS_COREPACK
help
VueJS web application framework.
diff --git a/package/vuejs/vuejs.hash b/package/vuejs/vuejs.hash
index c53364e97d..5218cce0b2 100644
--- a/package/vuejs/vuejs.hash
+++ b/package/vuejs/vuejs.hash
@@ -1,3 +1,3 @@
# Locally computed
-sha256 042033a2a8e6d45f750924953f03c34058d5afd9cc1571fbaf1827eaf04f6943 vue-3.2.33.tgz
+sha256 de7ce8e2493ac8f78f7cc0c31a4c7c3874ca9392bfa38dfb1ef5471e65adde31 vuejs-3.2.39.tar.gz
sha256 1bb85cc9b13b81ef41c81c51866172fc345e0503c86726a6755b796590b70175 LICENSE
diff --git a/package/vuejs/vuejs.mk b/package/vuejs/vuejs.mk
index d544124bbc..3e80d5519b 100644
--- a/package/vuejs/vuejs.mk
+++ b/package/vuejs/vuejs.mk
@@ -4,15 +4,21 @@
#
################################################################################
-VUEJS_VERSION = 3.2.33
-VUEJS_SOURCE = vue-$(VUEJS_VERSION).tgz
-VUEJS_SITE = https://registry.npmjs.org/vue/-
+VUEJS_VERSION = 3.2.39
+VUEJS_SITE = $(call github,vuejs,core,v$(VUEJS_VERSION))
VUEJS_LICENSE = MIT
VUEJS_LICENSE_FILES = LICENSE
+VUEJS_DEPENDENCIES = host-nodejs
+
+# See https://github.com/vuejs/core/blob/main/.github/contributing.md#development-setup
+define VUEJS_BUILD_CMDS
+ cd $(@D) && $(PNPM) install && $(NPM) run build -- vue -f global
+endef
+
# Install .prod.js as .js
define VUEJS_INSTALL_TARGET_CMDS
- $(INSTALL) -m 644 -D $(@D)/dist/vue.global.prod.js \
+ $(INSTALL) -m 644 -D $(@D)/packages/vue/dist/vue.global.prod.js \
$(TARGET_DIR)/var/www/vue.js
endef
--
2.37.2
More information about the buildroot
mailing list