diff options
author | 2016-02-24 09:00:27 +0000 | |
---|---|---|
committer | 2016-02-24 09:00:44 +0000 | |
commit | 1b0ef9a0800b86559169cab3e236dbb0c32d1db0 (patch) | |
tree | 5e2a421b3ce8c29359d51399ece3ac2afba0e634 /dev-haskell/pandoc-citeproc/files | |
parent | dev-python/click: Build docs using python2 (diff) | |
download | gentoo-1b0ef9a0800b86559169cab3e236dbb0c32d1db0.tar.gz gentoo-1b0ef9a0800b86559169cab3e236dbb0c32d1db0.tar.bz2 gentoo-1b0ef9a0800b86559169cab3e236dbb0c32d1db0.zip |
dev-haskell/pandoc-citeproc: fix USE=-bibutils build, #516640
Reported-by: Thomas Beutin
Bug: https://bugs.gentoo.org/516640
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-haskell/pandoc-citeproc/files')
-rw-r--r-- | dev-haskell/pandoc-citeproc/files/pandoc-citeproc-0.9-no-binutils.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-haskell/pandoc-citeproc/files/pandoc-citeproc-0.9-no-binutils.patch b/dev-haskell/pandoc-citeproc/files/pandoc-citeproc-0.9-no-binutils.patch new file mode 100644 index 00000000000..c7c8655e14d --- /dev/null +++ b/dev-haskell/pandoc-citeproc/files/pandoc-citeproc-0.9-no-binutils.patch @@ -0,0 +1,26 @@ +Fails to build with -f-bibutils: +https://bugs.gentoo.org/516640 +diff --git a/pandoc-citeproc.hs b/pandoc-citeproc.hs +index 7006e02..f72fa41 100644 +--- a/pandoc-citeproc.hs ++++ b/pandoc-citeproc.hs +@@ -1 +1,2 @@ ++{-# LANGUAGE CPP #-} + module Main where +@@ -75,2 +76,3 @@ readFormat = go . map toLower + go "bibtex" = Just Bibtex ++#ifdef USE_BIBUTILS + go "ris" = Just Ris +@@ -87,2 +89,3 @@ readFormat = go . map toLower + go "yaml" = Just Yaml ++#endif + go _ = Nothing +diff --git a/src/Text/CSL/Input/Bibutils.hs b/src/Text/CSL/Input/Bibutils.hs +index 081fa91..49ddbd0 100644 +--- a/src/Text/CSL/Input/Bibutils.hs ++++ b/src/Text/CSL/Input/Bibutils.hs +@@ -64,3 +64,3 @@ readBiblioFile f + #else +- _ -> error $ "citeproc: Bibliography format not supported.\n" ++ ++ _ -> error $ "citeproc: Bibliography format not supported.\n" + #endif |