commit:     0e34c2da1675de375e741e4fc8a17e7743d09ad1
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  3 09:33:28 2016 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Dec  3 09:33:50 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e34c2da

app-text/xmlformat: use ruby-single to manage ruby dependency

Package-Manager: portage-2.3.0

 app-text/xmlformat/xmlformat-1.04.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/app-text/xmlformat/xmlformat-1.04.ebuild 
b/app-text/xmlformat/xmlformat-1.04.ebuild
index d520298..8962796 100644
--- a/app-text/xmlformat/xmlformat-1.04.ebuild
+++ b/app-text/xmlformat/xmlformat-1.04.ebuild
@@ -1,9 +1,13 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
 
+USE_RUBY="ruby20 ruby21 ruby22 ruby23"
+
+inherit ruby-single
+
 DESCRIPTION="Reformat XML documents to your custom style"
 SRC_URI="http://www.kitebird.com/software/${PN}/${P}.tar.gz";
 HOMEPAGE="http://www.kitebird.com/software/xmlformat/";
@@ -12,7 +16,7 @@ SLOT="0"
 LICENSE="xmlformat"
 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
 
-DEPEND="ruby? ( || ( dev-lang/ruby:1.9 dev-lang/ruby:2.0 ) )
+DEPEND="ruby? ( ${RUBY_DEPS} )
        !ruby? ( dev-lang/perl )"
 RDEPEND=${DEPEND}
 IUSE="ruby doc"

Reply via email to