blob: 760ed86d6c2776caa8c492c7c97a5141553b9aec (
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
OPENGL_REQUIRED="optional"
KDE_MINIMAL="4.10"
KDE_LINGUAS="ar be bg bs ca cs da de el en_GB eo es et eu fi fr ga gl he hi hr
hu is it ja km ko lt lv ms nb nds nl nn oc pa pl pt pt_BR ro ru se sk sl sq sv
th tr uk zh_CN zh_TW "
KDE_HANDBOOK="optional"
inherit flag-o-matic kde4-base
MY_PV=${PV/_/-}
MY_P="digikam-${MY_PV}"
DESCRIPTION="Plugins for the KDE Image Plugin Interface"
HOMEPAGE="http://www.digikam.org/"
SRC_URI="mirror://kde/stable/digikam/${MY_P}.tar.bz2"
LICENSE="GPL-2
handbook? ( FDL-1.2 )"
KEYWORDS="amd64 x86"
SLOT="4"
IUSE="cdr calendar crypt debug expoblending gpssync +imagemagick ipod mediawiki panorama redeyes scanner upnp videoslideshow vkontakte"
COMMONDEPEND="
kde-apps/libkipi:4
kde-apps/libkdcraw:4=
kde-apps/libkexiv2:4=
dev-libs/expat
dev-libs/kqoauth
dev-libs/libxml2
dev-libs/libxslt
dev-libs/qjson
gpssync? ( >=kde-apps/libkgeomap-4.2.0:4 )
media-libs/libpng:0=
media-libs/tiff
virtual/jpeg
calendar? ( $(add_kdeapps_dep kdepimlibs) )
crypt? ( app-crypt/qca:2[qt4(+)] )
ipod? (
media-libs/libgpod
x11-libs/gtk+:2
)
mediawiki? ( >=net-libs/libmediawiki-3.0.0 )
redeyes? ( >=media-libs/opencv-2.4.9 )
scanner? (
$(add_kdeapps_dep libksane)
media-gfx/sane-backends
)
upnp? ( media-libs/herqq )
videoslideshow? (
media-libs/qt-gstreamer[qt4(+)]
|| ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] )
)
vkontakte? ( net-libs/libkvkontakte )
"
DEPEND="${COMMONDEPEND}
sys-devel/gettext
panorama? (
sys-devel/bison
sys-devel/flex
)
"
RDEPEND="${COMMONDEPEND}
cdr? ( app-cdr/k3b )
expoblending? ( media-gfx/hugin )
imagemagick? ( || ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] ) )
panorama? (
media-gfx/enblend
>=media-gfx/hugin-2011.0.0
)
"
S=${WORKDIR}/${MY_P}/extra/${PN}
RESTRICT=test
# bug 420203
PATCHES=(
"${FILESDIR}/${PN}-3.0.0-options.patch"
)
src_prepare() {
# prepare the handbook
mv "${WORKDIR}/${MY_P}/doc/${PN}" "${WORKDIR}/${MY_P}/extra/${PN}/doc" || die
if use handbook; then
echo "add_subdirectory( doc )" >> CMakeLists.txt
fi
# prepare the translations
mv "${WORKDIR}/${MY_P}/po" po || die
find po -name "*.po" -and -not -name "kipiplugin*.po" -exec rm {} +
echo "find_package(Msgfmt REQUIRED)" >> CMakeLists.txt || die
echo "find_package(Gettext REQUIRED)" >> CMakeLists.txt || die
echo "add_subdirectory( po )" >> CMakeLists.txt
kde4-base_src_prepare
}
src_configure() {
# Remove flags -floop-block -floop-interchange
# -floop-strip-mine due to bug #305443.
filter-flags -floop-block
filter-flags -floop-interchange
filter-flags -floop-strip-mine
mycmakeargs+=(
$(cmake-utils_use_with ipod GLIB2)
$(cmake-utils_use_with ipod GObject)
$(cmake-utils_use_with ipod Gdk)
$(cmake-utils_use_with ipod Gpod)
$(cmake-utils_use_with calendar KdepimLibs)
$(cmake-utils_use_with gpssync KGeoMap)
$(cmake-utils_use_with mediawiki Mediawiki)
$(cmake-utils_use_with redeyes OpenCV)
$(cmake-utils_use_with opengl OpenGL)
$(cmake-utils_use_with crypt QCA2)
$(cmake-utils_use_with scanner KSane)
$(cmake-utils_use_with upnp Hupnp)
$(cmake-utils_use_with videoslideshow QtGStreamer)
$(cmake-utils_use_enable expoblending)
$(cmake-utils_use_enable panorama)
)
kde4-base_src_configure
}
|