summaryrefslogtreecommitdiff
blob: 9dbec3b0027f469039854c588e8d0a6374f29776 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="A toolkit that automaticaly converts DocBook to OASIS OpenDocument"
HOMEPAGE="http://open.comsultia.com/docbook2odf/"
SRC_URI="http://open.comsultia.com/${PN}/dwn/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"

RDEPEND="
	>=app-text/docbook2odf-xsl-stylesheets-0.244
	>=dev-lang/perl-5.8
	|| ( >=dev-perl/XML-Sablot-1.01
		 >=dev-libs/libxslt-1.1 )
	>=media-gfx/imagemagick-6.2
	|| ( >=dev-perl/Archive-Zip-1.1
		 >=app-arch/zip-2.3 )
"

src_install() {
	if use examples; then
		docinto examples
		dodoc examples/* || die "Could not install examples"
	fi

	domenu bindings/desktop/*.desktop || die

	doman docs/docbook2odf.1 || die

	dobin utils/docbook2odf \
		|| die "Could not install the executable"
}