summaryrefslogtreecommitdiff
path: root/dev-haskell/encoding/files/encoding-0.8.2-cabal22.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
commit7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch)
tree4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /dev-haskell/encoding/files/encoding-0.8.2-cabal22.patch
parentb284a3168fa91a038925d2ecf5e4791011ea5e7d (diff)
gentoo resync : 15.12.2019
Diffstat (limited to 'dev-haskell/encoding/files/encoding-0.8.2-cabal22.patch')
-rw-r--r--dev-haskell/encoding/files/encoding-0.8.2-cabal22.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-haskell/encoding/files/encoding-0.8.2-cabal22.patch b/dev-haskell/encoding/files/encoding-0.8.2-cabal22.patch
new file mode 100644
index 000000000000..bc1614deb71e
--- /dev/null
+++ b/dev-haskell/encoding/files/encoding-0.8.2-cabal22.patch
@@ -0,0 +1,22 @@
+diff --git a/Setup.hs b/Setup.hs
+index de719e6..e58a316 100644
+--- a/Setup.hs
++++ b/Setup.hs
+@@ -1 +1,2 @@
++{-# LANGUAGE CPP #-}
+ module Main where
+@@ -6,2 +7,11 @@ import Data.Encoding.Preprocessor.XMLMappingBuilder
+
++#if MIN_VERSION_Cabal(2,2,0)
++main = defaultMainWithHooks (simpleUserHooks
++ {hookedPreProcessors = (("mapping",\_ _ _ -> mappingPreprocessor)
++ :("mapping2",\_ _ _ -> mappingPreprocessor)
++ :("xml",\_ _ _ -> xmlPreprocessor)
++ :(hookedPreProcessors simpleUserHooks)
++ )
++ })
++#else
+ main = defaultMainWithHooks (simpleUserHooks
+@@ -13 +23,2 @@ main = defaultMainWithHooks (simpleUserHooks
+ })
++#endif