diff options
| author | Michael Forney <mforney@mforney.org> | 2018-02-23 22:32:10 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2018-02-23 23:42:25 -0800 |
| commit | 549ed37562f2eac998e3e7c5a6c95a9b5bebc686 (patch) | |
| tree | b87156afc6e23004cc527121ea2f9d0af2dbf8d3 | |
| parent | 6acff4bbca24c925aff93e77b41568abad5f85a7 (diff) | |
Add cmark 0.28.3
| -rw-r--r-- | .gitmodules | 3 | ||||
| -rw-r--r-- | pkg/cmark/cmark_export.h | 1 | ||||
| -rw-r--r-- | pkg/cmark/cmark_version.h | 2 | ||||
| -rw-r--r-- | pkg/cmark/config.h | 3 | ||||
| -rw-r--r-- | pkg/cmark/gen.lua | 38 | ||||
| -rw-r--r-- | pkg/cmark/rev | 1 | ||||
| m--------- | pkg/cmark/src | 0 | ||||
| -rw-r--r-- | pkg/gen.lua | 1 |
8 files changed, 49 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules index cd4f6db5..3b21e465 100644 --- 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 new file mode 100644 index 00000000..471a2345 --- /dev/null +++ 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 new file mode 100644 index 00000000..ed5dfb97 --- /dev/null +++ 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 new file mode 100644 index 00000000..186085f3 --- /dev/null +++ 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 new file mode 100644 index 00000000..fc058678 --- /dev/null +++ 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 new file mode 100644 index 00000000..d00491fd --- /dev/null +++ b/pkg/cmark/rev @@ -0,0 +1 @@ +1 diff --git a/pkg/cmark/src b/pkg/cmark/src new file mode 160000 +Subproject 5da792fc3714f66a88aabb5d13cb0eed674cb6c diff --git a/pkg/gen.lua b/pkg/gen.lua index c02838fa..81b45e90 100644 --- 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' |
