commit: 5d41856515f35b035d3837e2574e347ef78b6f2f
parent 9aea29e7044f5d86a3f975646c3b0231125d6435
Author: Michael Forney <mforney@mforney.org>
Date: Mon, 14 Dec 2020 02:06:28 -0800
Add gumbo 0.10.1
This is a new dependency of mupdf 1.18.0.
Diffstat:
5 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/.gitmodules b/.gitmodules
@@ -102,6 +102,9 @@
path = pkg/git/src
url = https://github.com/git/git
ignore = all
+[submodule "pkg/gumbo/src"]
+ path = pkg/gumbo/src
+ url = https://github.com/google/gumbo-parser.git
[submodule "pkg/hotplugd/src"]
path = pkg/hotplugd/src
url = https://github.com/oasislinux/hotplugd.git
diff --git a/pkg/gen.lua b/pkg/gen.lua
@@ -37,6 +37,7 @@ subgen 'fribidi'
subgen 'fspec-sync'
subgen 'fuse'
subgen 'git'
+subgen 'gumbo'
subgen 'hotplugd'
subgen 'ii'
subgen 'iproute2'
diff --git a/pkg/gumbo/gen.lua b/pkg/gumbo/gen.lua
@@ -0,0 +1,23 @@
+cflags{
+ '-std=c99 -Wall -Wpedantic',
+}
+
+pkg.hdrs = copy('$outdir/include', '$srcdir/src', {'gumbo.h', 'tag_enum.h'})
+
+lib('libgumbo.a', [[
+ src/(
+ attribute.c
+ char_ref.c
+ error.c
+ parser.c
+ string_buffer.c
+ string_piece.c
+ tag.c
+ tokenizer.c
+ utf8.c
+ util.c
+ vector.c
+ )
+]])
+
+fetch 'git'
diff --git a/pkg/gumbo/src b/pkg/gumbo/src
@@ -0,0 +1 @@
+Subproject commit 3973c58d759574f2899528d2b3379e17d66dbcad
diff --git a/pkg/gumbo/ver b/pkg/gumbo/ver
@@ -0,0 +1 @@
+0.10.1 r0