From a54aa3d264a55fd3d1b2cd3f7dcd4db29463f4e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Oth=C3=B3n=20Mart=C3=ADnez=20Vera?= Date: Tue, 9 Dec 2025 14:59:46 -0600 Subject: [PATCH] dev-perl/Unicode-LineBreak: remove which from Makefile.PL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/967045 Signed-off-by: Cristian Othón Martínez Vera Part-of: https://github.com/gentoo/gentoo/pull/44973 Closes: https://github.com/gentoo/gentoo/pull/44973 Signed-off-by: Sam James --- .../Unicode-LineBreak-2019.1.0-r2.ebuild | 19 +++++++++++++++++++ .../Unicode-LineBreak-2019.1.0-which.patch | 13 +++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 dev-perl/Unicode-LineBreak/Unicode-LineBreak-2019.1.0-r2.ebuild create mode 100644 dev-perl/Unicode-LineBreak/files/Unicode-LineBreak-2019.1.0-which.patch diff --git a/dev-perl/Unicode-LineBreak/Unicode-LineBreak-2019.1.0-r2.ebuild b/dev-perl/Unicode-LineBreak/Unicode-LineBreak-2019.1.0-r2.ebuild new file mode 100644 index 0000000000000..42bae07cd08cf --- /dev/null +++ b/dev-perl/Unicode-LineBreak/Unicode-LineBreak-2019.1.0-r2.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=NEZUMI +DIST_VERSION=2019.001 + +inherit perl-module + +DESCRIPTION="UAX #14 Unicode Line Breaking Algorithm" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" + +RDEPEND="dev-perl/MIME-Charset" +DEPEND="${RDEPEND}" +PERL_RM_FILES=("t/pod.t") +PATCHES=( "${FILESDIR}"/${PN}-2019.1.0-which.patch ) diff --git a/dev-perl/Unicode-LineBreak/files/Unicode-LineBreak-2019.1.0-which.patch b/dev-perl/Unicode-LineBreak/files/Unicode-LineBreak-2019.1.0-which.patch new file mode 100644 index 0000000000000..a09830fe13ae5 --- /dev/null +++ b/dev-perl/Unicode-LineBreak/files/Unicode-LineBreak-2019.1.0-which.patch @@ -0,0 +1,13 @@ +Bug: https://bugs.gentoo.org/967045 + +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -209,7 +209,7 @@ + sub CheckExternalDependencies { + my @dependencies = @_; + for my $program (@dependencies) { +- if (system("which $program > /dev/null") != 0) { ++ if (system("command -v $program > /dev/null") != 0) { + warn "W: Required test dependency not found: $program\n"; + } + }