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