commit:     4ca6d819c08cc099a1b31dc1f8fc9a1e5ed32fad
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  1 12:28:11 2017 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Tue Aug  1 12:29:54 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ca6d819

app-dicts/wnn-ldic: fix build

Gentoo-Bug: 626064

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 app-dicts/wnn-ldic/wnn-ldic-1.04.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/app-dicts/wnn-ldic/wnn-ldic-1.04.ebuild 
b/app-dicts/wnn-ldic/wnn-ldic-1.04.ebuild
index 08f3cfea5e1..9c381729786 100644
--- a/app-dicts/wnn-ldic/wnn-ldic-1.04.ebuild
+++ b/app-dicts/wnn-ldic/wnn-ldic-1.04.ebuild
@@ -21,7 +21,11 @@ src_unpack() {
 }
 
 src_compile() {
-       /usr/bin/Wnn4/atod lib.dic < "${DISTDIR}"/${A} || die
+       local atod=atod
+       if has_version "<app-i18n/freewnn-1.1.1_alpha23"; then
+               atod="${EPREFIX}"/usr/bin/Wnn4/atod
+       fi
+       "${atod}" lib.dic < "${DISTDIR}"/${A} || die
 }
 
 src_install() {

Reply via email to