blob: e54eaada863ea13b42f9453c0104d67dc19c32ca (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit kde-functions 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="~x86"
IUSE="examples kde"
DEPEND=""
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 kde; then
set-kdedir
insinto ${KDEDIR}/share/apps/konqueror/servicemenus/
doins bindings/desktop/*.desktop \
|| die "Could not add Konqueror service menus."
fi
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"
}
|