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"; + } + }