commit:     a54aa3d264a55fd3d1b2cd3f7dcd4db29463f4e7
Author:     Cristian Othón Martínez Vera <cfuga <AT> cfuga <DOT> mx>
AuthorDate: Tue Dec  9 20:59:46 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 10 12:53:42 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a54aa3d2

dev-perl/Unicode-LineBreak: remove which from Makefile.PL

Closes: https://bugs.gentoo.org/967045
Signed-off-by: Cristian Othón Martínez Vera <cfuga <AT> cfuga.mx>
Part-of: https://github.com/gentoo/gentoo/pull/44973
Closes: https://github.com/gentoo/gentoo/pull/44973
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../Unicode-LineBreak-2019.1.0-r2.ebuild              | 19 +++++++++++++++++++
 .../files/Unicode-LineBreak-2019.1.0-which.patch      | 13 +++++++++++++
 2 files changed, 32 insertions(+)

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 000000000000..42bae07cd08c
--- /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 000000000000..a09830fe13ae
--- /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";
+     }
+   }

Reply via email to