Scribus: Optionally depend on qt-webkit
[gentoo-overlay-ibormuth.git] / app-office / scribus / scribus-1.3.5_rc3.ebuild
Commit [+]AuthorDateLineData
78b098b1
IB
Ingo Bormuth2009-06-04 22:18:30 +02001# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: $
4
5EAPI=1
6
7inherit qt4 eutils
8
9MY_P="${P/_/.}"
10
11DESCRIPTION="Desktop Publishing (DTP) and Layout program for Linux."
12HOMEPAGE="http://www.scribus.net"
13SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
14SLOT="0"
15LICENSE="GPL-2"
16KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
9e03849a Ingo Bormuth2009-08-12 21:12:27 +020017IUSE="doc latex gnuplot spell webkit"
78b098b1
IB
Ingo Bormuth2009-06-04 22:18:30 +020018
19DEPEND="dev-util/cmake
ff85530d Ingo Bormuth2009-08-12 20:49:03 +020020 >=x11-libs/qt-gui-4.4
9e03849a Ingo Bormuth2009-08-12 21:12:27 +020021 webkit? ( x11-libs/qt-webkit )
78b098b1
IB
Ingo Bormuth2009-06-04 22:18:30 +020022 media-libs/freetype
23 x11-libs/cairo
24 media-libs/tiff
25 >=media-libs/lcms-1.15
26 media-libs/jpeg
27 media-libs/libpng
28 dev-libs/libxml2
29 media-libs/libart_lgpl
30 spell? ( app-text/aspell )
31 latex? ( virtual/latex-base )
32 gnuplot? ( sci-visualization/gnuplot )"
33
34RDEPEND="${DEPEND}
35 virtual/ghostscript"
36
37S="${WORKDIR}/${MY_P}"
38
39pkg_setup() {
40 if ! built_with_use 'x11-libs/cairo' 'X' 'svg'; then
41 eerror "You must build cairo with X and svg support"
42 die "x11-libs/cairo built without X and/or svg"
43 fi
44}
45
d5dd4895
IB
Ingo Bormuth2009-06-06 19:25:57 +020046src_compile() {
47 # Install into /opt/scribus-svn to avoid slot collision:
48 cmake . || die "cmake failed"
49 emake || die "make failed"
50
51}
52
78b098b1
IB
Ingo Bormuth2009-06-04 22:18:30 +020053src_install() {
54 emake DESTDIR="${D}" install || die "install failed"
55
56 dodoc AUTHORS ChangeLog README TODO
57
58 domenu scribus.desktop
59 doicon scribus/icons/scribusicon.png
60}