blob: 67cf3ad312fab26f3aef637d6263f54f108d46f2 (
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
47
48
49
50
51
52
53
54
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/libspectre/libspectre-0.2.4.ebuild,v 1.2 2010/05/22 16:12:15 armin76 Exp $
inherit autotools eutils
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 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~x64-solaris"
SLOT="0"
IUSE="debug doc test"
RDEPEND=">=app-text/ghostscript-gpl-8.62"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )
test? ( x11-libs/cairo
dev-util/pkgconfig )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-0.2.0-interix.patch
eautoreconf # need new libtool for interix
}
src_compile() {
econf \
--disable-dependency-tracking \
$(use_enable debug asserts) \
$(use_enable debug checks) \
$(use_enable test) \
|| 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
}
|