summaryrefslogtreecommitdiff
path: root/dev-haskell/cmark
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-haskell/cmark
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-haskell/cmark')
-rw-r--r--dev-haskell/cmark/Manifest9
-rw-r--r--dev-haskell/cmark/cmark-0.3.4.ebuild26
-rw-r--r--dev-haskell/cmark/cmark-0.4.0.1.ebuild26
-rw-r--r--dev-haskell/cmark/cmark-0.5.5.ebuild32
-rw-r--r--dev-haskell/cmark/cmark-0.5.6.ebuild34
-rw-r--r--dev-haskell/cmark/metadata.xml90
6 files changed, 217 insertions, 0 deletions
diff --git a/dev-haskell/cmark/Manifest b/dev-haskell/cmark/Manifest
new file mode 100644
index 000000000000..0ad1645bf532
--- /dev/null
+++ b/dev-haskell/cmark/Manifest
@@ -0,0 +1,9 @@
+DIST cmark-0.3.4.tar.gz 148195 BLAKE2B e4fc584ae8d29dc15e68307136d8686104a93f7a5cce41b2c746d3124da419095e0b977186a3c56f73c7bfefb4761933c58d04af89e1fa478277c2e20f691b15 SHA512 1491d671ad98af061beee31f22d4d7e73ce4090342f34713848d26fbabefb8367d8bd2686814659ef36e49b2298967ce06e41ac5d7cbd13dcce27e4fe5ce7895
+DIST cmark-0.4.0.1.tar.gz 175936 BLAKE2B 5a2acd868e4b8ca629fed8423e2faf6ba02e6f9ee2fc6799058a569cf907c741a7ffdaf790900cfa81f9086e7cb13520e423dc645e0669b54e1d66ed18aed443 SHA512 8dee17ab09d377de762579eb75c61fd1cd3e7c928d57f42b636d391b78b9e0b9ddf58e50f84a35a76eecce6763332f58cd1170df041b811f9b6f113daaa1c9be
+DIST cmark-0.5.5.tar.gz 169719 BLAKE2B 42886efdfb30c1efc983d6085ba3cafcab1353148ac96f2970c3d824ea29690ab86b923f61098446de97705e4d79504892decc3b34b259b8e7982cc149ce7102 SHA512 1c1929f78ce669c0eee20693eeec2a21bfdb49850d92db7a71a1e29164c09fc29bac000d921a5186c1662a6eaf168d7d1df0dc2d02f7d7ccb04763de23e6099f
+DIST cmark-0.5.6.tar.gz 170850 BLAKE2B 21ef603e6edd25545f0a51ff534aab8c7762ec1353c1b0349101217e42c09e3c0b33f99119831f09f9db20df9efb0e984420ef431c85a44c68f1580c02e009f3 SHA512 ba9ae5268c1d55123754e7b0c5f73c5134fa1d57a7a624e865c5c9690f073d9db9e6f1b7bc5fea86305d3a72a7af371a22f12fcce4ccbe9fd2942ba1d3677835
+EBUILD cmark-0.3.4.ebuild 704 BLAKE2B 829101cb6c07e5b71e4a4747d879ffc1450df7d5028f6893caeaef3e63b3c41a8f00e177f0a20f188a0154435a19fae08a72340d35099a97cbd526a1a9245489 SHA512 a3c509e24690d9b3287b127c060e9aa1022988b2fd269b0c90aaeadaac650004074346106e61094879674990a5d03f756b39ebfa2e2b902c198fe4a1605ed531
+EBUILD cmark-0.4.0.1.ebuild 702 BLAKE2B 08984e8403796f8306af83797003b940645ea5a58133864c0e0df63a0cd472538df5be58c94b36cc7ddd69d5fed4eb6e6f58d2e2ab7b18b5e913c67b964f34f4 SHA512 8569d50364e77d1fa0d8520f0b95508dd6377c450c0f29e271e9b3ae46cc97d44119a3697f6a4009a46d9fa06b9551c98ee0be7be21d9521eaedbb48c3b8f974
+EBUILD cmark-0.5.5.ebuild 800 BLAKE2B 93efc41c17b11891e05b47ad0cc9ce16ac065bfdadbbc505d69b06b38eeab34e3bd6bd60b0439cc21c57769fa4d0d8650a24dceca5257ff776ec5a51f6ba64ce SHA512 3ccb5e47bfde2e51725b2d3e32a2a3d063bab12d735cac9b63048dbcef8d1597c4c2447fc80a2aecb44ba36055b6d03ebe9ff75ab762bdbcb1632efd34e45a62
+EBUILD cmark-0.5.6.ebuild 913 BLAKE2B adeae97fe5bc3b2a0406db2092786494dc768dd2ff6a56e26ebf09ec8ccd0b93b4c3faeb83c9f504ed3ecd0ee3ccd514cfc898580c67edafc5f5574a28bbd542 SHA512 5c1c1da0a95bc1199ee703e50756baadb76f66930e3696bb3222a450965b2ab6770b9ee4259d85981e0b88bff833d0cd4ae938259b351f82cef4b317f84be4cf
+MISC metadata.xml 3529 BLAKE2B b8b6571f4e38d3cb44e700f899e834cf0a562dc695367b73b3bad6a57264fc7a6fd6eb76ea7e4a4c1e21d34e77d1a10475fa10d4c3dcc38010748212c526a0a1 SHA512 81816dbafd239df87356729fa48f70a7be0c4c2567340a0f06d1698e66d9161b4e0ca69bf881041d90b331aaed966f57c9b631a3b2151a441a40147ab163cc8e
diff --git a/dev-haskell/cmark/cmark-0.3.4.ebuild b/dev-haskell/cmark/cmark-0.3.4.ebuild
new file mode 100644
index 000000000000..f2e8dda78a9f
--- /dev/null
+++ b/dev-haskell/cmark/cmark-0.3.4.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.5.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Fast, accurate CommonMark (Markdown) parser and renderer"
+HOMEPAGE="https://github.com/jgm/commonmark-hs"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-haskell/text-1.0:=[profile?] <dev-haskell/text-1.3:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.14
+ test? ( >=dev-haskell/hunit-1.2 <dev-haskell/hunit-1.3 )
+"
diff --git a/dev-haskell/cmark/cmark-0.4.0.1.ebuild b/dev-haskell/cmark/cmark-0.4.0.1.ebuild
new file mode 100644
index 000000000000..724892a0dfca
--- /dev/null
+++ b/dev-haskell/cmark/cmark-0.4.0.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.5.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Fast, accurate CommonMark (Markdown) parser and renderer"
+HOMEPAGE="https://github.com/jgm/commonmark-hs"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=dev-haskell/text-1.0:=[profile?] <dev-haskell/text-1.3:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.14
+ test? ( >=dev-haskell/hunit-1.2 <dev-haskell/hunit-1.3 )
+"
diff --git a/dev-haskell/cmark/cmark-0.5.5.ebuild b/dev-haskell/cmark/cmark-0.5.5.ebuild
new file mode 100644
index 000000000000..ee5f940e742d
--- /dev/null
+++ b/dev-haskell/cmark/cmark-0.5.5.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.5.1.9999
+#hackport: flags: -pkgconfig
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Fast, accurate CommonMark (Markdown) parser and renderer"
+HOMEPAGE="https://github.com/jgm/cmark-hs"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-haskell/text-1.0:=[profile?] <dev-haskell/text-1.3:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.14
+ test? ( >=dev-haskell/hunit-1.2 <dev-haskell/hunit-1.6 )
+"
+
+src_configure() {
+ haskell-cabal_src_configure \
+ --flag=-pkgconfig
+}
diff --git a/dev-haskell/cmark/cmark-0.5.6.ebuild b/dev-haskell/cmark/cmark-0.5.6.ebuild
new file mode 100644
index 000000000000..a980c29c31d9
--- /dev/null
+++ b/dev-haskell/cmark/cmark-0.5.6.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.5.3.9999
+#hackport: flags: pkgconfig:system-cmark
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Fast, accurate CommonMark (Markdown) parser and renderer"
+HOMEPAGE="https://github.com/jgm/cmark-hs"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="amd64 x86"
+IUSE="+system-cmark"
+
+RDEPEND=">=dev-haskell/text-1.0:=[profile?] <dev-haskell/text-1.3:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+ system-cmark? ( app-text/cmark )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.14
+ test? ( >=dev-haskell/hunit-1.2 <dev-haskell/hunit-1.7 )
+ system-cmark? ( virtual/pkgconfig )
+"
+
+src_configure() {
+ haskell-cabal_src_configure \
+ $(cabal_flag system-cmark pkgconfig)
+}
diff --git a/dev-haskell/cmark/metadata.xml b/dev-haskell/cmark/metadata.xml
new file mode 100644
index 000000000000..2d92a8edfc92
--- /dev/null
+++ b/dev-haskell/cmark/metadata.xml
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+ <use>
+ <flag name='system-cmark'>use <pkg>app-text/cmark</pkg> instead of bundled copy</flag>
+ </use>
+ <longdescription>
+ This package provides Haskell bindings for
+ &lt;https://github.com/jgm/cmark libcmark&gt;, the reference
+ parser for &lt;http://commonmark.org CommonMark&gt;, a fully
+ specified variant of Markdown. It includes sources for
+ libcmark (0.19.0) and does not require prior installation of the
+ C library.
+
+ cmark provides the following advantages over existing
+ Markdown libraries for Haskell:
+
+ - Speed: Conversion speed is on par with the
+ &lt;https://hackage.haskell.org/package/sundown sundown&gt;
+ library. We were unable to measure precisely
+ against
+ &lt;https://hackage.haskell.org/package/sundown sundown&gt;,
+ which raised a malloc error when compiled into our
+ benchmark suite. Relative to other implementations:
+ cmark was 82 times faster than
+ &lt;https://hackage.haskell.org/package/cheapskate cheapskate&gt;,
+ 59 times faster than
+ &lt;https://hackage.haskell.org/package/markdown markdown&gt;,
+ 105 times faster than
+ &lt;https://hackage.haskell.org/package/pandoc pandoc&gt;,
+ and 2.8 times faster than
+ &lt;https://hackage.haskell.org/package/discount discount&gt;.
+
+ - Memory footprint: Memory footprint is on par with
+ &lt;https://hackage.haskell.org/package/sundown sundown&gt;.
+ On one sample, the library uses a fourth the memory that
+ &lt;https://hackage.haskell.org/package/markdown markdown&gt;
+ uses, and less than a tenth the memory that
+ &lt;https://hackage.haskell.org/package/pandoc pandoc&gt;
+ uses.
+
+ - Robustness: cmark can handle whatever is thrown
+ at it, without the exponential blowups in parsing
+ time one can sometimes get with other libraries.
+ (The input @bench\/full-sample.md@, for example,
+ causes both
+ &lt;https://hackage.haskell.org/package/pandoc pandoc&gt;
+ and
+ &lt;https://hackage.haskell.org/package/markdown markdown&gt;
+ to grind to a halt.)
+
+ - Accuracy: cmark passes the CommonMark spec\'s
+ suite of over 500 conformance tests.
+
+ - Standardization: Since there is a spec and a
+ comprehensive suite of tests, we can have a high
+ degree of confidence that any two CommonMark
+ implementations will behave the same. Thus, for
+ example, one could use this library for server-side
+ rendering and
+ &lt;https://github.com/jgm/commonmark.js commonmark.js&gt;
+ for client-side previewing.
+
+ - Ease of installation: cmark is portable and has
+ minimal dependencies.
+
+ cmark does not provide Haskell versions of the whole
+ &lt;https://github.com/jgm/cmark libcmark&gt; API, which is
+ built around mutable @cmark_node@ objects. Instead, it
+ provides functions for converting CommonMark to HTML
+ (and other formats), and a function for converting
+ CommonMark to a @Node@ tree that can be processed
+ further using Haskell.
+
+ A note on security: This library does not attempt
+ to sanitize HTML output. We recommend using
+ &lt;https://hackage.haskell.org/package/xss-sanitize xss-sanitize&gt;
+ to filter the output.
+
+ A note on stability: There is a good chance the API
+ will change significantly after this early release.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">jgm/commonmark-hs</remote-id>
+ </upstream>
+</pkgmetadata>