mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-17 23:34:07 +00:00
community/nodejs to 16.0.0-1
This commit is contained in:
parent
32d5b4f1a8
commit
3d6d4a5238
2 changed files with 4 additions and 106 deletions
|
@ -13,8 +13,8 @@
|
||||||
buildarch=28
|
buildarch=28
|
||||||
|
|
||||||
pkgname=nodejs
|
pkgname=nodejs
|
||||||
pkgver=15.14.0
|
pkgver=16.0.0
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
pkgdesc='Evented I/O for V8 javascript'
|
pkgdesc='Evented I/O for V8 javascript'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url='https://nodejs.org/'
|
url='https://nodejs.org/'
|
||||||
|
@ -23,15 +23,8 @@ license=('MIT')
|
||||||
depends=('openssl' 'zlib' 'icu' 'libuv' 'libnghttp2') # 'c-ares' 'http-parser' 'v8')
|
depends=('openssl' 'zlib' 'icu' 'libuv' 'libnghttp2') # 'c-ares' 'http-parser' 'v8')
|
||||||
makedepends=('python' 'procps-ng')
|
makedepends=('python' 'procps-ng')
|
||||||
optdepends=('npm: nodejs package manager')
|
optdepends=('npm: nodejs package manager')
|
||||||
source=("nodejs-$pkgver.tar.gz::https://github.com/nodejs/node/archive/v$pkgver.tar.gz"
|
source=("https://github.com/nodejs/node/archive/v$pkgver/nodejs-$pkgver.tar.gz")
|
||||||
v8-call-new-ListFormatter-createInstance.patch)
|
sha512sums=('606d283307e463f7bd91ad42be3d4d194ee57dd1e1c3a29e87ada0d4de70186b3920758f567f09fe5f93a0ceed92d485dd372074974d176c4eef0b6678102c3e')
|
||||||
sha512sums=('ec77322d6832e01f4be22e62ebb6cd232a840d4bd917f532543915a4e5203eec931191563dfbbeaa6a08db4b25b583e38c210abad17b19d86db35ef826f30a00'
|
|
||||||
'd21c1e3ba9ce31358a08579b8ff5dd60c231c5f9074d3b225f671889aa3e0c28259f6dce789adc838729edc4d81a23da4d81ec9ac188a7652c43c1396e21b5b4')
|
|
||||||
|
|
||||||
prepare() {
|
|
||||||
cd node-$pkgver
|
|
||||||
patch -Np1 -d deps/v8 <../v8-call-new-ListFormatter-createInstance.patch
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd node-$pkgver
|
cd node-$pkgver
|
||||||
|
|
|
@ -1,95 +0,0 @@
|
||||||
From 035c305ce7761f51328b45f1bd83e26aef267c9d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Frank Tang <ftang@chromium.org>
|
|
||||||
Date: Thu, 15 Oct 2020 22:44:27 -0700
|
|
||||||
Subject: [PATCH] [Intl] call new ListFormatter::createInstance
|
|
||||||
|
|
||||||
The one we currently using is now marked as internal and to be removed
|
|
||||||
for 68. Migrating to the style which already avaiable in ICU 67-1.
|
|
||||||
|
|
||||||
Bug: v8:11031
|
|
||||||
Change-Id: I668382a2e1b8602ddca02bf231c5008a6c92bf2d
|
|
||||||
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2477751
|
|
||||||
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
|
|
||||||
Commit-Queue: Frank Tang <ftang@chromium.org>
|
|
||||||
Cr-Commit-Position: refs/heads/master@{#70638}
|
|
||||||
---
|
|
||||||
src/objects/js-list-format.cc | 55 ++++++++++++-----------------------
|
|
||||||
1 file changed, 18 insertions(+), 37 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/objects/js-list-format.cc b/src/objects/js-list-format.cc
|
|
||||||
index b17d38c43ff5..e48a387be50f 100644
|
|
||||||
--- a/src/objects/js-list-format.cc
|
|
||||||
+++ b/src/objects/js-list-format.cc
|
|
||||||
@@ -29,46 +29,27 @@ namespace v8 {
|
|
||||||
namespace internal {
|
|
||||||
|
|
||||||
namespace {
|
|
||||||
-const char* kStandard = "standard";
|
|
||||||
-const char* kOr = "or";
|
|
||||||
-const char* kUnit = "unit";
|
|
||||||
-const char* kStandardShort = "standard-short";
|
|
||||||
-const char* kOrShort = "or-short";
|
|
||||||
-const char* kUnitShort = "unit-short";
|
|
||||||
-const char* kStandardNarrow = "standard-narrow";
|
|
||||||
-const char* kOrNarrow = "or-narrow";
|
|
||||||
-const char* kUnitNarrow = "unit-narrow";
|
|
||||||
-
|
|
||||||
-const char* GetIcuStyleString(JSListFormat::Style style,
|
|
||||||
- JSListFormat::Type type) {
|
|
||||||
+
|
|
||||||
+UListFormatterWidth GetIcuWidth(JSListFormat::Style style) {
|
|
||||||
+ switch (style) {
|
|
||||||
+ case JSListFormat::Style::LONG:
|
|
||||||
+ return ULISTFMT_WIDTH_WIDE;
|
|
||||||
+ case JSListFormat::Style::SHORT:
|
|
||||||
+ return ULISTFMT_WIDTH_SHORT;
|
|
||||||
+ case JSListFormat::Style::NARROW:
|
|
||||||
+ return ULISTFMT_WIDTH_NARROW;
|
|
||||||
+ }
|
|
||||||
+ UNREACHABLE();
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+UListFormatterType GetIcuType(JSListFormat::Type type) {
|
|
||||||
switch (type) {
|
|
||||||
case JSListFormat::Type::CONJUNCTION:
|
|
||||||
- switch (style) {
|
|
||||||
- case JSListFormat::Style::LONG:
|
|
||||||
- return kStandard;
|
|
||||||
- case JSListFormat::Style::SHORT:
|
|
||||||
- return kStandardShort;
|
|
||||||
- case JSListFormat::Style::NARROW:
|
|
||||||
- return kStandardNarrow;
|
|
||||||
- }
|
|
||||||
+ return ULISTFMT_TYPE_AND;
|
|
||||||
case JSListFormat::Type::DISJUNCTION:
|
|
||||||
- switch (style) {
|
|
||||||
- case JSListFormat::Style::LONG:
|
|
||||||
- return kOr;
|
|
||||||
- case JSListFormat::Style::SHORT:
|
|
||||||
- return kOrShort;
|
|
||||||
- case JSListFormat::Style::NARROW:
|
|
||||||
- return kOrNarrow;
|
|
||||||
- }
|
|
||||||
+ return ULISTFMT_TYPE_OR;
|
|
||||||
case JSListFormat::Type::UNIT:
|
|
||||||
- switch (style) {
|
|
||||||
- case JSListFormat::Style::LONG:
|
|
||||||
- return kUnit;
|
|
||||||
- case JSListFormat::Style::SHORT:
|
|
||||||
- return kUnitShort;
|
|
||||||
- case JSListFormat::Style::NARROW:
|
|
||||||
- return kUnitNarrow;
|
|
||||||
- }
|
|
||||||
+ return ULISTFMT_TYPE_UNITS;
|
|
||||||
}
|
|
||||||
UNREACHABLE();
|
|
||||||
}
|
|
||||||
@@ -143,7 +124,7 @@ MaybeHandle<JSListFormat> JSListFormat::New(Isolate* isolate, Handle<Map> map,
|
|
||||||
icu::Locale icu_locale = r.icu_locale;
|
|
||||||
UErrorCode status = U_ZERO_ERROR;
|
|
||||||
icu::ListFormatter* formatter = icu::ListFormatter::createInstance(
|
|
||||||
- icu_locale, GetIcuStyleString(style_enum, type_enum), status);
|
|
||||||
+ icu_locale, GetIcuType(type_enum), GetIcuWidth(style_enum), status);
|
|
||||||
if (U_FAILURE(status) || formatter == nullptr) {
|
|
||||||
delete formatter;
|
|
||||||
THROW_NEW_ERROR(isolate, NewRangeError(MessageTemplate::kIcuError),
|
|
Loading…
Reference in a new issue