commit:     290fba178f2c4eb5e066ece9f27f0d1aacf83191
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 22 21:47:46 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Aug 22 21:47:46 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=290fba17

dev-haskell/hsql: tweak for ghc-8.4

Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/735664
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 dev-haskell/hsql/files/hsql-1.8.2-ghc84.patch | 29 +++++++++++++++++++++++++++
 dev-haskell/hsql/hsql-1.8.2-r1.ebuild         |  8 ++++++--
 2 files changed, 35 insertions(+), 2 deletions(-)

diff --git a/dev-haskell/hsql/files/hsql-1.8.2-ghc84.patch 
b/dev-haskell/hsql/files/hsql-1.8.2-ghc84.patch
new file mode 100644
index 00000000000..8f90d43393e
--- /dev/null
+++ b/dev-haskell/hsql/files/hsql-1.8.2-ghc84.patch
@@ -0,0 +1,29 @@
+--- a/DB/HSQL/Core.hs
++++ b/DB/HSQL/Core.hs
+@@ -7,3 +7,3 @@ import Control.Exception(Exception,throw,catch,handle)
+ import Control.Concurrent.MVar(MVar,withMVar,modifyMVar_)
+-import Data.Dynamic(cast)
++import Data.Typeable(cast)
+ 
+--- a/DB/HSQL/Error.hs
++++ b/DB/HSQL/Error.hs
+@@ -7,3 +7,3 @@ module DB.HSQL.Error(SqlError(..)) where
+ import Control.Exception(Exception(..),SomeException(..))
+-import Data.Dynamic(Typeable,TyCon,mkTyCon3,cast)
++import Data.Typeable(Typeable, cast)
+ import DB.HSQL.Type(SqlType)
+@@ -32,14 +32,3 @@ data SqlError
+     | SqlClosedHandle -- ^ referenced handle is already closed
+-#ifdef __GLASGOW_HASKELL__
+    deriving (Eq,Ord,Typeable)
+-#else
+-   deriving (Eq,Ord)
+-
+-instance Typeable SqlError where
+-      typeOf _ = mkAppTy sqlErrorTc []
+-#endif
+-
+--- | The `TyCon' of `SqlError'.
+-sqlErrorTc :: TyCon
+-sqlErrorTc = mkTyCon3 "DB.HSQL" "Error" "SqlError"
+ 

diff --git a/dev-haskell/hsql/hsql-1.8.2-r1.ebuild 
b/dev-haskell/hsql/hsql-1.8.2-r1.ebuild
index 5d1559a6e3a..53a5a9d3ae0 100644
--- a/dev-haskell/hsql/hsql-1.8.2-r1.ebuild
+++ b/dev-haskell/hsql/hsql-1.8.2-r1.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
 # ebuild generated by hackport 0.4.6.9999
 
@@ -24,8 +24,12 @@ DEPEND="${RDEPEND}
        >=dev-haskell/cabal-1.10
 "
 
+PATCHES=(
+       "${FILESDIR}"/${P}-ghc84.patch
+)
+
 pkg_postinst() {
-       ghc-package_pkg_postinst
+       haskell-cabal_pkg_postinst
 
        elog "You will probably want to emerge one or more HSQL backend."
        elog "These backends are available:"

Reply via email to