diff options
Diffstat (limited to 'dev-haskell/citeproc-hs')
-rw-r--r-- | dev-haskell/citeproc-hs/Manifest | 8 | ||||
-rw-r--r-- | dev-haskell/citeproc-hs/citeproc-hs-0.3.10-r1.ebuild | 54 | ||||
-rw-r--r-- | dev-haskell/citeproc-hs/citeproc-hs-0.3.10.ebuild | 51 | ||||
-rw-r--r-- | dev-haskell/citeproc-hs/files/citeproc-hs-0.3.10-ghc-7.10.patch | 28 | ||||
-rw-r--r-- | dev-haskell/citeproc-hs/files/citeproc-hs-0.3.10-pandoc-1.16.patch | 126 | ||||
-rw-r--r-- | dev-haskell/citeproc-hs/metadata.xml | 26 |
6 files changed, 293 insertions, 0 deletions
diff --git a/dev-haskell/citeproc-hs/Manifest b/dev-haskell/citeproc-hs/Manifest new file mode 100644 index 000000000000..569a63034d8a --- /dev/null +++ b/dev-haskell/citeproc-hs/Manifest @@ -0,0 +1,8 @@ +AUX citeproc-hs-0.3.10-ghc-7.10.patch 1106 SHA256 c20ec1f204e6e523d0bbcd449a768334dc20ed7af523c47a5027bab69b5de7fa SHA512 99743acfe916238dfbd7ed3e7bd680787e48eee38300243be284a8d20632957f9c52dd3b3574a96423a7f9f921eb2531a1495fc7975ef83d7a65748393013a97 WHIRLPOOL 4d71d209490575ea18e781d1adeac34ca9ca9e2e5f7a2327a01d8aba0118859c1ac90d19916f34f33ec34ecc253ebfbd04eb893eb74df8d575389b90ac80be64 +AUX citeproc-hs-0.3.10-pandoc-1.16.patch 5933 SHA256 dda063f699889480bf3d149bbd7a0ce18ccd3aeb1f1069b88a9ee3400c6f5489 SHA512 9ac93221d544c4db306e71c33daa4583485704bae6a4800776fcf2b6950583d385cf91877418b8efd9c8dbb5feb14c329c8667b853bc8e322e60b39b78a4f303 WHIRLPOOL 0a83bcafa39e050c7949f1388d13322b566d4514254465cf8b9ea9df7fe9176812e3d18a50121b86647cbe77e02436f2ec24d3e5587fa22c17f44abcbda56db7 +DIST citeproc-hs-0.3.10.tar.gz 115588 SHA256 1928db4f4c00f6722281f25171fc58412ec74c5e42adfc901a33a20dd10e65b9 SHA512 961c97fb82a0d497946695ef71dcbf0072dd9522a0f3b8e44975348b9ccf3ee703e2923408b3c3f1c58de04665418f54b95773865ed9cb16ad31a548a18b8b6f WHIRLPOOL 9b4d7d23aa43a06c43ff7600f92a03b93f7f0b44fcaaa6f846789633f993db44893c795014b2a13961839a341f8e6f9fd0ff8a72c670beb11c97443ea43222cf +EBUILD citeproc-hs-0.3.10-r1.ebuild 1679 SHA256 7c50c77715ef806f57152f7fa528eb7fe861f03d7836dcd8f0602634a3faa11c SHA512 b06ea9af05983e5d8383a796ba892c13ac254586f81e0b0b661474f8b1c4f54791b1b8c1e468ec37a5f061ecadbe010d5016efd04e1c0059601f1f7db25619ee WHIRLPOOL b20ae75a3b8436090c063568d7b31256c5853485a285ed855120b58518e77a50d458b04e81d9139d38c14a3395002d79ed81dc0e1091b59dd46eda305b12140b +EBUILD citeproc-hs-0.3.10.ebuild 1666 SHA256 b324f499410f1196e8856766980ad9cb856b1f7a15a0e61073cddd427dba336f SHA512 c7e07bd867c5644525e7e4070981cb56a1dcc151358cc201c6f06c3c561d025933032741937eb020b310cb621f435b8107e1bad572f442af75e2886e02ce0c9a WHIRLPOOL fbd6e96e973d33925c0a89bb13fea512d361d1723fe2cf7c45aa33169a98cc9badc6842ae0ba4cd555b80901e81ab8cc2b1d6713a215a28993bd12dd73fe2336 +MISC ChangeLog 3299 SHA256 e3889b37f8039e83d005441155b29ef85382282f5b25f45ac3438e5a00eb0aab SHA512 a9effe035a82ea7988744280834ee08a7ca8e9d1132103acd935a9fbc48ad551372f2c58fade3e74c840011b43dac56d93759e6a52aa1de475670e92f4085edf WHIRLPOOL 06342c3523f537473832d0e4692604ce42d8990e8a487bf6f9181968b666baa8f7fba23468418eec590401bb806b4e431ca307a51c4cd390ac01e6c88468460a +MISC ChangeLog-2015 2721 SHA256 c6a0c003c622fa4a494474a2f9be1b69b94cabfd1fb202ca9952fff2f7adcde2 SHA512 a25d413a2a961f1930ca9ccd9a0623272837cea7d25e0ce50ccf922f33b515b7d133fc83863f3f0df4349003aa9ae8b61b4280e3e22f15a8628ee82ae4415a6e WHIRLPOOL efcd33cf99e78d637ce25235a58b82e98a3fe8ef90bf6e62fae3c6030952224ee3490f57de655a1f75facea2d66346b21918cbafb5d0f46ecee6e163149574ce +MISC metadata.xml 1205 SHA256 73d635458765db5c24a1eaa0faec4e177f0fcf2497078936a0c8bc21d2ea0d83 SHA512 d9fda9c1af0a2d6de9887004834d65cbdb2456a600856e83ee2bff02b535bbdcbe219a4f16b7a9a836995f5533ee6ada05c845a6bcb6b22b5f9faef3864178f7 WHIRLPOOL d466a9525bae57e146843a2e874ff80081406f9055fb5af52f117ae0073302b5302ee98b075f6dececdaf49be18aad1ac5ae0af38e9eee9c16051f56a00edd0d diff --git a/dev-haskell/citeproc-hs/citeproc-hs-0.3.10-r1.ebuild b/dev-haskell/citeproc-hs/citeproc-hs-0.3.10-r1.ebuild new file mode 100644 index 000000000000..1c7f1a2bf920 --- /dev/null +++ b/dev-haskell/citeproc-hs/citeproc-hs-0.3.10-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.4.3 + +CABAL_FEATURES="lib profile haddock hoogle hscolour" +inherit haskell-cabal + +DESCRIPTION="A Citation Style Language implementation in Haskell" +HOMEPAGE="http://istitutocolli.org/repos/citeproc-hs/" +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" + +RDEPEND="dev-haskell/json:=[profile?] + dev-haskell/mtl:=[profile?] + >=dev-haskell/pandoc-types-1.8:=[profile?] + dev-haskell/parsec:=[profile?] + dev-haskell/syb:=[profile?] + dev-haskell/utf8-string:=[profile?] + >=dev-lang/ghc-7.4.1:= + bibutils? ( >=dev-haskell/hs-bibutils-0.3:=[profile?] ) + embed_data_files? ( dev-haskell/file-embed:=[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.6:=[profile?] + >=dev-haskell/network-uri-2.6:=[profile?] ) + unicode_collation? ( dev-haskell/text:=[profile?] + dev-haskell/text-icu:=[profile?] ) +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6 +" + +src_prepare() { + epatch "${FILESDIR}"/${P}-ghc-7.10.patch + epatch "${FILESDIR}"/${P}-pandoc-1.16.patch +} + +src_configure() { + 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) +} diff --git a/dev-haskell/citeproc-hs/citeproc-hs-0.3.10.ebuild b/dev-haskell/citeproc-hs/citeproc-hs-0.3.10.ebuild new file mode 100644 index 000000000000..5765a67367bb --- /dev/null +++ b/dev-haskell/citeproc-hs/citeproc-hs-0.3.10.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.4.3 + +CABAL_FEATURES="lib profile haddock hoogle hscolour" +inherit base haskell-cabal + +DESCRIPTION="A Citation Style Language implementation in Haskell" +HOMEPAGE="http://istitutocolli.org/repos/citeproc-hs/" +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" + +RDEPEND="dev-haskell/json:=[profile?] + dev-haskell/mtl:=[profile?] + >=dev-haskell/pandoc-types-1.8:=[profile?] <dev-haskell/pandoc-types-1.13:=[profile?] + dev-haskell/parsec:=[profile?] + dev-haskell/syb:=[profile?] + dev-haskell/utf8-string:=[profile?] + >=dev-lang/ghc-7.4.1:= + bibutils? ( >=dev-haskell/hs-bibutils-0.3:=[profile?] ) + embed_data_files? ( dev-haskell/file-embed:=[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.6:=[profile?] + >=dev-haskell/network-uri-2.6:=[profile?] ) + unicode_collation? ( dev-haskell/text:=[profile?] + dev-haskell/text-icu:=[profile?] ) +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6 +" + +PATCHES=("${FILESDIR}/${P}-ghc-7.10.patch") + +src_configure() { + 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) +} diff --git a/dev-haskell/citeproc-hs/files/citeproc-hs-0.3.10-ghc-7.10.patch b/dev-haskell/citeproc-hs/files/citeproc-hs-0.3.10-ghc-7.10.patch new file mode 100644 index 000000000000..0ea6ce4e4313 --- /dev/null +++ b/dev-haskell/citeproc-hs/files/citeproc-hs-0.3.10-ghc-7.10.patch @@ -0,0 +1,28 @@ +--- citeproc-hs-0.3.10-orig/src/Text/CSL/Eval.hs 2015-03-17 21:32:38.000000000 +1100 ++++ citeproc-hs-0.3.10/src/Text/CSL/Eval.hs 2015-04-04 11:18:45.018893632 +1100 +@@ -1,4 +1,5 @@ + {-# LANGUAGE PatternGuards #-} ++{-# LANGUAGE FlexibleContexts #-} + ----------------------------------------------------------------------------- + -- | + -- Module : Text.CSL.Eval +--- citeproc-hs-0.3.10-orig/src/Text/CSL/Eval/Names.hs 2015-03-17 21:32:38.000000000 +1100 ++++ citeproc-hs-0.3.10/src/Text/CSL/Eval/Names.hs 2015-04-04 11:18:28.823909497 +1100 +@@ -1,4 +1,5 @@ + {-# LANGUAGE PatternGuards #-} ++{-# LANGUAGE FlexibleContexts #-} + ----------------------------------------------------------------------------- + -- | + -- Module : Text.CSL.Eval.Names +--- citeproc-hs-0.3.10-orig/src/Text/CSL/Test.hs 2015-03-17 21:32:38.000000000 +1100 ++++ citeproc-hs-0.3.10/src/Text/CSL/Test.hs 2015-04-04 11:21:42.164719120 +1100 +@@ -29,7 +29,9 @@ + import Data.Maybe (isJust) + import Data.Time + import System.Directory ++#if !MIN_VERSION_time(1,5,0) + import System.Locale ++#endif + + import Text.ParserCombinators.Parsec + diff --git a/dev-haskell/citeproc-hs/files/citeproc-hs-0.3.10-pandoc-1.16.patch b/dev-haskell/citeproc-hs/files/citeproc-hs-0.3.10-pandoc-1.16.patch new file mode 100644 index 000000000000..ab95388748d4 --- /dev/null +++ b/dev-haskell/citeproc-hs/files/citeproc-hs-0.3.10-pandoc-1.16.patch @@ -0,0 +1,126 @@ +diff --git a/citeproc-hs.cabal b/citeproc-hs.cabal +index 542f893..606ec05 100644 +--- a/citeproc-hs.cabal ++++ b/citeproc-hs.cabal +@@ -119,3 +119,3 @@ library + build-depends: containers, directory, mtl, json, utf8-string, +- bytestring, filepath, pandoc-types >= 1.8 && < 1.13 ++ bytestring, filepath, pandoc-types >= 1.8 + +diff --git a/src/Text/CSL/Output/Pandoc.hs b/src/Text/CSL/Output/Pandoc.hs +index 0f2cdfb..74e698f 100644 +--- a/src/Text/CSL/Output/Pandoc.hs ++++ b/src/Text/CSL/Output/Pandoc.hs +@@ -1,2 +1,2 @@ +-{-# LANGUAGE PatternGuards, DeriveDataTypeable #-} ++{-# LANGUAGE PatternGuards, DeriveDataTypeable, CPP #-} + ----------------------------------------------------------------------------- +@@ -78,2 +78,10 @@ tailFO (f:fs) + ++#if MIN_VERSION_pandoc_types(1,16,0) ++# define P16_ATTRS nullAttr ++# define P16_ATTRS_ _attrs ++#else ++# define P16_ATTRS ++# define P16_ATTRS_ ++#endif ++ + renderFo :: Style -> FormattedOutput -> [Inline] +@@ -85,3 +93,3 @@ renderFo sty fo + | FO fm xs <- fo = toPandoc fm $ rest xs +- | FUrl u fm <- fo = toPandoc fm [Link (toStr $ snd u) u] ++ | FUrl u fm <- fo = toPandoc fm [Link P16_ATTRS (toStr $ snd u) u] + | otherwise = [] +@@ -109,3 +117,3 @@ renderFo sty fo + setCase' f i +- | Link s r <- i = Link (map (setCase f) s) r ++ | Link P16_ATTRS_ s r <- i = Link P16_ATTRS_ (map (setCase f) s) r + | otherwise = setCase f i +@@ -148,3 +156,3 @@ renderFo sty fo + rmZeros = dropWhile (== '0') +- escape s x = Link x (s,s) -- we use a link to store some data ++ escape s x = Link P16_ATTRS x (s,s) -- we use a link to store some data + +@@ -181,3 +189,4 @@ clean s b (i:is) + | Strong x <- i = split (isLink' "strong" ) (return . Strong ) x ++ clean s b is +- | Link x t <- i = clean' s b (Link x t : clean s b is) ++ | Link P16_ATTRS_ x t <- i = clean' ++ s b (Link P16_ATTRS_ x t : clean s b is) + | otherwise = clean' s b (i : clean s b is) +@@ -185,10 +194,10 @@ clean s b (i:is) + unwrap f ls +- | Link x _ : _ <- ls = clean' s b x +- | _ : _ <- ls = f ls ++ | Link P16_ATTRS_ x _ : _ <- ls = clean' s b x ++ | _ : _ <- ls = f ls + | otherwise = [] + isLink l il +- | Link _ (x,y) <- il = x == l && x == y ++ | Link P16_ATTRS_ _ (x,y) <- il = x == l && x == y + | otherwise = False + isLink' l il +- | Link _ (x,y) <- il = (x == l || x == "nodecor") && x == y ++ | Link P16_ATTRS_ _ (x,y) <- il = (x == l || x == "nodecor") && x == y + | otherwise = False +@@ -201,3 +210,3 @@ clean' _ _ [] = [] + clean' s b (i:is) +- | Link inls (y,z) <- i, y == "inquote" ++ | Link P16_ATTRS_ inls (y,z) <- i, y == "inquote" + , y == z = case headInline is of +@@ -235,7 +244,7 @@ flipFlop (i:is) + reverseEmph' e +- | bo, Emph inls <- e = Link (reverseEmph False inls) ("emph","emph") ++ | bo, Emph inls <- e = Link P16_ATTRS (reverseEmph False inls) ("emph","emph") + | Emph inls <- e = Emph (reverseEmph True inls) +- | Link ls (x,y) <- e = if x == "nodecor" && x == y +- then Link ls ("emph","emph") +- else e ++ | Link P16_ATTRS_ ls (x,y) <- e = if x == "nodecor" && x == y ++ then Link P16_ATTRS_ ls ("emph","emph") ++ else e + | otherwise = e +@@ -244,7 +253,7 @@ flipFlop (i:is) + reverseStrong' e +- | bo, Strong inls <- e = Link (reverseStrong False inls) ("strong","strong") ++ | bo, Strong inls <- e = Link P16_ATTRS (reverseStrong False inls) ("strong","strong") + | Strong inls <- e = Strong (reverseStrong True inls) +- | Link ls (x,y) <- e = if x == "nodecor" && x == y +- then Link ls ("strong","strong") +- else e ++ | Link P16_ATTRS_ ls (x,y) <- e = if x == "nodecor" && x == y ++ then Link P16_ATTRS_ ls ("strong","strong") ++ else e + | otherwise = e +@@ -306,3 +315,3 @@ initInline (i:[]) + | Strikeout is <- i = return $ Strikeout (initInline is) +- | Link is t <- i = return $ Link (initInline is) t ++ | Link P16_ATTRS_ is t <- i = return $ Link P16_ATTRS_ (initInline is) t + | otherwise = [] +@@ -336,3 +345,3 @@ mapHeadInline f (i:xs) + | Strikeout is <- i = Strikeout (mapHeadInline f is) : xs +- | Link is t <- i = Link (mapHeadInline f is) t : xs ++ | Link P16_ATTRS_ is t <- i = Link P16_ATTRS_ (mapHeadInline f is) t : xs + | otherwise = i : xs +@@ -348,3 +357,3 @@ getInline i + | SmallCaps is <- i = is +- | Link is _ <- i = is ++ | Link P16_ATTRS_ is _ <- i = is + | otherwise = [] +diff --git a/src/Text/CSL/Test.hs b/src/Text/CSL/Test.hs +index 1a470cf..2d9befa 100644 +--- a/src/Text/CSL/Test.hs ++++ b/src/Text/CSL/Test.hs +@@ -166,2 +166,8 @@ pandocBib s + ++#if MIN_VERSION_pandoc_types(1,16,0) ++# define P16_ATTRS_ _attrs ++#else ++# define P16_ATTRS_ ++#endif ++ + pandocToHTML :: [Inline] -> String +@@ -179,3 +185,3 @@ pandocToHTML (i:xs) + SingleQuote -> "‘" ++ pandocToHTML is ++ "’" ++ pandocToHTML xs +- | Link is x <- i = case snd x of ++ | Link P16_ATTRS_ is x <- i = case snd x of + "emph" -> "<span style=\"font-style:normal;\">" ++ diff --git a/dev-haskell/citeproc-hs/metadata.xml b/dev-haskell/citeproc-hs/metadata.xml new file mode 100644 index 000000000000..a27651833e76 --- /dev/null +++ b/dev-haskell/citeproc-hs/metadata.xml @@ -0,0 +1,26 @@ +<?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="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> + citeproc-hs is 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: + <http://citationstyles.org/>. + + For the API documentation please see "Text.CSL". + </longdescription> +</pkgmetadata> |