summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2013-11-20 14:35:55 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2013-11-20 14:35:55 +0000
commit9408b6f5258b8e262d7bbb5641b166d4ec36cbbf (patch)
tree5e88a6b49b48369c58714297b2a866398b92b34f /dev-haskell/pandoc-citeproc
parentNew GeoIP.dat.gz (bug #491772 by Mark Tomich). (diff)
downloadhistorical-9408b6f5258b8e262d7bbb5641b166d4ec36cbbf.tar.gz
historical-9408b6f5258b8e262d7bbb5641b166d4ec36cbbf.tar.bz2
historical-9408b6f5258b8e262d7bbb5641b166d4ec36cbbf.zip
Initial commit. Supports using pandoc with citeproc.
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0x611FF3AA
Diffstat (limited to 'dev-haskell/pandoc-citeproc')
-rw-r--r--dev-haskell/pandoc-citeproc/ChangeLog9
-rw-r--r--dev-haskell/pandoc-citeproc/Manifest14
-rw-r--r--dev-haskell/pandoc-citeproc/metadata.xml35
-rw-r--r--dev-haskell/pandoc-citeproc/pandoc-citeproc-0.1.2.1.ebuild65
4 files changed, 123 insertions, 0 deletions
diff --git a/dev-haskell/pandoc-citeproc/ChangeLog b/dev-haskell/pandoc-citeproc/ChangeLog
new file mode 100644
index 000000000000..b938b3a3a049
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-haskell/pandoc-citeproc
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/pandoc-citeproc/ChangeLog,v 1.1 2013/11/20 14:35:43 slyfox Exp $
+
+*pandoc-citeproc-0.1.2.1 (20 Nov 2013)
+
+ 20 Nov 2013; Sergei Trofimovich <slyfox@gentoo.org> +metadata.xml,
+ +pandoc-citeproc-0.1.2.1.ebuild:
+ Initial commit. Supports using pandoc with citeproc.
diff --git a/dev-haskell/pandoc-citeproc/Manifest b/dev-haskell/pandoc-citeproc/Manifest
new file mode 100644
index 000000000000..5599d65a36cb
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/Manifest
@@ -0,0 +1,14 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+DIST pandoc-citeproc-0.1.2.1.tar.gz 217171 SHA256 3b8ea95a02051ded8e097db85445f822d474ba3cebce7ab35e5ca7b62ed4248e SHA512 a83e34700b2f6f835aec0f66b199a1a43cb5e3318133774b7897316d676870ba56538468904ca754f246bf10a0826f834d6dba791d18a906405ed7c01126b77e WHIRLPOOL 6585eb1d435a207fc7d94616d09602e9c602f33c7f5e1fdde124022e07c6bc671a62c84fa31838c541a139b0988ea67a3acba881d4e2bbfe439dd4724bd2c194
+EBUILD pandoc-citeproc-0.1.2.1.ebuild 2245 SHA256 33e831b836d7219d027d85335e425b6db276243f2fdff2b9368e8f8d3ef1dc38 SHA512 3b7f0a6ea59c5f150165163b5e200a8d4d25a983fa99294cd76abbb8cb83b2bddf8323dafac91a0a696fbae9e472d3febe0a661687a1e0f556014903b36d321a WHIRLPOOL 02bfcf025520bc31d0ad1f5d3653a1c29b6dafeba49f11c05b02eb5bc3085c80cd6d0c220b1a9ec5ad91db987697a8a49726f2ed27a967b8e3ae88024f64c5c5
+MISC ChangeLog 426 SHA256 20c61be3fb648c437da57fda81ea548d43c05a067217c085923cb43cdd1cc0bd SHA512 c16ac25be7ef77f49f3cf7b69138f2366b1c79b5f7dd77aab606da0064aa4db4d07acd66fb7c02a2294c86c48a451c730645ffa630a1cce585a58ade4f44488a WHIRLPOOL 94ea172dbea89d5f1069e8c6647ac35aaadbdab92f74a1faf5447a1ddab7e01cbc24a4daf8a19ea7efab2d1512674deb6b0eecb199ea44e4dac200fa13ef8e5e
+MISC metadata.xml 1645 SHA256 d513f2d9508d6ccd1f44f9e30a374b0cdd71244ec836799615b47302ed70b16d SHA512 613427abc9330780c5f58a2a2103feb2d7cfd5a8e56a4f43c1ae9ad3abe50287eab4e57bbd23cc16177fecdc9d0aa97a98a80bbcf84aac8faedd3c5e5d3c77c5 WHIRLPOOL 04c57e402d637e336826470e039c726415efcd2d1b35fa2e446bafc5835448e12c2125f065028347967d9715adadafe2f8557cf6214b1d39fe5d4a2a7072039e
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.22 (GNU/Linux)
+
+iEYEAREIAAYFAlKMx/4ACgkQcaHudmEf86rVmwCfdYpMZzwsgKf7KccLgrYXPrky
+LzcAn3R2W4CyM0r45WA+gldVVtmBgf5K
+=OAhs
+-----END PGP SIGNATURE-----
diff --git a/dev-haskell/pandoc-citeproc/metadata.xml b/dev-haskell/pandoc-citeproc/metadata.xml
new file mode 100644
index 000000000000..c4e8363b55cd
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/metadata.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>haskell</herd>
+ <maintainer>
+ <email>haskell@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="bibutils">use Chris Putnam's <pkg>app-text/bibutils</pkg></flag>
+ <flag name="embed_data_files">Embed locale files into the library (needed for windows packaging)</flag>
+ <flag name="network">use <pkg>dev-haskell/network</pkg> and <pkg>dev-haskell/http</pkg> to retrieve CSL file from URIs</flag>
+ <flag name="hexpat">use <pkg>dev-haskell/hexpat</pkg> instead of <pkg>dev-haskell/xml</pkg> for XML parsing</flag>
+ <flag name="small_base">Choose the new smaller, split-up base package.</flag>
+ <flag name="unicode_collation">Use Haskell bindings to the <pkg>dev-libs/icu</pkg></flag>
+ </use>
+ <longdescription>
+ The pandoc-citeproc library exports functions for
+ using the citeproc system with pandoc. It relies on
+ citeproc-hs, a library for rendering
+ bibliographic reference citations into a variety
+ of styles using a macro language called Citation
+ Style Language (CSL). More details on CSL can be
+ found here: &lt;http://citationstyles.org/&gt;.
+
+ Currently this package includes a copy of the citeproc-hs
+ code. When citeproc-hs is updated to be compatible,
+ this package will simply depend on citeproc-hs.
+
+ This package also contains two executables: pandoc-citeproc,
+ which works as a pandoc filter (pandoc &gt;= 1.12), and
+ biblio2yaml, which converts bibliographic databases to
+ a yaml format suitable for inclusion in pandoc YAML
+ metadata.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.1.2.1.ebuild b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.1.2.1.ebuild
new file mode 100644
index 000000000000..65120523a0a0
--- /dev/null
+++ b/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.1.2.1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/pandoc-citeproc/pandoc-citeproc-0.1.2.1.ebuild,v 1.1 2013/11/20 14:35:43 slyfox Exp $
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.4.9999
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Supports using pandoc with citeproc"
+HOMEPAGE="http://hackage.haskell.org/package/pandoc-citeproc"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="+bibutils embed_data_files +hexpat +network +small_base unicode_collation"
+RESTRICT=test # missing files: locales-en-US.xml: openBinaryFile
+
+RDEPEND=">=app-text/pandoc-1.12.0.2:=[profile?]
+ dev-haskell/aeson:=[profile?]
+ dev-haskell/attoparsec:=[profile?]
+ dev-haskell/json:=[profile?]
+ dev-haskell/mtl:=[profile?]
+ >=dev-haskell/pandoc-types-1.12.3:=[profile?]
+ dev-haskell/parsec:=[profile?]
+ dev-haskell/split:=[profile?]
+ dev-haskell/syb:=[profile?]
+ dev-haskell/tagsoup:=[profile?]
+ >=dev-haskell/texmath-0.6.4:=[profile?]
+ dev-haskell/text:=[profile?]
+ dev-haskell/utf8-string:=[profile?]
+ dev-haskell/vector:=[profile?]
+ >=dev-haskell/yaml-0.8:=[profile?]
+ >=dev-lang/ghc-6.12.1:=
+ bibutils? ( >=dev-haskell/hs-bibutils-0.3:=[profile?] )
+ hexpat? ( >=dev-haskell/hexpat-0.20.2:=[profile?] )
+ !hexpat? ( dev-haskell/xml:=[profile?] )
+ network? ( >=dev-haskell/http-4000.0.9:=[profile?]
+ >=dev-haskell/network-2:=[profile?] )
+ unicode_collation? ( dev-haskell/text-icu:=[profile?] )
+ !unicode_collation? ( dev-haskell/rfc5051:=[profile?] )
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.12
+ test? ( dev-haskell/aeson-pretty
+ >=dev-haskell/diff-0.3 )
+"
+
+src_configure() {
+ # workaround bug on ghc-7.6.3:
+ # > [13 of 24] Compiling Text.CSL.Input.Bibtex ...
+ # > stack overflow: use +RTS -K<size> to increase it
+ replace-hcflags -O[2-9] -O1
+
+ haskell-cabal_src_configure \
+ $(cabal_flag bibutils bibutils) \
+ $(cabal_flag embed_data_files embed_data_files) \
+ $(cabal_flag hexpat hexpat) \
+ $(cabal_flag network network) \
+ $(cabal_flag small_base small_base) \
+ $(cabal_flag unicode_collation unicode_collation)
+}