diff --git a/app-text/libspectre/libspectre-0.2.0.ebuild b/app-text/libspectre/libspectre-0.2.0.ebuild new file mode 100644 --- /dev/null +++ b/app-text/libspectre/libspectre-0.2.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/libspectre/libspectre-0.2.0.ebuild,v 1.7 2008/05/17 19:00:58 aballier Exp $ + +inherit libtool + +DESCRIPTION="Library to render Postscript documents." +HOMEPAGE="http://libspectre.freedesktop.org/wiki/" +SRC_URI="http://libspectre.freedesktop.org/releases/${P}.tar.gz" + +LICENSE="GPL-2" + +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86 ~x86-fbsd" +SLOT="0" +IUSE="debug doc test" + +RDEPEND=">=app-text/ghostscript-gpl-8.61-r1" +DEPEND="doc? ( app-doc/doxygen ) + test? ( x11-libs/cairo + dev-util/pkgconfig )" + +src_unpack() { + unpack ${A} + elibtoolize +} + +src_compile() { + econf \ + --disable-dependency-tracking \ + $(use_enable debug asserts) \ + $(use_enable debug checks) \ + $(use_enable test testing) \ + || die "econf failed" + + emake || die "emake failed" + + if use doc; then + doxygen || die "doxygen failed" + fi +} + +src_install() { + emake DESTDIR="${D}" install + + dodoc NEWS README TODO || die "installing docs failed" + if use doc; then + dohtml -r "${S}"/doc/html/* + fi +}