summaryrefslogtreecommitdiff
blob: f4151733cbdaa293a7f1ed1c8d68beb1ed8c3e17 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/kphotoalbum/kphotoalbum-3.1.1-r1.ebuild,v 1.1 2008/03/26 20:01:48 deathwing00 Exp $

USE_KEG_PACKAGING=1
LANGS="ar be br ca cs cy da de el en_GB es et fi fr ga gl hi is it ja ka lt ms
mt nb nds nl pa pl pt pt_BR ro ru rw sk sr sr@Latn sv ta tr uk vi zh_CN"
KEG_PO_DIR=translations
inherit kde

DESCRIPTION="KDE Photo Album is a tool for indexing, searching, and viewing images."
HOMEPAGE="http://www.kphotoalbum.org/"
SRC_URI="http://www.kphotoalbum.org/download/${P}.tar.bz2"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="${IUSE} arts exif raw"

DEPEND="arts? ( =kde-base/arts-3.5* )
	exif? ( >=media-gfx/exiv2-0.15 )
	raw? ( >=media-libs/libkdcraw-0.1.1 )
	>=media-libs/jpeg-6b-r7
	>=media-libs/libkipi-0.1
	|| ( =kde-base/kdegraphics-kfile-plugins-3.5* =kde-base/kdegraphics-3.5* )"

need-kde 3.5

PATCHES="${FILESDIR}/${P}-gcc-4.3.patch"

pkg_setup() {
	setupok=0
	if use exif && ! built_with_use =x11-libs/qt-3* sqlite ; then
		eerror "To enable KPhotoAlbum to search your images"
		eerror "using EXIF information you also need to have"
		eerror "Qt installed with SQLite support."
		eerror
		eerror "Make sure your Qt is installed with the sqlite USE flag."
		((setupok++))
	fi

	slot_rebuild "media-libs/libkipi" && ((setupok++))

	if (($setupok > 0)); then
		die
	fi
}

src_compile() {
	sed -i -e '/^MimeType/ s/$/;/' "${S}"/src/kphotoalbum-import.desktop || \
		die "sed to fix desktop entry failed."

	local myconf="$(use_enable raw kdcraw) $(use_enable exif exiv2)"
	if ! use exif; then
		elog "NOTICE: You have the exif USE flag disabled. ${CATEGORY}/${PN}"
		elog "will be compiled without EXIF support."
	fi

	kde_src_compile
}