From: Sergei Trofimovich Date: Sat, 14 Dec 2019 11:16:50 +0000 (+0000) Subject: dev-lang/epic: tweak for ghc-8.4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1e32346b569e2530f249db147f870eacdb1b6a7d;p=gentoo.git dev-lang/epic: tweak for ghc-8.4 Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich --- diff --git a/dev-lang/epic/epic-0.9.3.3-r1.ebuild b/dev-lang/epic/epic-0.9.3.3-r1.ebuild index a1022b072aae..6480a23b545c 100644 --- a/dev-lang/epic/epic-0.9.3.3-r1.ebuild +++ b/dev-lang/epic/epic-0.9.3.3-r1.ebuild @@ -28,7 +28,10 @@ DEPEND="${RDEPEND} dev-haskell/happy " # Bug #438422, upstream at https://github.com/edwinb/EpiVM/issues/5. -PATCHES=("${FILESDIR}"/${PN}-0.9.3.3-respect-user-cflags.patch) +PATCHES=( + "${FILESDIR}"/${PN}-0.9.3.3-respect-user-cflags.patch + "${FILESDIR}"/${PN}-0.9.3.3-ghc84.patch +) src_prepare() { default diff --git a/dev-lang/epic/files/epic-0.9.3.3-ghc84.patch b/dev-lang/epic/files/epic-0.9.3.3-ghc84.patch new file mode 100644 index 000000000000..978cb8b88ce5 --- /dev/null +++ b/dev-lang/epic/files/epic-0.9.3.3-ghc84.patch @@ -0,0 +1,15 @@ +--- a/Main.lhs ++++ b/Main.lhs +@@ -10,11 +10,7 @@ + > import Epic.Compiler + > import Paths_epic + +-> versionString = showV (versionBranch version) +-> where +-> showV [] = "" +-> showV [a] = show a +-> showV (x:xs) = show x ++ "." ++ showV xs ++> versionString = show version + + > main = do args <- getArgs + > (fns, opts) <- getInput args