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