From 7218e1b46bceac05841e90472501742d905fb3fc Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 12 Mar 2021 21:55:15 +0000 Subject: gentoo resync : 12.03.2021 --- app-text/xmlformat/xmlformat-1.04.ebuild | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) (limited to 'app-text/xmlformat/xmlformat-1.04.ebuild') diff --git a/app-text/xmlformat/xmlformat-1.04.ebuild b/app-text/xmlformat/xmlformat-1.04.ebuild index 044ee876c257..7e10ca1cc039 100644 --- a/app-text/xmlformat/xmlformat-1.04.ebuild +++ b/app-text/xmlformat/xmlformat-1.04.ebuild @@ -1,30 +1,30 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 USE_RUBY="ruby24 ruby25 ruby26" - 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/" -SLOT="0" LICENSE="xmlformat" +SLOT="0" KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="doc ruby" -DEPEND="ruby? ( ${RUBY_DEPS} ) - !ruby? ( dev-lang/perl )" -RDEPEND=${DEPEND} -IUSE="ruby doc" +DEPEND=" + ruby? ( ${RUBY_DEPS} ) + !ruby? ( dev-lang/perl ) +" +RDEPEND="${DEPEND}" src_install() { dobin xmlformat.pl - if use ruby - then + if use ruby; then dobin xmlformat.rb dosym xmlformat.rb /usr/bin/xmlformat else @@ -33,17 +33,14 @@ src_install() { dodoc BUGS ChangeLog README TODO - if use doc - then + if use doc; then # APIs - insinto /usr/share/doc/${PF} - doins -r docs/* + dodoc -r docs/* fi } src_test() { - if use ruby - then + if use ruby; then ./runtest all || die "runtest for ruby failed." else ./runtest -p all || die "runtest for perl failed." -- cgit v1.2.3