summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Beranek <roman.beranek@prusa3d.com>2021-06-02 04:09:10 +0200
committerSam James <sam@gentoo.org>2021-06-02 20:03:58 +0000
commit75c69ab7fe8cf9f97891fe54e08f81cb7d61d5dc (patch)
treebdf9e5dfc3a19a64e8565ee4918fca0559080ae7 /dev-perl
parentmedia-gfx/hydrus: Bump to python 3.9 (diff)
downloadgentoo-75c69ab7fe8cf9f97891fe54e08f81cb7d61d5dc.tar.gz
gentoo-75c69ab7fe8cf9f97891fe54e08f81cb7d61d5dc.tar.bz2
gentoo-75c69ab7fe8cf9f97891fe54e08f81cb7d61d5dc.zip
dev-perl/Term-ReadLine-Gnu: DEPEND on ncurses
And prevent Term-ReadLine-Gnu-1.420.0 from trying to link to -ltermcap when sys-libs/libtermcap-compat is installed. Closes: https://bugs.gentoo.org/791691 Signed-off-by: Roman Beranek <roman.beranek@prusa3d.com> Closes: https://github.com/gentoo/gentoo/pull/21083 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-perl')
-rw-r--r--dev-perl/Term-ReadLine-Gnu/Term-ReadLine-Gnu-1.360.0-r1.ebuild (renamed from dev-perl/Term-ReadLine-Gnu/Term-ReadLine-Gnu-1.360.0.ebuild)5
-rw-r--r--dev-perl/Term-ReadLine-Gnu/Term-ReadLine-Gnu-1.420.0-r1.ebuild (renamed from dev-perl/Term-ReadLine-Gnu/Term-ReadLine-Gnu-1.420.0.ebuild)14
2 files changed, 17 insertions, 2 deletions
diff --git a/dev-perl/Term-ReadLine-Gnu/Term-ReadLine-Gnu-1.360.0.ebuild b/dev-perl/Term-ReadLine-Gnu/Term-ReadLine-Gnu-1.360.0-r1.ebuild
index f4c04f5412e3..474a964cf34a 100644
--- a/dev-perl/Term-ReadLine-Gnu/Term-ReadLine-Gnu-1.360.0.ebuild
+++ b/dev-perl/Term-ReadLine-Gnu/Term-ReadLine-Gnu-1.360.0-r1.ebuild
@@ -14,7 +14,10 @@ SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ppc ~ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux"
IUSE=""
-RDEPEND=">=sys-libs/readline-6.2:0="
+RDEPEND="
+ >=sys-libs/readline-6.2:0=
+ sys-libs/ncurses:0=
+"
DEPEND="${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
"
diff --git a/dev-perl/Term-ReadLine-Gnu/Term-ReadLine-Gnu-1.420.0.ebuild b/dev-perl/Term-ReadLine-Gnu/Term-ReadLine-Gnu-1.420.0-r1.ebuild
index 66ff4fa82958..e2e3785ea442 100644
--- a/dev-perl/Term-ReadLine-Gnu/Term-ReadLine-Gnu-1.420.0.ebuild
+++ b/dev-perl/Term-ReadLine-Gnu/Term-ReadLine-Gnu-1.420.0-r1.ebuild
@@ -14,7 +14,10 @@ SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE=""
-RDEPEND=">=sys-libs/readline-6.2:0="
+RDEPEND="
+ >=sys-libs/readline-6.2:0=
+ sys-libs/ncurses:0=
+"
DEPEND="
${RDEPEND}
"
@@ -22,3 +25,12 @@ BDEPEND="
${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
"
+
+src_prepare() {
+ default
+ # search_termlib() selects termcap when sys-libs/libtermcap-compat is installed
+ # despite the absence of libtermcap.so symlink
+ sed -i -e \
+ "s/search_termlib()/search_lib('-ltinfo') || search_lib('-lncurses')/" \
+ Makefile.PL || die
+}