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