1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="A fast, free, high-quality, multi-platform XSL formatter"
8 HOMEPAGE="http://xmlroff.org/"
9 SRC_URI="http://xmlroff.org/download/${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="cairo debug doc svg truetype"
16 # at least ciaro or gnome-print is required (as backend)
18 RDEPEND="x11-libs/gtk+
23 cairo? ( x11-libs/cairo )
24 !cairo? ( gnome-base/libgnomeprint )
25 svg? ( gnome-base/librsvg )
26 truetype? ( media-libs/freetype )"
33 $(use_enable !cairo gp) \
34 $(use_enable debug libfo-debug)
36 emake || die "emake failed"
40 local docdir="/usr/share/doc/${PF}"
42 emake DESTDIR="${D}" HTML_DIR="${docdir}" install || die "emake install failed"
45 mv "${D}/${docdir}/${PN}" "${D}/${docdir}/html" || die
47 rm -r "${D}/${docdir}/${PN}" || die
50 dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"