Skip to content

Commit

Permalink
[harfbuzz] update to 2.8.2 (#19615)
Browse files Browse the repository at this point in the history
* [harfbuzz] update to 2.8.2

* update version

* revert patch format

* update version
  • Loading branch information
JonLiu1993 authored Aug 30, 2021
1 parent 4bd67a4 commit 950dd37
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
13 changes: 6 additions & 7 deletions ports/harfbuzz/0001-circumvent-samefile-error.patch
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
diff --git a/src/gen-harfbuzzcc.py b/src/gen-harfbuzzcc.py
index b25bcc7..97bf2ab 100644
index b25bcc7..f3bc87a 100644
--- a/src/gen-harfbuzzcc.py
+++ b/src/gen-harfbuzzcc.py
@@ -15,4 +15,8 @@ with open (OUTPUT, "wb") as f:
f.write ("".join ('#include "{}"\n'.format (os.path.basename (x)) for x in sources if x.endswith (".cc")).encode ())
f.write ("".join ('#include "{}"\n'.format (os.path.basename (x)) for x in sources if x.endswith (".cc")).encode ())

# copy it also to src/
-shutil.copyfile (OUTPUT, os.path.join (CURRENT_SOURCE_DIR, os.path.basename (OUTPUT)))
Expand All @@ -13,11 +13,11 @@ index b25bcc7..97bf2ab 100644
+if not os.path.samefile(src, dst):
+ shutil.copyfile (src, dst)
diff --git a/src/gen-hb-version.py b/src/gen-hb-version.py
index 5ec2024..59d4754 100644
index 879811f..c376721 100644
--- a/src/gen-hb-version.py
+++ b/src/gen-hb-version.py
@@ -33,4 +33,8 @@ with open (INPUT, "r", encoding='utf-8') as template:
.encode ())
.encode ())

# copy it also to src/
-shutil.copyfile (OUTPUT, os.path.join (CURRENT_SOURCE_DIR, os.path.basename (OUTPUT)))
Expand All @@ -27,11 +27,11 @@ index 5ec2024..59d4754 100644
+if not os.path.samefile(src, dst):
+ shutil.copyfile (src, dst)
diff --git a/src/gen-ragel-artifacts.py b/src/gen-ragel-artifacts.py
index b60ec3b..288e224 100644
index d22e03a..2b1e819 100644
--- a/src/gen-ragel-artifacts.py
+++ b/src/gen-ragel-artifacts.py
@@ -22,4 +22,8 @@ hh = rl.replace ('.rl', '.hh')
subprocess.Popen ([ragel, '-e', '-F1', '-o', hh, rl], cwd=outdir).wait ()
subprocess.Popen (ragel.split() + ['-e', '-F1', '-o', hh, rl], cwd=outdir).wait ()

# copy it also to src/
-shutil.copyfile (os.path.join (outdir, hh), os.path.join (CURRENT_SOURCE_DIR, hh))
Expand All @@ -40,4 +40,3 @@ index b60ec3b..288e224 100644
+# Avoid SameFileError
+if not os.path.samefile(src, dst):
+ shutil.copyfile (src, dst)

4 changes: 2 additions & 2 deletions ports/harfbuzz/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO harfbuzz/harfbuzz
REF b37f03f16b39d397a626f097858e9ae550234ca0 # 2.8.1
SHA512 3eef62df397bc1fe1d08d7d91ff7d38d7af54bb85562915bba65d86cf6862384f5b4538f685d93eead595389d2f417176827fd2f72b3ce71a5562a8ff80f17f4
REF 63e15eac4f443fa53565d1e4fb9611cdd7814f28 # 2.8.2
SHA512 8a743ce465f01d6cb49ac74efb1159d965e41c89267eeb4078ec4c342c24599e14419a0416f8d35a0b9dd00e76cc79b4dbd6f50ddd1b8da761d61158d1018ebc
HEAD_REF master
PATCHES
# This patch is a workaround that is needed until the following issues are resolved upstream:
Expand Down
3 changes: 1 addition & 2 deletions ports/harfbuzz/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "harfbuzz",
"version": "2.8.1",
"port-version": 1,
"version": "2.8.2",
"description": "HarfBuzz OpenType text shaping engine",
"homepage": "https://github.com/harfbuzz/harfbuzz",
"dependencies": [
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2505,8 +2505,8 @@
"port-version": 0
},
"harfbuzz": {
"baseline": "2.8.1",
"port-version": 1
"baseline": "2.8.2",
"port-version": 0
},
"hayai": {
"baseline": "2019-08-10",
Expand Down
5 changes: 5 additions & 0 deletions versions/h-/harfbuzz.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "823024398648ee98849f8a4f73f778a8f97ccd1f",
"version": "2.8.2",
"port-version": 0
},
{
"git-tree": "0af28da9fe1d9f70c2f0b572c8e9eee085eb7c3b",
"version": "2.8.1",
Expand Down

0 comments on commit 950dd37

Please sign in to comment.