app-text/xmlformat: use ruby-single to manage ruby dependency
authorHans de Graaff <graaff@gentoo.org>
Sat, 3 Dec 2016 09:33:28 +0000 (10:33 +0100)
committerHans de Graaff <graaff@gentoo.org>
Sat, 3 Dec 2016 09:33:50 +0000 (10:33 +0100)
Package-Manager: portage-2.3.0

app-text/xmlformat/xmlformat-1.04.ebuild

index d520298690b63d6273ea3d7c81e70aafb1d96822..8962796889afd2899488e5a20db5fc7711cdd34c 100644 (file)
@@ -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"