Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/darktable/
Date: Fri, 15 Feb 2019 23:07:56
Message-Id: 1550272052.e7dfedbdd050275ac4b7bef20cf76b244e142778.asturm@gentoo
1 commit: e7dfedbdd050275ac4b7bef20cf76b244e142778
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 15 20:54:52 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 15 23:07:32 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7dfedbd
7
8 media-gfx/darktable: Switch from gnome2-utils to xdg, EAPI-7 bump
9
10 Package-Manager: Portage-2.3.60, Repoman-2.3.12
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 media-gfx/darktable/darktable-2.6.0.ebuild | 40 ++++++++++++----------------
14 media-gfx/darktable/darktable-9999.ebuild | 42 ++++++++++++------------------
15 2 files changed, 33 insertions(+), 49 deletions(-)
16
17 diff --git a/media-gfx/darktable/darktable-2.6.0.ebuild b/media-gfx/darktable/darktable-2.6.0.ebuild
18 index 73fbe302925..15acacacaad 100644
19 --- a/media-gfx/darktable/darktable-2.6.0.ebuild
20 +++ b/media-gfx/darktable/darktable-2.6.0.ebuild
21 @@ -1,9 +1,9 @@
22 # Copyright 1999-2019 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI=6
26 +EAPI=7
27
28 -inherit cmake-utils flag-o-matic gnome2-utils pax-utils toolchain-funcs xdg-utils
29 +inherit cmake-utils flag-o-matic pax-utils toolchain-funcs xdg
30
31 DOC_PV="2.6.0"
32 MY_PV="${PV/_/}"
33 @@ -26,7 +26,12 @@ ${LANGS// / l10n_}"
34 # sse3 support is required to build darktable
35 REQUIRED_USE="cpu_flags_x86_sse3"
36
37 -CDEPEND="
38 +BDEPEND="
39 + dev-util/intltool
40 + virtual/pkgconfig
41 + nls? ( sys-devel/gettext )
42 +"
43 +COMMON_DEPEND="
44 dev-db/sqlite:3
45 dev-libs/json-glib
46 dev-libs/libxml2:2
47 @@ -54,17 +59,17 @@ CDEPEND="
48 jpeg2k? ( media-libs/openjpeg:2= )
49 opencl? ( virtual/opencl )
50 openexr? ( media-libs/openexr:0= )
51 - webp? ( media-libs/libwebp:0= )"
52 -RDEPEND="${CDEPEND}
53 - kwallet? ( >=kde-frameworks/kwallet-5.34.0-r1 )"
54 -DEPEND="${CDEPEND}
55 - dev-util/intltool
56 - virtual/pkgconfig
57 - nls? ( sys-devel/gettext )
58 + webp? ( media-libs/libwebp:0= )
59 +"
60 +DEPEND="${COMMON_DEPEND}
61 opencl? (
62 >=sys-devel/clang-4
63 >=sys-devel/llvm-4
64 - )"
65 + )
66 +"
67 +RDEPEND="${COMMON_DEPEND}
68 + kwallet? ( >=kde-frameworks/kwallet-5.34.0-r1 )
69 +"
70
71 PATCHES=( "${FILESDIR}"/"${PN}"-find-opencl-header.patch )
72
73 @@ -85,7 +90,6 @@ src_prepare() {
74 src_configure() {
75 local mycmakeargs=(
76 -DBUILD_PRINT=$(usex cups)
77 - -DCMAKE_INSTALL_DOCDIR="/usr/share/doc/${PF}"
78 -DCUSTOM_CFLAGS=ON
79 -DUSE_CAMERA_SUPPORT=$(usex gphoto2)
80 -DUSE_COLORD=$(usex colord)
81 @@ -124,13 +128,8 @@ src_install() {
82 fi
83 }
84
85 -pkg_preinst() {
86 - gnome2_icon_savelist
87 -}
88 -
89 pkg_postinst() {
90 - gnome2_icon_cache_update
91 - xdg_desktop_database_update
92 + xdg_pkg_postinst
93
94 elog "when updating from the currently stable 1.6 series,"
95 elog "please bear in mind that your edits will be preserved during this process,"
96 @@ -138,8 +137,3 @@ pkg_postinst() {
97 echo
98 ewarn "It will not be possible to downgrade!"
99 }
100 -
101 -pkg_postrm() {
102 - gnome2_icon_cache_update
103 - xdg_desktop_database_update
104 -}
105
106 diff --git a/media-gfx/darktable/darktable-9999.ebuild b/media-gfx/darktable/darktable-9999.ebuild
107 index f0209f39d59..60e7af7a717 100644
108 --- a/media-gfx/darktable/darktable-9999.ebuild
109 +++ b/media-gfx/darktable/darktable-9999.ebuild
110 @@ -1,9 +1,9 @@
111 # Copyright 1999-2019 Gentoo Authors
112 # Distributed under the terms of the GNU General Public License v2
113
114 -EAPI=6
115 +EAPI=7
116
117 -inherit cmake-utils flag-o-matic git-r3 gnome2-utils pax-utils toolchain-funcs versionator xdg-utils
118 +inherit cmake-utils flag-o-matic git-r3 pax-utils toolchain-funcs xdg
119
120 EGIT_REPO_URI="https://github.com/darktable-org/${PN}.git"
121
122 @@ -22,7 +22,12 @@ ${LANGS// / l10n_}"
123 # sse3 support is required to build darktable
124 REQUIRED_USE="cpu_flags_x86_sse3"
125
126 -CDEPEND="
127 +BDEPEND="
128 + dev-util/intltool
129 + virtual/pkgconfig
130 + nls? ( sys-devel/gettext )
131 +"
132 +COMMON_DEPEND="
133 dev-db/sqlite:3
134 dev-libs/json-glib
135 dev-libs/libxml2:2
136 @@ -50,17 +55,17 @@ CDEPEND="
137 jpeg2k? ( media-libs/openjpeg:2= )
138 opencl? ( virtual/opencl )
139 openexr? ( media-libs/openexr:0= )
140 - webp? ( media-libs/libwebp:0= )"
141 -RDEPEND="${CDEPEND}
142 - kwallet? ( >=kde-frameworks/kwallet-5.34.0-r1 )"
143 -DEPEND="${CDEPEND}
144 - dev-util/intltool
145 - virtual/pkgconfig
146 - nls? ( sys-devel/gettext )
147 + webp? ( media-libs/libwebp:0= )
148 +"
149 +DEPEND="${COMMON_DEPEND}
150 opencl? (
151 >=sys-devel/clang-4
152 >=sys-devel/llvm-4
153 - )"
154 + )
155 +"
156 +RDEPEND="${COMMON_DEPEND}
157 + kwallet? ( >=kde-frameworks/kwallet-5.34.0-r1 )
158 +"
159
160 pkg_pretend() {
161 if use openmp ; then
162 @@ -77,7 +82,6 @@ src_prepare() {
163 src_configure() {
164 local mycmakeargs=(
165 -DBUILD_PRINT=$(usex cups)
166 - -DCMAKE_INSTALL_DOCDIR="/usr/share/doc/${PF}"
167 -DCUSTOM_CFLAGS=ON
168 -DUSE_CAMERA_SUPPORT=$(usex gphoto2)
169 -DUSE_COLORD=$(usex colord)
170 @@ -115,17 +119,3 @@ src_install() {
171 eqawarn "please open a bug."
172 fi
173 }
174 -
175 -pkg_preinst() {
176 - gnome2_icon_savelist
177 -}
178 -
179 -pkg_postinst() {
180 - gnome2_icon_cache_update
181 - xdg_desktop_database_update
182 -}
183 -
184 -pkg_postrm() {
185 - gnome2_icon_cache_update
186 - xdg_desktop_database_update
187 -}