diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-haskell/hdbc-mysql/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/hdbc-mysql/files')
-rw-r--r-- | dev-haskell/hdbc-mysql/files/hdbc-mysql-0.6.6.1-cabal-1.18.patch | 33 | ||||
-rw-r--r-- | dev-haskell/hdbc-mysql/files/hdbc-mysql-0.6.6.1-extralib.patch | 18 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-haskell/hdbc-mysql/files/hdbc-mysql-0.6.6.1-cabal-1.18.patch b/dev-haskell/hdbc-mysql/files/hdbc-mysql-0.6.6.1-cabal-1.18.patch new file mode 100644 index 000000000000..83ddd4a4c8ca --- /dev/null +++ b/dev-haskell/hdbc-mysql/files/hdbc-mysql-0.6.6.1-cabal-1.18.patch @@ -0,0 +1,33 @@ +--- HDBC-mysql-0.6.6.1-orig/Setup.lhs 2012-08-30 13:40:03.000000000 +1000 ++++ HDBC-mysql-0.6.6.1/Setup.lhs 2014-07-03 22:31:21.162259637 +1000 +@@ -1,6 +1,7 @@ + #!/usr/bin/env runhaskell + + \begin{code} ++{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-} + import Distribution.Simple + import Distribution.PackageDescription + import Distribution.Version +@@ -26,8 +27,21 @@ + } + } + ++-- 'ConstOrId' is a @Cabal-1.16@ vs @Cabal-1.18@ compatibility hack, ++-- 'programFindLocation' has a new (unused in this case) ++-- parameter. 'ConstOrId' adds this parameter when types say it is ++-- mandatory. ++class ConstOrId a b where ++ constOrId :: a -> b ++ ++instance ConstOrId a a where ++ constOrId = id ++ ++instance ConstOrId a (b -> a) where ++ constOrId = const ++ + mysqlConfigProgram = (simpleProgram "mysql_config") { +- programFindLocation = \verbosity -> do ++ programFindLocation = \verbosity -> constOrId $ do + mysql_config <- findProgramOnPath "mysql_config" verbosity + mysql_config5 <- findProgramOnPath "mysql_config5" verbosity + return (mysql_config `mplus` mysql_config5) diff --git a/dev-haskell/hdbc-mysql/files/hdbc-mysql-0.6.6.1-extralib.patch b/dev-haskell/hdbc-mysql/files/hdbc-mysql-0.6.6.1-extralib.patch new file mode 100644 index 000000000000..8b9993969cb3 --- /dev/null +++ b/dev-haskell/hdbc-mysql/files/hdbc-mysql-0.6.6.1-extralib.patch @@ -0,0 +1,18 @@ +commit d53860f7edb75873e263111129c159802b2ac5a6 +Author: Satoshi Nakamura <snakamura@infoteria.com> +Date: Tue May 27 15:44:57 2014 +0900 + + Add mysqlclient to Extra-Libraries + +diff --git a/HDBC-mysql.cabal b/HDBC-mysql.cabal +index 2d56d8b..6a8967a 100644 +--- a/HDBC-mysql.cabal ++++ b/HDBC-mysql.cabal +@@ -32,6 +32,7 @@ library + time, + utf8-string + ghc-options: -Wall ++ Extra-Libraries: mysqlclient + + source-repository head + type: git |