1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils autotools
9 DESCRIPTION="A fast, free, high-quality, multi-platform XSL formatter"
10 HOMEPAGE="http://xmlroff.org/"
11 SRC_URI="http://xmlroff.org/download/${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="cairo debug doc svg truetype"
18 # at least ciaro or gnome-print is required (as backend)
20 RDEPEND="x11-libs/gtk+
25 cairo? ( x11-libs/cairo[svg?] )
26 !cairo? ( gnome-base/libgnomeprint )
27 svg? ( gnome-base/librsvg )
28 truetype? ( media-libs/freetype )"
33 epatch "${FILESDIR}/automagic.patch"
41 use debug && myconf="--enable-libfo-debug"
45 $(use_enable !cairo gp) \
47 $(use_with truetype freetype) \
52 local docdir="/usr/share/doc/${PF}"
54 emake DESTDIR="${D}" HTML_DIR="${docdir}" install || die "emake install failed"
57 mv "${D}/${docdir}/${PN}" "${D}/${docdir}/html" || die
59 rm -r "${D}/${docdir}/${PN}" || die
62 dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"