dev-haskell/readline: fix build against ncurses[tinfo], bug #690268
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 20 Jul 2019 08:32:01 +0000 (09:32 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 20 Jul 2019 08:32:30 +0000 (09:32 +0100)
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>
dev-haskell/readline/files/readline-1.0.3.0-tinfo.patch [new file with mode: 0644]
dev-haskell/readline/readline-1.0.3.0-r1.ebuild [new file with mode: 0644]

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 (file)
index 0000000..d605516
--- /dev/null
@@ -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 (file)
index 0000000..ae80574
--- /dev/null
@@ -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