Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/darktable/
Date: Fri, 28 Jan 2022 14:45:15
Message-Id: 1643381102.e41cfc2b86b2d7b449da92bc6aea0faeec561dbc.marecki@gentoo
1 commit: e41cfc2b86b2d7b449da92bc6aea0faeec561dbc
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 28 14:43:54 2022 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 28 14:45:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e41cfc2b
7
8 media-gfx/darktable: drop 3.6.1-r3
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 media-gfx/darktable/darktable-3.6.1-r3.ebuild | 176 --------------------------
13 1 file changed, 176 deletions(-)
14
15 diff --git a/media-gfx/darktable/darktable-3.6.1-r3.ebuild b/media-gfx/darktable/darktable-3.6.1-r3.ebuild
16 deleted file mode 100644
17 index 12c0099cc5d1..000000000000
18 --- a/media-gfx/darktable/darktable-3.6.1-r3.ebuild
19 +++ /dev/null
20 @@ -1,176 +0,0 @@
21 -# Copyright 1999-2021 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=8
25 -
26 -LUA_COMPAT=( lua5-3 )
27 -
28 -inherit cmake flag-o-matic lua-single toolchain-funcs xdg
29 -
30 -DESCRIPTION="A virtual lighttable and darkroom for photographers"
31 -HOMEPAGE="https://www.darktable.org/"
32 -LICENSE="GPL-3 CC-BY-3.0"
33 -SLOT="0"
34 -
35 -if [[ ${PV} == *9999 ]]; then
36 - inherit git-r3
37 - EGIT_REPO_URI="https://github.com/darktable-org/${PN}.git"
38 -
39 - LANGS=" af ca cs da de el es fi fr gl he hu it ja nb nl pl pt-BR pt-PT ro ru sk sl sq sv th uk zh-CN zh-TW"
40 -else
41 - DOC_PV="3.6"
42 - MY_PV="${PV/_/}"
43 - MY_P="${P/_/.}"
44 -
45 - SRC_URI="https://github.com/darktable-org/${PN}/releases/download/release-${MY_PV}/${MY_P}.tar.xz
46 - doc? ( https://docs.darktable.org/usermanual/${DOC_PV}/en/${PN}_user_manual.pdf -> ${PN}-usermanual-${DOC_PV}.pdf )"
47 -
48 - KEYWORDS="~amd64 ~arm64 -x86"
49 - LANGS=" af de eo es fr he hu it nl pt-BR ru sl uk"
50 -fi
51 -
52 -IUSE="avif colord cpu_flags_x86_avx cpu_flags_x86_sse3 cups doc flickr geolocation gmic gnome-keyring gphoto2 graphicsmagick jpeg2k kwallet
53 - lto lua nls opencl openmp openexr test tools webp
54 - ${LANGS// / l10n_}"
55 -
56 -REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )"
57 -
58 -RESTRICT="!test? ( test )"
59 -
60 -BDEPEND="dev-util/intltool
61 - virtual/pkgconfig
62 - nls? ( sys-devel/gettext )
63 - test? ( >=dev-python/jsonschema-3.2.0 )"
64 -DEPEND="dev-db/sqlite:3
65 - dev-libs/json-glib
66 - dev-libs/libxml2:2
67 - >=dev-libs/pugixml-1.8:0=
68 - gnome-base/librsvg:2
69 - >=media-gfx/exiv2-0.25-r2:0=[xmp]
70 - media-libs/lcms:2
71 - >=media-libs/lensfun-0.2.3:0=
72 - media-libs/libpng:0=
73 - media-libs/tiff:0
74 - net-libs/libsoup:2.4
75 - net-misc/curl
76 - sys-libs/zlib:=
77 - virtual/jpeg:0
78 - x11-libs/cairo
79 - >=x11-libs/gtk+-3.22:3
80 - x11-libs/pango
81 - avif? ( >=media-libs/libavif-0.8.2:= )
82 - colord? ( x11-libs/colord-gtk:0= )
83 - cups? ( net-print/cups )
84 - flickr? ( media-libs/flickcurl )
85 - geolocation? ( >=sci-geosciences/osm-gps-map-1.1.0 )
86 - gmic? ( media-gfx/gmic )
87 - gnome-keyring? ( >=app-crypt/libsecret-0.18 )
88 - gphoto2? ( media-libs/libgphoto2:= )
89 - graphicsmagick? ( media-gfx/graphicsmagick )
90 - jpeg2k? ( media-libs/openjpeg:2= )
91 - lua? ( ${LUA_DEPS} )
92 - opencl? ( virtual/opencl )
93 - openexr? ( media-libs/openexr:= )
94 - webp? ( media-libs/libwebp:0= )"
95 -RDEPEND="${DEPEND}
96 - kwallet? ( >=kde-frameworks/kwallet-5.34.0-r1 )"
97 -
98 -PATCHES=(
99 - "${FILESDIR}"/${PN}-3.0.0_find-opencl-header.patch
100 - "${FILESDIR}"/${PN}-3.0.2_cmake-march-autodetection.patch
101 - "${FILESDIR}"/${PN}-3.4.0_jsonschema-automagic.patch
102 - "${FILESDIR}"/${PN}-3.4.1_libxcf-cmake.patch
103 - "${FILESDIR}"/${PN}-3.6.1_openexr.patch
104 -)
105 -
106 -S="${WORKDIR}/${P/_/~}"
107 -
108 -pkg_pretend() {
109 - if [[ ${MERGE_TYPE} != binary ]]; then
110 - # Bug #695658
111 - if tc-is-gcc; then
112 - test-flags-CC -floop-block &> /dev/null || \
113 - die "Please switch to a gcc version built with USE=graphite"
114 - fi
115 -
116 - use openmp && tc-check-openmp
117 - fi
118 -}
119 -
120 -pkg_setup() {
121 - use lua && lua-single_pkg_setup
122 -}
123 -
124 -src_prepare() {
125 - if use cpu_flags_x86_avx; then
126 - append-flags -mavx
127 - # Bug #828992. clang does not support this flag so users building darktable
128 - # with it will have to live with this bug (assuming they have suffered
129 - # from it in the first place, as it might be specific to gcc-11) - this
130 - # has already been fixed upstream and it looks like we won't have to wait
131 - # much longer for 3.8.0.
132 - tc-is-gcc && append-flags -mprefer-avx128
133 - fi
134 - use cpu_flags_x86_sse3 && append-flags -msse3
135 -
136 - sed -i -e 's:/appdata:/metainfo:g' data/CMakeLists.txt || die
137 -
138 - cmake_src_prepare
139 -}
140 -
141 -src_configure() {
142 - local mycmakeargs=(
143 - -DBUILD_CURVE_TOOLS=$(usex tools)
144 - -DBUILD_NOISE_TOOLS=$(usex tools)
145 - -DBUILD_PRINT=$(usex cups)
146 - -DCUSTOM_CFLAGS=ON
147 - -DDONT_USE_INTERNAL_LUA=ON
148 - -DRAWSPEED_ENABLE_LTO=$(usex lto)
149 - -DTESTBUILD_OPENCL_PROGRAMS=OFF
150 - -DUSE_AVIF=$(usex avif)
151 - -DUSE_CAMERA_SUPPORT=$(usex gphoto2)
152 - -DUSE_COLORD=$(usex colord)
153 - -DUSE_FLICKR=$(usex flickr)
154 - -DUSE_GMIC=$(usex gmic)
155 - -DUSE_GRAPHICSMAGICK=$(usex graphicsmagick)
156 - -DUSE_KWALLET=$(usex kwallet)
157 - -DUSE_LIBSECRET=$(usex gnome-keyring)
158 - -DUSE_LUA=$(usex lua)
159 - -DUSE_MAP=$(usex geolocation)
160 - -DUSE_NLS=$(usex nls)
161 - -DUSE_OPENCL=$(usex opencl)
162 - -DUSE_OPENEXR=$(usex openexr)
163 - -DUSE_OPENJPEG=$(usex jpeg2k)
164 - -DUSE_OPENMP=$(usex openmp)
165 - -DUSE_WEBP=$(usex webp)
166 - -DWANT_JSON_VALIDATION=$(usex test)
167 - )
168 - CMAKE_BUILD_TYPE="RELWITHDEBINFO"
169 - cmake_src_configure
170 -}
171 -
172 -src_install() {
173 - cmake_src_install
174 - # This USE flag is masked for -9999
175 - use doc && dodoc "${DISTDIR}"/${PN}-usermanual-${DOC_PV}.pdf
176 -
177 - if use nls; then
178 - for lang in ${LANGS} ; do
179 - if ! use l10n_${lang}; then
180 - rm -r "${ED}"/usr/share/locale/${lang/-/_} || die
181 - fi
182 - done
183 - fi
184 -}
185 -
186 -pkg_postinst() {
187 - xdg_pkg_postinst
188 -
189 - elog
190 - elog "When updating a major version,"
191 - elog "please bear in mind that your edits will be preserved during this process,"
192 - elog "but it will not be possible to downgrade any more."
193 - elog
194 - ewarn "It will not be possible to downgrade!"
195 - ewarn
196 -}