/[gentoo-x86]/media-gfx/digikam/digikam-2.0.0.ebuild
Gentoo

Contents of /media-gfx/digikam/digikam-2.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jul 31 20:21:12 2011 UTC (9 years, 4 months ago) by dilfridge
Branch: MAIN
Changes since 1.1: +8 -1 lines
Fix building of tests, but restrict them anyway, see bug 366505

(Portage version: 2.1.10.8/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/digikam/digikam-2.0.0.ebuild,v 1.1 2011/07/29 19:28:45 dilfridge Exp $
4
5 EAPI=4
6
7 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
8 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
9 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
10 zh_CN zh_HK zh_TW zu"
11
12 KDE_HANDBOOK="optional"
13 CMAKE_MIN_VERSION="2.8"
14 KDE_MINIMAL="4.7"
15
16 inherit kde4-base
17
18 MY_P="${PN}-${PV/_/-}"
19
20 DESCRIPTION="Digital photo management application for KDE"
21 HOMEPAGE="http://www.digikam.org/"
22 [[ ${PV} != *9999* ]] && SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
23
24 LICENSE="GPL-2
25 handbook? ( FDL-1.2 )"
26 KEYWORDS="~amd64 ~x86"
27 SLOT="4"
28 IUSE="addressbook debug doc gphoto2 mysql semantic-desktop themedesigner +thumbnails video"
29
30 CDEPEND="
31 $(add_kdebase_dep kdelibs semantic-desktop)
32 $(add_kdebase_dep libkdcraw)
33 $(add_kdebase_dep libkexiv2)
34 $(add_kdebase_dep libkipi)
35 $(add_kdebase_dep marble plasma)
36 $(add_kdebase_dep solid)
37 media-libs/jasper
38 media-libs/lcms:0
39 >=media-libs/lensfun-0.2.5
40 >=media-libs/libkface-${PV}
41 >=media-libs/libkgeomap-${PV}
42 media-libs/liblqr
43 >=media-libs/libpgf-6.11.28
44 media-libs/libpng
45 media-libs/tiff
46 virtual/jpeg
47 x11-libs/qt-gui[qt3support]
48 || ( >=sci-libs/clapack-3.2.1-r6 sci-libs/lapack-atlas )
49 || ( x11-libs/qt-sql[mysql] x11-libs/qt-sql[sqlite] )
50 addressbook? ( $(add_kdebase_dep kdepimlibs) )
51 gphoto2? ( media-libs/libgphoto2 )
52 mysql? ( virtual/mysql )
53 "
54 RDEPEND="${CDEPEND}
55 $(add_kdebase_dep kreadconfig)
56 media-plugins/kipi-plugins
57 video? (
58 || (
59 $(add_kdebase_dep mplayerthumbs)
60 $(add_kdebase_dep ffmpegthumbs)
61 )
62 )
63 "
64 DEPEND="${CDEPEND}
65 sys-devel/gettext
66 doc? ( app-doc/doxygen )
67 "
68
69 S="${WORKDIR}/${MY_P}/core"
70
71 PATCHES=(
72 "${FILESDIR}/${P}-tests-1.patch"
73 )
74
75 RESTRICT=test
76 # bug 366505
77
78 src_prepare() {
79 # just to make absolutely sure
80 rm -rf "${WORKDIR}/${MY_P}/extra" || die
81
82 # prepare the handbook
83 mv "${WORKDIR}/${MY_P}/doc/${PN}" doc || die
84 echo "add_subdirectory( digikam )" > doc/CMakeLists.txt
85 echo "add_subdirectory( showfoto )" >> doc/CMakeLists.txt
86
87 # prepare the translations
88 mv "${WORKDIR}/${MY_P}/po" po || die
89 find po -name "kipiplugin_*.po" -exec rm {} +
90
91 echo "add_subdirectory( po )" >> CMakeLists.txt
92
93 kde4-base_src_prepare
94
95 if use handbook; then
96 echo "add_subdirectory( doc )" >> CMakeLists.txt
97 fi
98 }
99
100 src_configure() {
101 local backend
102
103 use semantic-desktop && backend="Nepomuk" || backend="None"
104 # LQR = only allows to choose between bundled/external
105 local mycmakeargs=(
106 -DFORCED_UNBUNDLE=ON
107 -DWITH_LQR=ON
108 -DWITH_LENSFUN=ON
109 -DGWENVIEW_SEMANTICINFO_BACKEND=${backend}
110 $(cmake-utils_use_with addressbook KdepimLibs)
111 -DWITH_MarbleWidget=ON
112 $(cmake-utils_use_enable gphoto2 GPHOTO2)
113 $(cmake-utils_use_with gphoto2)
114 $(cmake-utils_use_with semantic-desktop Soprano)
115 $(cmake-utils_use_enable themedesigner)
116 $(cmake-utils_use_enable thumbnails THUMBS_DB)
117 $(cmake-utils_use_enable mysql INTERNALMYSQL)
118 $(cmake-utils_use_enable debug DEBUG_MESSAGES)
119 )
120
121 kde4-base_src_configure
122 }
123
124 src_compile() {
125 local mytargets="all"
126 use doc && mytargets+=" doc"
127
128 kde4-base_src_compile ${mytargets}
129 }
130
131 src_install() {
132 kde4-base_src_install
133
134 if use doc; then
135 # install the api documentation
136 insinto /usr/share/doc/${PF}/html
137 doins -r ${CMAKE_BUILD_DIR}/api/html/*
138 fi
139 }
140
141 pkg_postinst() {
142 kde4-base_pkg_postinst
143
144 if use doc; then
145 elog "The digikam api documentation has been installed at /usr/share/doc/${PF}/html"
146 fi
147 }

  ViewVC Help
Powered by ViewVC 1.1.20