blob: 5f2a9f983acfa63eb7711a5bce4e4459095c71e5 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/gthumb/gthumb-3.0.0.ebuild,v 1.1 2012/04/28 18:53:15 pacho Exp $
EAPI="4"
GCONF_DEBUG="yes"
GNOME2_LA_PUNT="yes"
inherit gnome2
DESCRIPTION="Image viewer and browser for Gnome"
HOMEPAGE="https://live.gnome.org/gthumb"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="cdr exif gnome-keyring gstreamer http jpeg raw slideshow svg tiff test"
COMMON_DEPEND=">=dev-libs/glib-2.28.0:2
>=x11-libs/gtk+-3.2.0:3
media-libs/libpng:0
sys-libs/zlib
x11-libs/libSM
cdr? ( >=app-cdr/brasero-3.2.0 )
exif? ( >=media-gfx/exiv2-0.21 )
gnome-keyring? ( >=gnome-base/gnome-keyring-3.2.0 )
gstreamer? (
>=media-libs/gstreamer-0.10
>=media-libs/gst-plugins-base-0.10 )
http? (
>=net-libs/libsoup-2.36:2.4
>=net-libs/libsoup-gnome-2.36:2.4 )
jpeg? ( virtual/jpeg:0 )
slideshow? (
>=media-libs/clutter-1:1.0
>=media-libs/clutter-gtk-1.0.0:1.0 )
svg? ( >=gnome-base/librsvg-2.34.0 )
tiff? ( media-libs/tiff )
raw? ( >=media-libs/libopenraw-0.0.8 )
!raw? ( media-gfx/dcraw )"
RDEPEND="${COMMON_DEPEND}
>=gnome-base/gsettings-desktop-schemas-0.1.4"
DEPEND="${COMMON_DEPEND}
dev-util/pkgconfig
app-text/scrollkeeper
>=dev-util/intltool-0.35
app-text/gnome-doc-utils
sys-devel/bison
sys-devel/flex
test? ( ~app-text/docbook-xml-dtd-4.1.2 )"
# eautoreconf needs:
# gnome-base/gnome-common
pkg_setup() {
# Upstream says in configure help that libchamplain support crashes
# frequently
G2CONF="${G2CONF}
--disable-static
--disable-libchamplain
$(use_enable cdr libbrasero)
$(use_enable exif exiv2)
$(use_enable gstreamer)
$(use_enable gnome-keyring)
$(use_enable http libsoup)
$(use_enable jpeg)
$(use_enable raw libopenraw)
$(use_enable slideshow clutter)
$(use_enable svg librsvg)
$(use_enable test test-suite)
$(use_enable tiff)"
DOCS="AUTHORS ChangeLog NEWS README"
}
src_prepare() {
gnome2_src_prepare
# Remove unwanted CFLAGS added with USE=debug
sed -e 's/CFLAGS="$CFLAGS -g -O0 -DDEBUG"//' -i configure.ac -i configure || die
# GSeal doesn't get disabled with --disable-gseal
# sed -e 's/-DGSEAL_ENABLE//g' -i configure.ac -i configure || die
}
|