From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 88B90139694 for ; Sun, 23 Jul 2017 13:52:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AB1F31FC041; Sun, 23 Jul 2017 13:52:55 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 857F61FC041 for ; Sun, 23 Jul 2017 13:52:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 873E9341895 for ; Sun, 23 Jul 2017 13:52:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 05D1F74BF for ; Sun, 23 Jul 2017 13:52:53 +0000 (UTC) From: "Akinori Hattori" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Akinori Hattori" Message-ID: <1500817957.ece04f569aec1c625db959259e3e4a20b9edf67d.hattya@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/libgxim/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-libs/libgxim/libgxim-0.5.0.ebuild X-VCS-Directories: x11-libs/libgxim/ X-VCS-Committer: hattya X-VCS-Committer-Name: Akinori Hattori X-VCS-Revision: ece04f569aec1c625db959259e3e4a20b9edf67d X-VCS-Branch: master Date: Sun, 23 Jul 2017 13:52:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: fd76539e-ced4-4dd0-a1d1-8aed00b46c83 X-Archives-Hash: 776afdbc6a45865b1cd3f4919839ea40 commit: ece04f569aec1c625db959259e3e4a20b9edf67d Author: Akinori Hattori gentoo org> AuthorDate: Sun Jul 23 13:51:26 2017 +0000 Commit: Akinori Hattori gentoo org> CommitDate: Sun Jul 23 13:52:37 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ece04f56 x11-libs/libgxim: fix build Gentoo-Bug: 623890 Package-Manager: Portage-2.3.6, Repoman-2.3.1 x11-libs/libgxim/libgxim-0.5.0.ebuild | 15 ++++++++++++--- 1 file 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 a9bd005eae5..fab59de0f63 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 }