summaryrefslogtreecommitdiff
path: root/dev-haskell/cmark
diff options
context:
space:
mode:
Diffstat (limited to 'dev-haskell/cmark')
-rw-r--r--dev-haskell/cmark/Manifest11
-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, 219 insertions, 0 deletions
diff --git a/dev-haskell/cmark/Manifest b/dev-haskell/cmark/Manifest
new file mode 100644
index 000000000000..73339736ebc4
--- /dev/null
+++ b/dev-haskell/cmark/Manifest
@@ -0,0 +1,11 @@
+DIST cmark-0.3.4.tar.gz 148195 SHA256 ca7793c1ec30697446e8880d22a053e81fdc57761f86b2b631360a4d4481b932 SHA512 1491d671ad98af061beee31f22d4d7e73ce4090342f34713848d26fbabefb8367d8bd2686814659ef36e49b2298967ce06e41ac5d7cbd13dcce27e4fe5ce7895 WHIRLPOOL 827c0670e96ac22c2dfc125a1fd5343d90b80b9c852b210dcb5884f99594df41695d7f7f561961e28a15d04636c9c169cce1f5597777758ed54af6450601e37e
+DIST cmark-0.4.0.1.tar.gz 175936 SHA256 638328b59c2bb8bdcd0f3042c4554f2b2b7c6deac7770dbc8bc2813c865a35ce SHA512 8dee17ab09d377de762579eb75c61fd1cd3e7c928d57f42b636d391b78b9e0b9ddf58e50f84a35a76eecce6763332f58cd1170df041b811f9b6f113daaa1c9be WHIRLPOOL ccda44d2fd2ea8d64295414e617dab4f5213cd49d1d9b4454c1a72fa6c4a3bfbae3009661554bb8bd8a092bc76df66bafca2b765794c710fd982536e158a893f
+DIST cmark-0.5.5.tar.gz 169719 SHA256 03bd6fc962bb92127f64a9c597a904492a16fb3f34587775a741d22311fe53e2 SHA512 1c1929f78ce669c0eee20693eeec2a21bfdb49850d92db7a71a1e29164c09fc29bac000d921a5186c1662a6eaf168d7d1df0dc2d02f7d7ccb04763de23e6099f WHIRLPOOL de2df3c60abc6de0fdf87b9c30fdb94642f0e8c257d52a8c0b35aaa0db7a1ac681bf5bfe36b4b4b2e58eed15ab76edfd84f8ffc191f4bc22514e7bea72ce916f
+DIST cmark-0.5.6.tar.gz 170850 SHA256 855c4b7aca6d4e9eb076beb6cc6f74e7578fae7aa3625fd3fca5e3b4901a32b0 SHA512 ba9ae5268c1d55123754e7b0c5f73c5134fa1d57a7a624e865c5c9690f073d9db9e6f1b7bc5fea86305d3a72a7af371a22f12fcce4ccbe9fd2942ba1d3677835 WHIRLPOOL cfeb37ee07a5c710898137ce88b2c64bceed62468ada918b8a3e2caa6071f3895bcb7f057bf6ebdc03b8799811870e42b90d453d72b6a943c7cc92e8df8b5d9e
+EBUILD cmark-0.3.4.ebuild 704 SHA256 ba69490cbb29325dccfaa661a260b0db786a28f295f16996448ed3a467024e3e SHA512 a3c509e24690d9b3287b127c060e9aa1022988b2fd269b0c90aaeadaac650004074346106e61094879674990a5d03f756b39ebfa2e2b902c198fe4a1605ed531 WHIRLPOOL e4908eab7722cb50531c237a00233f5b387a2f160d7bab4529c6442e73498b53610d38e70525d94ec82cdd622639914cec663114076a9eb368b1ac3784179eca
+EBUILD cmark-0.4.0.1.ebuild 702 SHA256 da80fce3311f08543955538d596e53ebbb2056309ea015584d966f0abdfdf498 SHA512 8569d50364e77d1fa0d8520f0b95508dd6377c450c0f29e271e9b3ae46cc97d44119a3697f6a4009a46d9fa06b9551c98ee0be7be21d9521eaedbb48c3b8f974 WHIRLPOOL c2147d22dcab7642490032882aa5229e3932f7c8da6b1d290b6f8f9533acb90ae0453b989f034c82a042a44b8876763e90944b837abca8634d9afa3f232c945b
+EBUILD cmark-0.5.5.ebuild 800 SHA256 363da12ff37f85304d18405c5824542ac1d6267ce7043f4b8b2fe904fdef2ab8 SHA512 3ccb5e47bfde2e51725b2d3e32a2a3d063bab12d735cac9b63048dbcef8d1597c4c2447fc80a2aecb44ba36055b6d03ebe9ff75ab762bdbcb1632efd34e45a62 WHIRLPOOL f8d542d885e969fb6d842eb9900e2108cf0498929b952bc0d8f09626eda798e56e9a60de6c4f483bba7ab3ccca99ec6b0a7f4e48ee0006eeab94883b6a8405e9
+EBUILD cmark-0.5.6.ebuild 913 SHA256 083fe4a6703f53f8672ff3c01ab2c63cb45e254952949b7a1ff3c9d2f2648ca7 SHA512 5c1c1da0a95bc1199ee703e50756baadb76f66930e3696bb3222a450965b2ab6770b9ee4259d85981e0b88bff833d0cd4ae938259b351f82cef4b317f84be4cf WHIRLPOOL ecbd317cef23e9abee330841872b9358701f67a96367053c68861ec0780f187fe1c14b549d8ca02c81354ea64d3b4f33e3a6d839e86b7cee10ace2d64021d6fc
+MISC ChangeLog 2621 SHA256 be43f11a5950b67cb47b00bbd2cb1398e20eb37560d6f2cece439a8e9658cc43 SHA512 0baacea46489dd075fcc259f6dbef0175e5a0e149ca8ff544af80a94b20a7d136da07d85e4d302db203aa28f11b55ad285622ba9f99b37bf4dab374d73025c88 WHIRLPOOL 0fbf2887aad624f22ca7bebf370894383b9ccdec9d83073c47e6213eaa1d76c2ae9293491622e70093bd7fcb23b170bcef66e5cb1664ed41bac3287f28773640
+MISC ChangeLog-2015 581 SHA256 e83256effc9858f63d569aeee18f3e78f97899bc4b8c61ea6f79ffa2047e2c13 SHA512 01c6feb824458cde8e7cf77e4c5732985d0853c75cb66905ae565405d94c974867b46250c6c840b6a3455c851e389b9096b140bf3472e5a5f61d1b6ef2e28a82 WHIRLPOOL e493c70f5eda594abb4f7110ab1d160c6e74734833001154e50674b00c010ff8d767753ba7f2401d7f480f84451b16ed3505bd78595d97359851e921e06e97f3
+MISC metadata.xml 3529 SHA256 5a00e9a19dbfec30ad42c2d62927f341cb7790e28f7be7997348da2bcc7ca1e5 SHA512 81816dbafd239df87356729fa48f70a7be0c4c2567340a0f06d1698e66d9161b4e0ca69bf881041d90b331aaed966f57c9b631a3b2151a441a40147ab163cc8e WHIRLPOOL 01d0aa63f01728f76d55168ffd2ec9b7094074d031780ff33a95a0f48fac86f428f86769f8c93d3e5688c32c05ef38f6817baa84b46f7b8f3bf3ff98c7bf7d7e
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>