summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-12-14 11:16:50 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2019-12-14 11:16:50 +0000
commit1e32346b569e2530f249db147f870eacdb1b6a7d (patch)
tree205f59d1c01bef03318f78a3620e6faff57f01b5 /dev-lang/epic
parentdev-util/bnfc: tweak for ghc-8.4 (diff)
downloadgentoo-1e32346b569e2530f249db147f870eacdb1b6a7d.tar.gz
gentoo-1e32346b569e2530f249db147f870eacdb1b6a7d.tar.bz2
gentoo-1e32346b569e2530f249db147f870eacdb1b6a7d.zip
dev-lang/epic: tweak for ghc-8.4
Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-lang/epic')
-rw-r--r--dev-lang/epic/epic-0.9.3.3-r1.ebuild5
-rw-r--r--dev-lang/epic/files/epic-0.9.3.3-ghc84.patch15
2 files changed, 19 insertions, 1 deletions
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