diff options
author | Akinori Hattori <hattya@gentoo.org> | 2017-07-23 22:51:26 +0900 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2017-07-23 22:52:37 +0900 |
commit | ece04f569aec1c625db959259e3e4a20b9edf67d (patch) | |
tree | 9a1f1e12340291f7be7fde82b36dd891c83d7d83 /x11-libs | |
parent | x11-libs/libgxim: add test USE flag (diff) | |
download | gentoo-ece04f569aec1c625db959259e3e4a20b9edf67d.tar.gz gentoo-ece04f569aec1c625db959259e3e4a20b9edf67d.tar.bz2 gentoo-ece04f569aec1c625db959259e3e4a20b9edf67d.zip |
x11-libs/libgxim: fix build
Gentoo-Bug: 623890
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'x11-libs')
-rw-r--r-- | x11-libs/libgxim/libgxim-0.5.0.ebuild | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/x11-libs/libgxim/libgxim-0.5.0.ebuild b/x11-libs/libgxim/libgxim-0.5.0.ebuild index a9bd005eae5f..fab59de0f630 100644 --- a/x11-libs/libgxim/libgxim-0.5.0.ebuild +++ b/x11-libs/libgxim/libgxim-0.5.0.ebuild @@ -2,8 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 EAPI="6" +USE_RUBY="ruby21 ruby22 ruby23 ruby24" -inherit autotools ltprune +inherit autotools ltprune ruby-single DESCRIPTION="GObject-based XIM protocol library" HOMEPAGE="https://tagoh.bitbucket.io/libgxim" @@ -12,7 +13,7 @@ SRC_URI="https://bitbucket.org/tagoh/${PN}/downloads/${P}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="static-libs test" +IUSE="${USE_RUBY//ruby/ruby_targets_ruby} static-libs test" RDEPEND="dev-libs/dbus-glib dev-libs/glib:2 @@ -20,7 +21,7 @@ RDEPEND="dev-libs/dbus-glib virtual/libintl x11-libs/gtk+:2" DEPEND="${RDEPEND} - dev-lang/ruby + ${RUBY_DEPS} dev-util/intltool sys-devel/autoconf-archive sys-devel/gettext @@ -38,6 +39,14 @@ src_prepare() { sed -i "/^ACLOCAL_AMFLAGS/,/^$/d" Makefile.am + local ruby + for ruby in ${USE_RUBY}; do + if use ruby_targets_${ruby}; then + sed -i "1s/ruby/${ruby}/" ${PN}/mkacc.rb + break + fi + done + default eautoreconf } |