blob: b5bb6ceb4c55c4f761245f86f093bc7c6f170d8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/xmlformat/xmlformat-1.04.ebuild,v 1.4 2013/09/28 09:57:44 graaff Exp $
EAPI=5
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"
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
DEPEND="ruby? ( || ( dev-lang/ruby:1.9 dev-lang/ruby:2.0 ) )
!ruby? ( dev-lang/perl )"
RDEPEND=${DEPEND}
IUSE="ruby doc"
src_install() {
dobin xmlformat.pl
if use ruby
then
dobin xmlformat.rb
dosym xmlformat.rb /usr/bin/xmlformat
else
dosym xmlformat.pl /usr/bin/xmlformat
fi
dodoc BUGS ChangeLog README TODO
if use doc
then
# APIs
insinto /usr/share/doc/${PF}
doins -r docs/*
fi
}
src_test() {
if use ruby
then
./runtest all || die "runtest for ruby failed."
else
./runtest -p all || die "runtest for perl failed."
fi
}
|