diff options
| author | Sergei Trofimovich <slyfox@gentoo.org> | 2019-12-14 23:06:19 +0000 |
|---|---|---|
| committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-12-14 23:47:21 +0000 |
| commit | 9d48bfe76b896e8352664d88c601ec6cc9e2d020 (patch) | |
| tree | c07b0333c1bb294121e99167a83aacd56dc203de /dev-haskell/encoding/files/encoding-0.8.2-cabal22.patch | |
| parent | 6d82b4aa278caf6ad5c87ae9553383c155543962 (diff) | |
| download | gentoo-9d48bfe76b896e8352664d88c601ec6cc9e2d020.tar.gz gentoo-9d48bfe76b896e8352664d88c601ec6cc9e2d020.tar.bz2 gentoo-9d48bfe76b896e8352664d88c601ec6cc9e2d020.zip | |
dev-haskell/encoding: bump up to 0.8.2
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
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.patch | 22 |
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 |
