summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-08-29 09:36:08 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-08-29 09:36:08 +0100
commitb1fb32ba4813b894492d6e764e2fc8c1c3d7f230 (patch)
tree31d37464498b42755188810db4de62938e171889 /dev-haskell/hsql-sqlite3/files
parentdev-haskell/hsql-odbc: tweak for cabal-3 (diff)
downloadgentoo-b1fb32ba4813b894492d6e764e2fc8c1c3d7f230.tar.gz
gentoo-b1fb32ba4813b894492d6e764e2fc8c1c3d7f230.tar.bz2
gentoo-b1fb32ba4813b894492d6e764e2fc8c1c3d7f230.zip
dev-haskell/hsql-sqlite3: tweak for cabal-3
Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-haskell/hsql-sqlite3/files')
-rw-r--r--dev-haskell/hsql-sqlite3/files/hsql-sqlite3-1.8.2-cabal22.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-haskell/hsql-sqlite3/files/hsql-sqlite3-1.8.2-cabal22.patch b/dev-haskell/hsql-sqlite3/files/hsql-sqlite3-1.8.2-cabal22.patch
new file mode 100644
index 000000000000..b421fbb9362a
--- /dev/null
+++ b/dev-haskell/hsql-sqlite3/files/hsql-sqlite3-1.8.2-cabal22.patch
@@ -0,0 +1,14 @@
+--- a/Setup.lhs
++++ b/Setup.lhs
+@@ -3,2 +3,3 @@
+ \begin{code}
++{-# LANGUAGE CPP #-}
+ import Control.Monad(when)
+@@ -13,3 +14,7 @@ import Distribution.PackageDescription
+ ,emptyBuildInfo)
++#if MIN_VERSION_Cabal(2,2,0)
++import Distribution.PackageDescription.PrettyPrint(writeHookedBuildInfo)
++#else
+ import Distribution.PackageDescription.Parse(writeHookedBuildInfo)
++#endif
+ import Distribution.Simple(UserHooks(preConf,postConf) ,simpleUserHooks