* [gentoo-commits] repo/gentoo:master commit in: dev-haskell/feed/files/, dev-haskell/feed/
@ 2016-05-11 8:49 Sergei Trofimovich
0 siblings, 0 replies; only message in thread
From: Sergei Trofimovich @ 2016-05-11 8:49 UTC (permalink / raw
To: gentoo-commits
commit: 884aac6da3885132fd3523afdafe6f4230d2a6ea
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Wed May 11 08:47:53 2016 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Wed May 11 08:48:03 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=884aac6d
dev-haskell/feed: allow ghc-8
Package-Manager: portage-2.2.28
dev-haskell/feed/feed-0.3.11.1.ebuild | 6 ++++++
dev-haskell/feed/files/feed-0.3.9.2-ghc-7.10.patch | 20 -----------------
.../feed/files/feed-0.3.9.2-utf8-string.patch | 25 ----------------------
3 files changed, 6 insertions(+), 45 deletions(-)
diff --git a/dev-haskell/feed/feed-0.3.11.1.ebuild b/dev-haskell/feed/feed-0.3.11.1.ebuild
index 88c638b..404dd30 100644
--- a/dev-haskell/feed/feed-0.3.11.1.ebuild
+++ b/dev-haskell/feed/feed-0.3.11.1.ebuild
@@ -31,3 +31,9 @@ DEPEND="${RDEPEND}
>=dev-haskell/test-framework-0.8 <dev-haskell/test-framework-0.9
>=dev-haskell/test-framework-hunit-0.3 <dev-haskell/test-framework-hunit-0.4 )
"
+
+src_prepare() {
+ cabal_chdeps \
+ 'base >= 4 && < 4.9' 'base >= 4' \
+ 'time < 1.6' 'time'
+}
diff --git a/dev-haskell/feed/files/feed-0.3.9.2-ghc-7.10.patch b/dev-haskell/feed/files/feed-0.3.9.2-ghc-7.10.patch
deleted file mode 100644
index 41f672c..0000000
--- a/dev-haskell/feed/files/feed-0.3.9.2-ghc-7.10.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- feed-0.3.9.2-orig/Text/Feed/Query.hs 2013-10-28 02:48:21.000000000 +1100
-+++ feed-0.3.9.2/Text/Feed/Query.hs 2015-04-04 11:48:36.759173147 +1100
-@@ -1,3 +1,4 @@
-+{-# LANGUAGE CPP #-}
- --------------------------------------------------------------------
- -- |
- -- Module : Text.Feed.Query
-@@ -62,7 +63,12 @@
- import Data.Maybe
-
- -- for getItemPublishDate rfc822 date parsing.
-+#if MIN_VERSION_time(1,5,0)
-+import System.Locale ( rfc822DateFormat, iso8601DateFormat )
-+import Data.Time ( defaultTimeLocale )
-+#else
- import System.Locale ( rfc822DateFormat, iso8601DateFormat, defaultTimeLocale )
-+#endif
- import Data.Time.Format ( ParseTime, parseTime )
-
- feedItems :: Feed.Feed -> [Feed.Item]
diff --git a/dev-haskell/feed/files/feed-0.3.9.2-utf8-string.patch b/dev-haskell/feed/files/feed-0.3.9.2-utf8-string.patch
deleted file mode 100644
index 323ae70..0000000
--- a/dev-haskell/feed/files/feed-0.3.9.2-utf8-string.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-diff --git a/Text/Feed/Import.hs b/Text/Feed/Import.hs
-index 8fde5f9..c001cee 100644
---- a/Text/Feed/Import.hs
-+++ b/Text/Feed/Import.hs
-@@ -12,6 +12,7 @@
- --
- --------------------------------------------------------------------
-
-+{-# LANGUAGE CPP #-}
- module Text.Feed.Import
- ( parseFeedFromFile -- :: FilePath -> IO Feed
- , parseFeedString -- :: String -> IO Feed
-@@ -32,7 +33,12 @@ import Text.XML.Light.Lexer ( XmlSource )
-
- import Control.Monad
-
-+#if MIN_VERSION_utf8_string(1,0,0)
-+import Prelude as UTF8 (readFile)
-+import Prelude
-+#else
- import System.IO.UTF8 as UTF8 ( readFile )
-+#endif
-
- -- | 'parseFeedFromFile fp' reads in the contents of the file at @fp@;
- -- the assumed encoding is UTF-8.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-11 8:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-11 8:49 [gentoo-commits] repo/gentoo:master commit in: dev-haskell/feed/files/, dev-haskell/feed/ Sergei Trofimovich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox