2012-03-12 14:17:30 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-05-04 18:38:41 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/app-text/libspectre/libspectre-0.2.6.ebuild,v 1.14 2012/05/04 03:33:12 jdhore Exp $
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2012-03-12 14:17:30 +04:00
|
|
|
EAPI=4
|
2012-02-06 16:39:49 +04:00
|
|
|
inherit autotools eutils
|
|
|
|
|
2012-03-12 14:17:30 +04:00
|
|
|
DESCRIPTION="A library for rendering Postscript documents"
|
|
|
|
HOMEPAGE="http://www.freedesktop.org/wiki/Software/libspectre"
|
2012-02-06 16:39:49 +04:00
|
|
|
SRC_URI="http://libspectre.freedesktop.org/releases/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
2012-03-12 14:17:30 +04:00
|
|
|
KEYWORDS="alpha amd64 arm ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~x64-solaris"
|
2012-02-06 16:39:49 +04:00
|
|
|
IUSE="debug doc static-libs"
|
|
|
|
|
|
|
|
RDEPEND=">=app-text/ghostscript-gpl-8.62"
|
|
|
|
DEPEND="${RDEPEND}
|
2012-05-04 18:38:41 +04:00
|
|
|
virtual/pkgconfig
|
2012-02-06 16:39:49 +04:00
|
|
|
doc? ( app-doc/doxygen )"
|
|
|
|
|
|
|
|
# does not actually test anything, see bug 362557
|
|
|
|
RESTRICT="test"
|
|
|
|
|
2012-03-12 14:17:30 +04:00
|
|
|
DOCS="NEWS README TODO"
|
|
|
|
|
2012-02-06 16:39:49 +04:00
|
|
|
src_prepare() {
|
|
|
|
epatch "${FILESDIR}"/${PN}-0.2.0-interix.patch
|
|
|
|
eautoreconf # need new libtool for interix
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
econf \
|
|
|
|
$(use_enable debug asserts) \
|
|
|
|
$(use_enable debug checks) \
|
|
|
|
$(use_enable static-libs static) \
|
|
|
|
--disable-test
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2012-03-12 14:17:30 +04:00
|
|
|
emake
|
2012-02-06 16:39:49 +04:00
|
|
|
if use doc; then
|
2012-03-12 14:17:30 +04:00
|
|
|
doxygen || die
|
2012-02-06 16:39:49 +04:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2012-03-12 14:17:30 +04:00
|
|
|
default
|
|
|
|
use doc && dohtml -r doc/html/*
|
|
|
|
find "${ED}" -name '*.la' -exec rm -f {} +
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|