Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 186255 | Differences between
and this patch

Collapse All | Expand All

(-)scribus-1.3.3.12-r1.ebuild (-7 / +18 lines)
Lines 4-10 Link Here
4
4
5
EAPI=1
5
EAPI=1
6
6
7
inherit qt3 eutils cmake-utils
7
inherit cmake-utils eutils qt3 python
8
8
9
DESCRIPTION="Desktop Publishing (DTP) and Layout program for Linux."
9
DESCRIPTION="Desktop Publishing (DTP) and Layout program for Linux."
10
HOMEPAGE="http://www.scribus.net"
10
HOMEPAGE="http://www.scribus.net"
Lines 12-45 Link Here
12
SLOT="0"
12
SLOT="0"
13
LICENSE="GPL-2"
13
LICENSE="GPL-2"
14
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
14
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
15
IUSE="cairo cups"
15
IUSE="cairo libart scripts"
16
16
17
DEPEND="x11-libs/qt:3
17
DEPEND="x11-libs/qt:3
18
	>=media-libs/freetype-2.3
18
	>=media-libs/freetype-2.3
19
	>=media-libs/lcms-1.17
19
	>=media-libs/lcms-1.17
20
	>=media-libs/tiff-3.6
20
	>=media-libs/tiff-3.6
21
	>=media-libs/libart_lgpl-2.3.17
21
	libart? ( >=media-libs/libart_lgpl-2.3.17 )
22
	>=dev-libs/libxml2-2.6.0
22
	>=dev-libs/libxml2-2.6.0
23
	media-libs/jpeg
23
	media-libs/jpeg
24
	media-libs/libpng
24
	media-libs/libpng
25
	dev-python/imaging
25
	scripts? ( dev-python/imaging )
26
	media-libs/fontconfig
26
	media-libs/fontconfig
27
	cups? ( net-print/cups )
27
	net-print/cups
28
	cairo? ( >=x11-libs/cairo-1.4.10 )"
28
	cairo? ( >=x11-libs/cairo-1.4.10 )"
29
29
30
RDEPEND="${DEPEND}
30
RDEPEND="${DEPEND}
31
	virtual/ghostscript"
31
	virtual/ghostscript"
32
32
33
pkg_setup() {
33
pkg_setup() {
34
	if ! built_with_use 'x11-libs/cairo' 'X' 'svg'; then
34
	if use cairo && use libart ; then
35
		einfo "Both cairo and libart flag enabled using libart"
36
	elif ! use cairo && ! use libart ; then
37
		eerror "You you need to choose either cairo or libart"
38
		eerror "use flag to build scribus"
39
		die "scribus needs either cairo or libart"
40
	fi
41
42
	if use cairo && ! built_with_use 'x11-libs/cairo' 'X' 'svg'; then
35
		eerror "You must build cairo with X and svg support"
43
		eerror "You must build cairo with X and svg support"
36
		die "x11-libs/cairo built without X and/or svg"
44
		die "x11-libs/cairo built without X and/or svg"
37
	fi
45
	fi
46
47
	use scripts && python_tkinter_exists
38
}
48
}
39
49
40
src_compile() {
50
src_compile() {
41
	local mycmakeargs="$(cmake-utils_use_want cairo CAIRO) \
51
	local mycmakeargs="$(cmake-utils_use_want cairo CAIRO) \
42
		$(cmake-utils_use_enable cups)"
52
		$(cmake-utils_use_want libart LIBART)"
53
43
	cmake-utils_src_compile || die "compile failed"
54
	cmake-utils_src_compile || die "compile failed"
44
}
55
}
45
56

Return to bug 186255