summaryrefslogtreecommitdiff
blob: 75bbce041b698c1c0ed8b53a8c40fbde3a2ace68 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/digikam/digikam-0.10.0_rc2.ebuild,v 1.1 2009/02/16 14:46:00 scarabeus Exp $

EAPI="2"

KDE_MINIMAL="4.2"
KDE_LINGUAS="ar be bg ca cs da de el es et eu fa fi fr ga gl he hi is it ja km
ko lt lv lb nds ne nl nn pa pl pt pt_BR ro ru se sk sv th tr uk vi zh_CN zh_TW"
inherit kde4-base

DESCRIPTION="A digital photo management application for KDE."
HOMEPAGE="http://www.digikam.org/"
SRC_URI="mirror://sourceforge/${PN}/${P/_/-}.tar.bz2"

LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
SLOT="0.10"
IUSE="addressbook debug geolocation +gphoto2"

DEPEND="
	!kdeprefix? ( !media-gfx/digikam:0 )
	dev-db/sqlite:3
	>=kde-base/libkdcraw-${KDE_MINIMAL}[kdeprefix=]
	>=kde-base/libkexiv2-${KDE_MINIMAL}[kdeprefix=]
	>=kde-base/libkipi-${KDE_MINIMAL}[kdeprefix=]
	>=kde-base/solid-${KDE_MINIMAL}[kdeprefix=]
	>=media-libs/jasper-1.701.0
	media-libs/jpeg
	>=media-libs/lcms-1.17
	>=media-libs/libpng-1.2.26-r1
	>=media-libs/tiff-3.8.2-r3
	sys-devel/gettext
	x11-libs/qt-core[qt3support]
	x11-libs/qt-sql[sqlite]
	addressbook? ( >=kde-base/kdepimlibs-${KDE_MINIMAL}[kdeprefix=] )
	geolocation? ( >=kde-base/marble-${KDE_MINIMAL}[kde,kdeprefix=] )
	gphoto2? ( >=media-libs/libgphoto2-2.4.1-r1 )
"
#liblensfun when added should be also optional dep.
RDEPEND="${DEPEND}"

S="${WORKDIR}/${P/_/-}"

src_prepare() {
	# Fix files collision, use icon from kdebase-data rather that digikam ones
	# and i hate when upstream forces us to do this :(
	rm -rf data/icons/oxygen/{16x16,22x22,32x32,64x64,48x48,128x128,scalable\
}/{actions/{view-object-histogram-linear,transform-crop-and-resize,\
view-object-histogram-logarithmic},apps/digikam}.{svgz,png}

	kde4-base_src_prepare
}

src_configure() {
	mycmakeargs="${mycmakeargs}
		$(cmake-utils_use_enable gphoto2 GPHOTO2)
		$(cmake-utils_use_with addressbook KdepimLibs)
		$(cmake-utils_use_with geolocation MarbleWidget)"
	# $(cmake-utils_use_with lens LensFun)

	kde4-base_src_configure
}