/[gentoo-x86]/media-plugins/kipi-plugins/kipi-plugins-2.6.0.ebuild
Gentoo

Contents of /media-plugins/kipi-plugins/kipi-plugins-2.6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Aug 23 10:55:09 2012 UTC (2 years ago) by dilfridge
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Remove old

(Portage version: 2.2.0_alpha121/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-plugins/kipi-plugins/kipi-plugins-2.6.0.ebuild,v 1.6 2012/08/23 10:52:55 dilfridge Exp $
4
5 EAPI=4
6
7 OPENGL_REQUIRED="optional"
8
9 KDE_MINIMAL="4.7"
10
11 KDE_LINGUAS="ar az be bg bn br bs ca cs csb cy da de el en_GB eo es et eu fa fi fo fr fy ga
12 gl ha he hi hr hsb hu id is it ja ka kk km ko ku lb lo lt lv mi mk mn ms mt nb nds ne nl nn
13 nso oc pa pl pt pt_BR ro ru rw se sk sl sq sr ss sv ta te tg th tr tt uk uz ven vi wa xh
14 zh_CN zh_HK zh_TW zu"
15
16 KDE_HANDBOOK="optional"
17
18 inherit flag-o-matic kde4-base
19
20 MY_PV=${PV/_/-}
21 MY_P="digikam-${MY_PV}"
22
23 DESCRIPTION="Plugins for the KDE Image Plugin Interface"
24 HOMEPAGE="http://www.digikam.org/"
25 SRC_URI="mirror://sourceforge/digikam/${MY_P}.tar.bz2"
26
27 LICENSE="GPL-2
28 handbook? ( FDL-1.2 )"
29 KEYWORDS="amd64 ~x86"
30 SLOT="4"
31 IUSE="cdr calendar crypt debug expoblending gpssync +imagemagick ipod mediawiki mjpeg panorama redeyes scanner vkontakte"
32
33 DEPEND="
34 $(add_kdebase_dep libkipi)
35 $(add_kdebase_dep libkdcraw)
36 $(add_kdebase_dep libkexiv2)
37 dev-libs/expat
38 dev-libs/libxml2
39 dev-libs/libxslt
40 dev-libs/qjson
41 gpssync? ( media-libs/libkgeomap )
42 media-libs/libpng
43 media-libs/tiff
44 virtual/jpeg
45 calendar? ( $(add_kdebase_dep kdepimlibs) )
46 crypt? ( app-crypt/qca:2 )
47 ipod? (
48 media-libs/libgpod
49 x11-libs/gtk+:2
50 )
51 mediawiki? ( >=media-libs/libmediawiki-2.6.0 )
52 panorama? ( dev-libs/boost )
53 redeyes? ( media-libs/opencv )
54 scanner? (
55 $(add_kdebase_dep libksane)
56 media-gfx/sane-backends
57 )
58 vkontakte? ( net-libs/libkvkontakte )
59 "
60 RDEPEND="${DEPEND}
61 cdr? ( app-cdr/k3b )
62 expoblending? ( media-gfx/hugin )
63 imagemagick? ( || ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] ) )
64 mjpeg? ( media-video/mjpegtools )
65 panorama? (
66 media-gfx/enblend
67 >=media-gfx/hugin-2011.0.0
68 )
69 "
70
71 S=${WORKDIR}/${MY_P}/extra/${PN}
72
73 RESTRICT=test
74 # bug 420203
75
76 PATCHES=(
77 "${FILESDIR}/${PN}-2.6.0_beta3-options.patch"
78 )
79
80 src_prepare() {
81 # prepare the handbook
82 mv "${WORKDIR}/${MY_P}/doc/${PN}" "${WORKDIR}/${MY_P}/extra/${PN}/doc" || die
83 if use handbook; then
84 echo "add_subdirectory( doc )" >> CMakeLists.txt
85 fi
86
87 # prepare the translations
88 mv "${WORKDIR}/${MY_P}/po" po || die
89 find po -name "*.po" -and -not -name "kipiplugin*.po" -exec rm {} +
90 echo "find_package(Msgfmt REQUIRED)" >> CMakeLists.txt || die
91 echo "find_package(Gettext REQUIRED)" >> CMakeLists.txt || die
92 echo "add_subdirectory( po )" >> CMakeLists.txt
93
94 kde4-base_src_prepare
95 }
96
97 src_configure() {
98 # Remove flags -floop-block -floop-interchange
99 # -floop-strip-mine due to bug #305443.
100 filter-flags -floop-block
101 filter-flags -floop-interchange
102 filter-flags -floop-strip-mine
103
104 mycmakeargs+=(
105 $(cmake-utils_use_with ipod GLIB2)
106 $(cmake-utils_use_with ipod GObject)
107 $(cmake-utils_use_with ipod Gdk)
108 $(cmake-utils_use_with ipod Gpod)
109 $(cmake-utils_use_with calendar KdepimLibs)
110 $(cmake-utils_use_with gpssync KGeoMap)
111 $(cmake-utils_use_with mediawiki MEDIAWIKI)
112 $(cmake-utils_use_with redeyes OpenCV)
113 $(cmake-utils_use_with opengl OpenGL)
114 $(cmake-utils_use_with crypt QCA2)
115 $(cmake-utils_use_with scanner Sane)
116 $(cmake-utils_use_enable expoblending)
117 $(cmake-utils_use_enable panorama)
118 )
119
120 kde4-base_src_configure
121 }

  ViewVC Help
Powered by ViewVC 1.1.20