diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2020-03-09 17:39:59 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2020-03-09 15:26:44 -0400 |
commit | f70cc29909da06b6d42ec3e3429de29fbdc93d87 (patch) | |
tree | b81d9416e04b7a23ff4b11586e839a680eab6d6a /app-i18n/tomoe | |
parent | dev-python/protobuf-python: Stabilize 3.11.4 on amd64/x86. (diff) | |
download | gentoo-f70cc29909da06b6d42ec3e3429de29fbdc93d87.tar.gz gentoo-f70cc29909da06b6d42ec3e3429de29fbdc93d87.tar.bz2 gentoo-f70cc29909da06b6d42ec3e3429de29fbdc93d87.zip |
app-i18n/tomoe: Fix Ruby usage.
Closes: https://bugs.gentoo.org/703908
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'app-i18n/tomoe')
-rw-r--r-- | app-i18n/tomoe/tomoe-0.6.0-r5.ebuild | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/app-i18n/tomoe/tomoe-0.6.0-r5.ebuild b/app-i18n/tomoe/tomoe-0.6.0-r5.ebuild index 059d1e78dd7d..b988c4806ff3 100644 --- a/app-i18n/tomoe/tomoe-0.6.0-r5.ebuild +++ b/app-i18n/tomoe/tomoe-0.6.0-r5.ebuild @@ -3,9 +3,9 @@ EAPI="6" PYTHON_COMPAT=( python2_7 ) -USE_RUBY="ruby24" +USE_RUBY="ruby24 ruby25 ruby26 ruby27" -inherit autotools python-single-r1 ruby-single +inherit autotools python-single-r1 ruby-utils DESCRIPTION="Japanese handwriting recognition engine" HOMEPAGE="http://tomoe.osdn.jp/" @@ -17,17 +17,7 @@ KEYWORDS="amd64 x86" IUSE="hyperestraier mysql python ruby ${USE_RUBY//ruby/ruby_targets_ruby} static-libs subversion" RESTRICT="test" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) - ruby? ( || ( ${USE_RUBY//ruby/ruby_targets_ruby} ) )" - -_ruby_set_globals() { - local ruby - for ruby in ${USE_RUBY}; do - RUBY_USEDEP="${RUBY_USEDEP}ruby_targets_${ruby}?," - done - RUBY_USEDEP="${RUBY_USEDEP%,}" -} -_ruby_set_globals -unset -f _ruby_set_globals + ruby? ( ^^ ( ${USE_RUBY//ruby/ruby_targets_ruby} ) )" RDEPEND="dev-libs/glib:2 hyperestraier? ( app-text/hyperestraier ) @@ -40,8 +30,12 @@ RDEPEND="dev-libs/glib:2 ') ) ruby? ( - ${RUBY_DEPS} - dev-ruby/ruby-glib2[${RUBY_USEDEP}] + $(for ruby in ${USE_RUBY}; do + echo "ruby_targets_${ruby}? ( + $(_ruby_implementation_depend "${ruby}") + dev-ruby/ruby-glib2[ruby_targets_${ruby}] + )" + done) ) subversion? ( dev-vcs/subversion )" DEPEND="${RDEPEND} @@ -75,7 +69,7 @@ src_prepare() { src_configure() { local ruby - for ruby in ${RUBY_TARGETS_PREFERENCE}; do + for ruby in ${USE_RUBY}; do if use ruby_targets_${ruby}; then break fi @@ -85,7 +79,7 @@ src_configure() { $(use_enable ruby dict-ruby) \ $(use_enable static-libs static) \ $(use_with python python "") \ - $(use_with ruby ruby "$(type -p ${ruby})") \ + $(use_with ruby ruby "$(type -P ${ruby})") \ --with-svn-include="${EPREFIX}"/usr/include \ --with-svn-lib="${EPREFIX}"/usr/$(get_libdir) } |