app-i18n/skk-jisyo: replace has_version → use
authorAkinori Hattori <hattya@gentoo.org>
Sun, 23 Jul 2017 15:29:44 +0000 (00:29 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Sun, 23 Jul 2017 15:29:44 +0000 (00:29 +0900)
Package-Manager: Portage-2.3.6, Repoman-2.3.1

app-i18n/skk-jisyo/skk-jisyo-999999.ebuild

index 2513ae57e57e73ae1b34797487239aa2d1e9abff..0df271059b3b74111907f4e84d43b049cc81a182 100644 (file)
@@ -18,7 +18,7 @@ ECVS_PASS="guest"
 LICENSE="GPL-2 freedist public-domain"
 SLOT="0"
 KEYWORDS=""
-IUSE="cdb"
+IUSE="cdb ${USE_RUBY//ruby/ruby_targets_ruby}"
 
 DEPEND="${RUBY_DEPS}
        app-i18n/skktools
@@ -54,7 +54,7 @@ src_compile() {
        local ctdic="${MY_PN}.china_taiwan" ruby
        mv ${ctdic}{.header,}
        for ruby in ${USE_RUBY}; do
-               if has_version dev-lang/ruby:${ruby:4:1}.${ruby:5}; then
+               if use ruby_targets_${ruby}; then
                        ${ruby} ${SKKTOOLS_DIR}/ctdicconv.rb csv/${ctdic##*.}.csv | skkdic-expr2 >> ${ctdic}
                        break
                fi