app-i18n/nkf: fix tests
authorAkinori Hattori <hattya@gentoo.org>
Sat, 16 May 2020 14:44:35 +0000 (23:44 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Sat, 16 May 2020 14:47:47 +0000 (23:47 +0900)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
app-i18n/nkf/files/nkf-2.1.4-test.patch [new file with mode: 0644]
app-i18n/nkf/nkf-2.1.4.ebuild

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 (file)
index 0000000..26964ef
--- /dev/null
@@ -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";
index 4810641db1b65b17b9bbc6f236c9d9c80b4f0f18..98564b76343b5c8faf02b488b26d5a96b144f2ff 100644 (file)
@@ -30,6 +30,8 @@ RDEPEND="python? (
        )"
 DEPEND="${RDEPEND}"
 
+PATCHES=( "${FILESDIR}"/${P}-test.patch )
+
 src_unpack() {
        use python && vcs-snapshot_src_unpack || default
 }