summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-07-20 09:32:01 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2019-07-20 09:32:30 +0100
commitf9d061e32e3a5fd087ccef9281a080ec01fc1af0 (patch)
treeab49def472078cec97290ba5f6caa213352c9ee4 /dev-haskell
parentdev-util/ccache: restore latest stable 3.6, bug #690240 (diff)
downloadgentoo-f9d061e32e3a5fd087ccef9281a080ec01fc1af0.tar.gz
gentoo-f9d061e32e3a5fd087ccef9281a080ec01fc1af0.tar.bz2
gentoo-f9d061e32e3a5fd087ccef9281a080ec01fc1af0.zip
dev-haskell/readline: fix build against ncurses[tinfo], bug #690268
Reported-by: Toralf Förster Closes: https://bugs.gentoo.org/690268 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-haskell')
-rw-r--r--dev-haskell/readline/files/readline-1.0.3.0-tinfo.patch9
-rw-r--r--dev-haskell/readline/readline-1.0.3.0-r1.ebuild30
2 files changed, 39 insertions, 0 deletions
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
new file mode 100644
index 000000000000..d6055164bab2
--- /dev/null
+++ b/dev-haskell/readline/files/readline-1.0.3.0-tinfo.patch
@@ -0,0 +1,9 @@
+https://bugs.gentoo.org/690268
+--- a/configure.ac
++++ b/configure.ac
+@@ -57,3 +57,4 @@ else
+ AC_CHECK_LIB(curses, tputs, HaveLibTermcap=YES; LibTermcap=curses,
+- HaveLibTermcap=NO; LibTermcap=not-installed)))
++ AC_CHECK_LIB(tinfo, tputs, HaveLibTermcap=YES; LibTermcap=tinfo,
++ HaveLibTermcap=NO; LibTermcap=not-installed))))
+
diff --git a/dev-haskell/readline/readline-1.0.3.0-r1.ebuild b/dev-haskell/readline/readline-1.0.3.0-r1.ebuild
new file mode 100644
index 000000000000..ae805749a726
--- /dev/null
+++ b/dev-haskell/readline/readline-1.0.3.0-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# ebuild generated by hackport 0.3.2.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
+inherit autotools haskell-cabal
+
+DESCRIPTION="An interface to the GNU readline library"
+HOMEPAGE="http://hackage.haskell.org/package/readline"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/${PV}"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/ghc-6.10.4:="
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.2"
+
+PATCHES=("${FILESDIR}"/${P}-tinfo.patch)
+
+src_prepare() {
+ default
+
+ eautoconf
+} \ No newline at end of file