commit:     546abd38b574f129a5ede51c57f785c8ff23d870
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 28 18:39:36 2021 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Feb 28 18:43:03 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=546abd38

dev-haskell/alut: fix USE=example for modern GHC

Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/773379
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 dev-haskell/alut/alut-2.4.0.3.ebuild            |  4 +++-
 dev-haskell/alut/files/alut-2.4.0.3-ghc-8.patch | 10 ++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/dev-haskell/alut/alut-2.4.0.3.ebuild 
b/dev-haskell/alut/alut-2.4.0.3.ebuild
index 28bf060d07a..a85bd82de5f 100644
--- a/dev-haskell/alut/alut-2.4.0.3.ebuild
+++ b/dev-haskell/alut/alut-2.4.0.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -32,6 +32,8 @@ DEPEND="${RDEPEND}
 
 S="${WORKDIR}/${MY_P}"
 
+PATCHES=("${FILESDIR}"/${PN}-2.4.0.3-ghc-8.patch)
+
 src_configure() {
        haskell-cabal_src_configure \
                $(cabal_flag examples buildexamples) \

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
new file mode 100644
index 00000000000..dd8a512d3ef
--- /dev/null
+++ b/dev-haskell/alut/files/alut-2.4.0.3-ghc-8.patch
@@ -0,0 +1,10 @@
+--- a/examples/Basic/OpenALInfo.hs
++++ b/examples/Basic/OpenALInfo.hs
+@@ -7,6 +7,7 @@
+ 
+ import Text.PrettyPrint
+ import Sound.ALUT
++import Prelude hiding ((<>))
+ 
+ -- This program prints some basic information about ALC and AL.
+ 

Reply via email to