logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: 549ed37562f2eac998e3e7c5a6c95a9b5bebc686
parent 6acff4bbca24c925aff93e77b41568abad5f85a7
Author: Michael Forney <mforney@mforney.org>
Date:   Fri, 23 Feb 2018 22:32:10 -0800

Add cmark 0.28.3

Diffstat:

M.gitmodules3+++
Apkg/cmark/cmark_export.h2++
Apkg/cmark/cmark_version.h2++
Apkg/cmark/config.h3+++
Apkg/cmark/gen.lua38++++++++++++++++++++++++++++++++++++++
Apkg/cmark/rev1+
Apkg/cmark/src1+
Mpkg/gen.lua1+
8 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -20,6 +20,9 @@ [submodule "pkg/blind/src"] path = pkg/blind/src url = git://git.suckless.org/blind +[submodule "pkg/cmark/src"] + path = pkg/cmark/src + url = https://github.com/commonmark/cmark [submodule "pkg/dmenu/src"] path = pkg/dmenu/src url = git://git.suckless.org/dmenu diff --git a/pkg/cmark/cmark_export.h b/pkg/cmark/cmark_export.h @@ -0,0 +1 @@ +#define CMARK_EXPORT +\ No newline at end of file diff --git a/pkg/cmark/cmark_version.h b/pkg/cmark/cmark_version.h @@ -0,0 +1,2 @@ +#define CMARK_VERSION ((0 << 16) | (28 << 8) | 3) +#define CMARK_VERSION_STRING "0.28.3" diff --git a/pkg/cmark/config.h b/pkg/cmark/config.h @@ -0,0 +1,3 @@ +#include <stdbool.h> +#define HAVE___BUILTIN_EXPECT 1 +#define CMARK_INLINE inline diff --git a/pkg/cmark/gen.lua b/pkg/cmark/gen.lua @@ -0,0 +1,38 @@ +cflags{ + '-I $dir', +} + +pkg.hdrs = { + copy('$outdir/include', '$srcdir/src', {'cmark.h'}), + copy('$outdir/include', '$dir', {'cmark_export.h', 'cmark_version.h'}), + install=true, +} + +lib('libcmark.a', expand{'src/', { + 'cmark.c', + 'node.c', + 'iterator.c', + 'blocks.c', + 'inlines.c', + 'scanners.c', + 'utf8.c', + 'buffer.c', + 'references.c', + 'render.c', + 'man.c', + 'xml.c', + 'html.c', + 'commonmark.c', + 'latex.c', + 'houdini_href_e.c', + 'houdini_html_e.c', + 'houdini_html_u.c', + 'cmark_ctype.c', +}}) +file('lib/libcmark.a', '644', '$outdir/libcmark.a') + +exe('cmark', {'src/main.c', 'libcmark.a'}) +file('bin/cmark', '755', '$outdir/cmark') +man{'man/man1/cmark.1'} + +fetch 'git' diff --git a/pkg/cmark/rev b/pkg/cmark/rev @@ -0,0 +1 @@ +1 diff --git a/pkg/cmark/src b/pkg/cmark/src @@ -0,0 +1 @@ +Subproject commit 5da792fc3714f66a88aabb5d13cb0eed674cb6c5 diff --git a/pkg/gen.lua b/pkg/gen.lua @@ -7,6 +7,7 @@ subgen 'bc' subgen 'bearssl' subgen 'blind' subgen 'bzip2' +subgen 'cmark' subgen 'curl' subgen 'dosfstools' subgen 'dmenu'