commit: c6c893cd975f79848ccbfe7c78a46d48db86ad86
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Sat May 16 14:44:35 2020 +0000
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Sat May 16 14:47:47 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6c893cd
app-i18n/nkf: fix tests
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>
app-i18n/nkf/files/nkf-2.1.4-test.patch | 11 +++++++++++
app-i18n/nkf/nkf-2.1.4.ebuild | 2 ++
2 files changed, 13 insertions(+)
diff --git a/app-i18n/nkf/files/nkf-2.1.4-test.patch
b/app-i18n/nkf/files/nkf-2.1.4-test.patch
new file mode 100644
index 00000000000..26964ef4d64
--- /dev/null
+++ b/app-i18n/nkf/files/nkf-2.1.4-test.patch
@@ -0,0 +1,11 @@
+--- a/test.pl
++++ b/test.pl
+@@ -120,7 +120,7 @@
+ return;
+ }
+
+-do "nkf_test.pl";
++do "./nkf_test.pl";
+ unlink "nkf.in";
+ unlink "nkf.out";
+
diff --git a/app-i18n/nkf/nkf-2.1.4.ebuild b/app-i18n/nkf/nkf-2.1.4.ebuild
index 4810641db1b..98564b76343 100644
--- a/app-i18n/nkf/nkf-2.1.4.ebuild
+++ b/app-i18n/nkf/nkf-2.1.4.ebuild
@@ -30,6 +30,8 @@ RDEPEND="python? (
)"
DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}"/${P}-test.patch )
+
src_unpack() {
use python && vcs-snapshot_src_unpack || default
}