diff options
-rw-r--r-- | dev-haskell/hsql/files/hsql-1.8.2-ghc84.patch | 29 | ||||
-rw-r--r-- | 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 000000000000..8f90d43393e2 --- /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 5d1559a6e3a1..53a5a9d3ae0b 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:" |