wok-6.x rev 18770
Add sundown
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 31 14:51:53 2015 +0200 (2015-12-31) |
parents | 1a89affba7d6 |
children | a7572fba48de |
files | sundown/receipt sundown/stuff/sundown.options.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/sundown/receipt Thu Dec 31 14:51:53 2015 +0200 1.3 @@ -0,0 +1,31 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="sundown" 1.7 +VERSION="1.16.0" 1.8 +COMMIT="37728fb2d7137ff7c37d0a474cb827a8d6d846d8" 1.9 +CATEGORY="utilities" 1.10 +SHORT_DESC="Standards compliant, fast, secure markdown processing library in C" 1.11 +MAINTAINER="al.bobylev@gmail.com" 1.12 +LICENSE="ISC" 1.13 +WEB_SITE="https://github.com/vmg/sundown" 1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 +WGET_URL="$WEB_SITE/archive/$COMMIT.tar.gz" 1.16 + 1.17 +DEPENDS="" 1.18 +BUILD_DEPENDS="" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + #sed -i 's|O3|Os|' $src/Makefile 1.24 + patch -p1 -i $stuff/sundown.options.patch 1.25 + make 1.26 + mkdir -p $install/usr/bin 1.27 + cp -a $src/sundown $install/usr/bin 1.28 +} 1.29 + 1.30 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.31 +genpkg_rules() 1.32 +{ 1.33 + cp -a $install/* $fs 1.34 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/sundown/stuff/sundown.options.patch Thu Dec 31 14:51:53 2015 +0200 2.3 @@ -0,0 +1,20 @@ 2.4 +Enable next extensions in the sundown example: 2.5 + * tables 2.6 + * fenced_code 2.7 + * autolink 2.8 + * strikethrough 2.9 + * space_headers 2.10 + * superscript 2.11 +See `markdown.h` to calculate mkd_extensions value. 2.12 + 2.13 +--- a/examples/sundown.c 2.14 ++++ b/examples/sundown.c 2.15 +@@ -62,7 +62,7 @@ 2.16 + ob = bufnew(OUTPUT_UNIT); 2.17 + 2.18 + sdhtml_renderer(&callbacks, &options, 0); 2.19 +- markdown = sd_markdown_new(0, 16, &callbacks, &options); 2.20 ++ markdown = sd_markdown_new(222, 16, &callbacks, &options); 2.21 + 2.22 + sd_markdown_render(ob, ib->data, ib->size, markdown); 2.23 + sd_markdown_free(markdown);