1 |
commit: f9d061e32e3a5fd087ccef9281a080ec01fc1af0 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 20 08:32:01 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 20 08:32:30 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9d061e3 |
7 |
|
8 |
dev-haskell/readline: fix build against ncurses[tinfo], bug #690268 |
9 |
|
10 |
Reported-by: Toralf Förster |
11 |
Closes: https://bugs.gentoo.org/690268 |
12 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
.../readline/files/readline-1.0.3.0-tinfo.patch | 9 +++++++ |
16 |
dev-haskell/readline/readline-1.0.3.0-r1.ebuild | 30 ++++++++++++++++++++++ |
17 |
2 files changed, 39 insertions(+) |
18 |
|
19 |
diff --git a/dev-haskell/readline/files/readline-1.0.3.0-tinfo.patch b/dev-haskell/readline/files/readline-1.0.3.0-tinfo.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..d6055164bab |
22 |
--- /dev/null |
23 |
+++ b/dev-haskell/readline/files/readline-1.0.3.0-tinfo.patch |
24 |
@@ -0,0 +1,9 @@ |
25 |
+https://bugs.gentoo.org/690268 |
26 |
+--- a/configure.ac |
27 |
++++ b/configure.ac |
28 |
+@@ -57,3 +57,4 @@ else |
29 |
+ AC_CHECK_LIB(curses, tputs, HaveLibTermcap=YES; LibTermcap=curses, |
30 |
+- HaveLibTermcap=NO; LibTermcap=not-installed))) |
31 |
++ AC_CHECK_LIB(tinfo, tputs, HaveLibTermcap=YES; LibTermcap=tinfo, |
32 |
++ HaveLibTermcap=NO; LibTermcap=not-installed)))) |
33 |
+ |
34 |
|
35 |
diff --git a/dev-haskell/readline/readline-1.0.3.0-r1.ebuild b/dev-haskell/readline/readline-1.0.3.0-r1.ebuild |
36 |
new file mode 100644 |
37 |
index 00000000000..ae805749a72 |
38 |
--- /dev/null |
39 |
+++ b/dev-haskell/readline/readline-1.0.3.0-r1.ebuild |
40 |
@@ -0,0 +1,30 @@ |
41 |
+# Copyright 1999-2019 Gentoo Authors |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+ |
44 |
+EAPI=7 |
45 |
+ |
46 |
+# ebuild generated by hackport 0.3.2.9999 |
47 |
+ |
48 |
+CABAL_FEATURES="lib profile haddock hoogle hscolour" |
49 |
+inherit autotools haskell-cabal |
50 |
+ |
51 |
+DESCRIPTION="An interface to the GNU readline library" |
52 |
+HOMEPAGE="http://hackage.haskell.org/package/readline" |
53 |
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" |
54 |
+ |
55 |
+LICENSE="GPL-2" |
56 |
+SLOT="0/${PV}" |
57 |
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
58 |
+IUSE="" |
59 |
+ |
60 |
+RDEPEND=">=dev-lang/ghc-6.10.4:=" |
61 |
+DEPEND="${RDEPEND} |
62 |
+ >=dev-haskell/cabal-1.2" |
63 |
+ |
64 |
+PATCHES=("${FILESDIR}"/${P}-tinfo.patch) |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ default |
68 |
+ |
69 |
+ eautoconf |
70 |
+} |
71 |
\ No newline at end of file |