summaryrefslogtreecommitdiff
blob: b1365655ffb3eb4c29f90c7c3bc37e53cbb89800 (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/gnome-scan/gnome-scan-0.7.2.ebuild,v 1.4 2011/09/04 17:31:26 phajdan.jr Exp $

EAPI="3"

inherit autotools gnome2

DESCRIPTION="The Gnome Scan project aim to provide scan features every where in the desktop like print is."
HOMEPAGE="http://www.gnome.org/projects/gnome-scan/index"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="debug doc"

RDEPEND=">=x11-libs/gtk+-2.12:2
	media-gfx/sane-backends
	>=media-libs/gegl-0.1.0
	>=media-libs/babl-0.1.0
	>=media-gfx/gimp-2.3
	gnome-base/gconf:2"
DEPEND="${RDEPEND}
	sys-devel/gettext
	>=dev-util/intltool-0.35
	dev-util/pkgconfig
	doc? ( >=dev-util/gtk-doc-1.7 )"

pkg_setup() {
	DOCS="AUTHORS ChangeLog NEWS README THANKS TODO"
	G2CONF="${G2CONF}
		--disable-static
		$(use_enable debug)"
}

src_prepare() {
	sed -e 's/\(options_LDADD = $(LIBS)\)/\1 -lglib-2.0/g' \
		-i lib/tests/Makefile.* || die
	# Port to babl-0.1.0
	epatch "${FILESDIR}/${P}-babl-0.1.0-port.patch"
	eautoreconf
	gnome2_src_prepare
}

src_install() {
	gnome2_src_install
	find "${D}" -name '*.la' -exec rm -f '{}' + || die
}