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

Package-Manager: portage-2.3.0
This commit is contained in:
Hans de Graaff
2016-12-03 10:33:28 +01:00
parent ec75652641
commit 0e34c2da16

View 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"