1 |
commit: 546abd38b574f129a5ede51c57f785c8ff23d870 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 28 18:39:36 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 28 18:43:03 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=546abd38 |
7 |
|
8 |
dev-haskell/alut: fix USE=example for modern GHC |
9 |
|
10 |
Reported-by: Toralf Förster |
11 |
Closes: https://bugs.gentoo.org/773379 |
12 |
Package-Manager: Portage-3.0.16, Repoman-3.0.2 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
dev-haskell/alut/alut-2.4.0.3.ebuild | 4 +++- |
16 |
dev-haskell/alut/files/alut-2.4.0.3-ghc-8.patch | 10 ++++++++++ |
17 |
2 files changed, 13 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/dev-haskell/alut/alut-2.4.0.3.ebuild b/dev-haskell/alut/alut-2.4.0.3.ebuild |
20 |
index 28bf060d07a..a85bd82de5f 100644 |
21 |
--- a/dev-haskell/alut/alut-2.4.0.3.ebuild |
22 |
+++ b/dev-haskell/alut/alut-2.4.0.3.ebuild |
23 |
@@ -1,4 +1,4 @@ |
24 |
-# Copyright 1999-2019 Gentoo Authors |
25 |
+# Copyright 1999-2021 Gentoo Authors |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
EAPI=7 |
29 |
@@ -32,6 +32,8 @@ DEPEND="${RDEPEND} |
30 |
|
31 |
S="${WORKDIR}/${MY_P}" |
32 |
|
33 |
+PATCHES=("${FILESDIR}"/${PN}-2.4.0.3-ghc-8.patch) |
34 |
+ |
35 |
src_configure() { |
36 |
haskell-cabal_src_configure \ |
37 |
$(cabal_flag examples buildexamples) \ |
38 |
|
39 |
diff --git a/dev-haskell/alut/files/alut-2.4.0.3-ghc-8.patch b/dev-haskell/alut/files/alut-2.4.0.3-ghc-8.patch |
40 |
new file mode 100644 |
41 |
index 00000000000..dd8a512d3ef |
42 |
--- /dev/null |
43 |
+++ b/dev-haskell/alut/files/alut-2.4.0.3-ghc-8.patch |
44 |
@@ -0,0 +1,10 @@ |
45 |
+--- a/examples/Basic/OpenALInfo.hs |
46 |
++++ b/examples/Basic/OpenALInfo.hs |
47 |
+@@ -7,6 +7,7 @@ |
48 |
+ |
49 |
+ import Text.PrettyPrint |
50 |
+ import Sound.ALUT |
51 |
++import Prelude hiding ((<>)) |
52 |
+ |
53 |
+ -- This program prints some basic information about ALC and AL. |
54 |
+ |