sys-libs/readline: Introduced "unicode" USE flag in stable as well
authorLars Wendler <polynomial-c@gentoo.org>
Mon, 14 Oct 2019 07:50:57 +0000 (09:50 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Mon, 14 Oct 2019 07:50:57 +0000 (09:50 +0200)
Bug: https://bugs.gentoo.org/669214
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-libs/readline/readline-7.0_p5-r1.ebuild [moved from sys-libs/readline/readline-7.0_p5.ebuild with 96% similarity]

similarity index 96%
rename from sys-libs/readline/readline-7.0_p5.ebuild
rename to sys-libs/readline/readline-7.0_p5-r1.ebuild
index 04e6ade437a4d60e78744dff4c5cc0a8d616f660..0facdfe5f1151eab7b4adf9e58bc4d9a6aa18808 100644 (file)
@@ -42,9 +42,9 @@ esac
 LICENSE="GPL-3"
 SLOT="0/7"  # subslot matches SONAME major
 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 ~riscv s390 sh sparc x86 ~amd64-linux ~x86-linux"
-IUSE="static-libs utils"
+IUSE="static-libs +unicode utils"
 
-RDEPEND=">=sys-libs/ncurses-5.9-r3:0=[static-libs?,${MULTILIB_USEDEP}]"
+RDEPEND=">=sys-libs/ncurses-5.9-r3:0=[static-libs?,unicode?,${MULTILIB_USEDEP}]"
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
@@ -70,7 +70,7 @@ src_prepare() {
 
        # Force ncurses linking. #71420
        # Use pkg-config to get the right values. #457558
-       local ncurses_libs=$($(tc-getPKG_CONFIG) ncurses --libs)
+       local ncurses_libs=$($(tc-getPKG_CONFIG) ncurses$(usex unicode w '') --libs)
        sed -i \
                -e "/^SHLIB_LIBS=/s:=.*:='${ncurses_libs}':" \
                support/shobj-conf || die