1 |
commit: dfe1698f7bc522bad72422db6ea40c89048e2f3f |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 1 14:07:39 2022 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 1 14:54:37 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfe1698f |
7 |
|
8 |
media-gfx/gmic: drop 3.1.5 |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
|
12 |
media-gfx/gmic/Manifest | 1 - |
13 |
.../gmic/files/gmic-3.1.5-makefile_automagic.patch | 131 --------------------- |
14 |
media-gfx/gmic/gmic-3.1.5.ebuild | 107 ----------------- |
15 |
3 files changed, 239 deletions(-) |
16 |
|
17 |
diff --git a/media-gfx/gmic/Manifest b/media-gfx/gmic/Manifest |
18 |
index baa4209a704d..12e056f95844 100644 |
19 |
--- a/media-gfx/gmic/Manifest |
20 |
+++ b/media-gfx/gmic/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
DIST gmic_3.0.1.tar.gz 10457923 BLAKE2B b495d10237abf5abe3d7df166119d2fc0b04142975d97db01ab0c5aa177f6e681931799fb392844e5c34d0503874a16d946a7146c5152cca1e64107948c02c03 SHA512 4bc08a3510e8987eea0463bfcf04de6dfd9a8ee8a38c14661ff201b8f563cab1b914dc60dc35b082cb5e868eb6232e2240a2d6703e0751215a82d6709236946a |
23 |
-DIST gmic_3.1.5.tar.gz 10782647 BLAKE2B 9334f61b4309dec31d5dd0c52b87a97628bfa819602f3bac03cbc74c26a65dc660c0f4ae5c84d2aba5062ebc2869ae3d656e6fc2b2f9c9d0565d07762a920d21 SHA512 7e27856db8b68fde33e50f09a9d07479b67843388a98edc891deab51828d922200af20afee163984e0c7660e46387d1fe514d35ac3e3d9c8ebe02b0aa89cbc96 |
24 |
|
25 |
diff --git a/media-gfx/gmic/files/gmic-3.1.5-makefile_automagic.patch b/media-gfx/gmic/files/gmic-3.1.5-makefile_automagic.patch |
26 |
deleted file mode 100644 |
27 |
index 8dbe50d6e194..000000000000 |
28 |
--- a/media-gfx/gmic/files/gmic-3.1.5-makefile_automagic.patch |
29 |
+++ /dev/null |
30 |
@@ -1,131 +0,0 @@ |
31 |
-Includes the OpenEXR3 patch as well as support for building with USE=-X, |
32 |
-as the relevant lines are deeply embedded in the automagic stuff. |
33 |
- |
34 |
---- a/src/Makefile |
35 |
-+++ b/src/Makefile |
36 |
-@@ -226,8 +226,10 @@ |
37 |
- |
38 |
- # Enable parallelization in CImg, using OpenMP. |
39 |
- # (http://www.openmp.org/) |
40 |
-+ifeq ($(GMIC_USE_OPENMP),yes) |
41 |
- OPENMP_CFLAGS = -fopenmp -Dcimg_use_openmp |
42 |
- OPENMP_LIBS = -lgomp |
43 |
-+endif |
44 |
- |
45 |
- # Enable software debugging. |
46 |
- # (Use address sanitizer and thus slows down the code) |
47 |
-@@ -249,9 +251,13 @@ |
48 |
- # Enable image display, using X11 (Unix). |
49 |
- # (Keep /usr/ dirname here since X11 is located in /usr/ on Mac too) |
50 |
- ifneq ($(OS),Darwin) |
51 |
-+ifeq ($(GMIC_USE_X11),yes) |
52 |
- X11_CFLAGS = -Dcimg_display=1 $(shell pkg-config --cflags x11 || echo -I/usr/X11R6/include) #-Dcimg_use_xrandr |
53 |
- X11_LIBS = $(shell pkg-config --libs x11 || echo -L/usr/X11R6/lib -lX11) -lpthread # $(shell pkg-config --libs xrandr || echo -lXrandr) |
54 |
- else |
55 |
-+X11_CFLAGS = -Dcimg_display=0 |
56 |
-+endif |
57 |
-+else |
58 |
- ifeq (,$(wildcard /usr/X11)) |
59 |
- X11_CFLAGS = -Dcimg_display=0 #-Dcimg_use_xrandr |
60 |
- X11_LIBS = -lpthread # $(shell pkg-config --libs xrandr || echo -lXrandr) |
61 |
-@@ -263,8 +269,10 @@ |
62 |
- |
63 |
- # Enable faster X11 display, using XShm extension. |
64 |
- # (ftp://www.x.org/pub/X11R7.7/doc/man/man3/XShm.3.xhtml) |
65 |
-+ifeq ($(GMIC_USE_XSHM),yes) |
66 |
- XSHM_CFLAGS = -Dcimg_use_xshm $(shell pkg-config --cflags xcb-shm) |
67 |
- XSHM_LIBS = $(shell pkg-config --libs xcb-shm || echo -L$(USR)/X11R6/lib) -lXext |
68 |
-+endif |
69 |
- |
70 |
- # Enable image display, using GDI32 (Windows). |
71 |
- GDI32_CFLAGS = -Dcimg_display=2 |
72 |
-@@ -273,8 +281,10 @@ |
73 |
- # Enable native support of PNG image files, using the PNG library. |
74 |
- # (http://www.libpng.org/pub/png/libpng.html) |
75 |
- ifneq ($(OS),Darwin) |
76 |
-+ifeq ($(GMIC_USE_PNG),yes) |
77 |
- PNG_CFLAGS = -Dcimg_use_png $(shell pkg-config --cflags libpng) |
78 |
- PNG_LIBS = $(shell pkg-config --libs libpng || echo -lpng -lz) |
79 |
-+endif |
80 |
- else |
81 |
- ifeq (,$(wildcard /tmp/skl)) |
82 |
- PNG_CFLAGS = -Dcimg_use_png $(shell pkg-config --cflags libpng) |
83 |
-@@ -287,56 +297,76 @@ |
84 |
- |
85 |
- # Enable native support of JPEG image files, using the JPEG library. |
86 |
- # (http://libjpeg.sourceforge.net/) |
87 |
-+ifeq ($(GMIC_USE_JPEG),yes) |
88 |
- JPEG_CFLAGS = -Dcimg_use_jpeg $(shell pkg-config --cflags libjpeg) |
89 |
- JPEG_LIBS = $(shell pkg-config --libs libjpeg || echo -ljpeg) |
90 |
-+endif |
91 |
- |
92 |
- # Enable native support of TIFF image files, using the TIFF library. |
93 |
- # (http://www.libtiff.org/) |
94 |
-+ifeq ($(GMIC_USE_TIFF),yes) |
95 |
- TIFF_CFLAGS = -Dcimg_use_tiff $(shell pkg-config --cflags libtiff-4) |
96 |
- TIFF_LIBS = $(shell pkg-config --libs libtiff-4 || echo -ltiff) |
97 |
-+endif |
98 |
- |
99 |
- # Enable native support for loading HEIC/AVIF image files, using the libheif library. |
100 |
- # ( https://github.com/strukturag/libheif ) |
101 |
-+ifeq ($(GMIC_USE_HEIF),yes) |
102 |
- HEIF_CFLAGS = -Dcimg_use_heif |
103 |
- HEIF_LIBS = -lheif |
104 |
-+endif |
105 |
- |
106 |
- # Enable native support of MINC2 image files, using the MINC2 library. |
107 |
- # ( http://en.wikibooks.org/wiki/MINC/Reference/MINC2.0_Users_Guide ) |
108 |
-+ifeq ($(GMIC_USE_MINC2),yes) |
109 |
- MINC2_CFLAGS = -Dcimg_use_minc2 -I${HOME}/local/include |
110 |
- MINC2_LIBS = -lminc_io -lvolume_io2 -lminc2 -lnetcdf -lhdf5 -lz -L${HOME}/local/lib |
111 |
-+endif |
112 |
- |
113 |
- # Enable native support for downloading files from the network. |
114 |
- # ( http://curl.haxx.se/libcurl/ ) |
115 |
-+ifeq ($(GMIC_USE_CURL),yes) |
116 |
- CURL_CFLAGS = -Dcimg_use_curl $(shell pkg-config --cflags libcurl) |
117 |
- CURL_LIBS = $(shell pkg-config --libs libcurl || echo -lcurl) |
118 |
-+endif |
119 |
- |
120 |
- # Enable native support of webcams and video streaming, using the OpenCV library. |
121 |
- # (https://opencv.org/) |
122 |
-+ifeq ($(GMIC_USE_OPENCV),yes) |
123 |
- OPENCV_CFLAGS = -Dcimg_use_opencv $(shell pkg-config opencv --cflags) -I/usr/include/opencv -I/usr/include/opencv4 |
124 |
- OPENCV_LIBS = $(shell pkg-config opencv --libs || echo -lopencv_core -lopencv_highgui -lopencv_videoio) |
125 |
-+endif |
126 |
- |
127 |
- # Enable support of most classical image file formats, using the GraphicsMagick++ library. |
128 |
- # (http://www.graphicsmagick.org/Magick++/) |
129 |
-+ifeq ($(GMIC_USE_GRAPHICSMAGICK),yes) |
130 |
- MAGICK_CFLAGS = -Dcimg_use_magick $(shell pkg-config --cflags GraphicsMagick++ || echo -I$(USR)/$(INCLUDE)/GraphicsMagick) |
131 |
- MAGICK_LIBS = $(shell pkg-config --libs GraphicsMagick++ || echo -lGraphicsMagick++) |
132 |
-+endif |
133 |
- |
134 |
- # Enable native support of EXR image files, using the OpenEXR library. |
135 |
- # (http://www.openexr.com/) |
136 |
--OPENEXR_CFLAGS = -Dcimg_use_openexr $(shell pkg-config --cflags OpenEXR || echo -I$(USR)/$(INCLUDE)/OpenEXR) |
137 |
--OPENEXR_LIBS = $(shell pkg-config --libs OpenEXR || echo -lIlmImf -lHalf) |
138 |
-+ifeq ($(GMIC_USE_EXR),yes) |
139 |
-+OPENEXR_CFLAGS = -Dcimg_use_openexr $(shell pkg-config --cflags OpenEXR || echo -I$(USR)/$(INCLUDE)/OpenEXR -I$(USR)/$(INCLUDE)/Imath) |
140 |
-+OPENEXR_LIBS = $(shell pkg-config --libs OpenEXR || echo -lOpenEXR -lImath) |
141 |
-+endif |
142 |
- |
143 |
- # Enable Fast Fourier Transforms, using the FFTW3 library. |
144 |
- # (http://www.fftw.org/) |
145 |
-+ifeq ($(GMIC_USE_FFTW),yes) |
146 |
- FFTW_CFLAGS = -Dcimg_use_fftw3 $(shell pkg-config --cflags fftw3) |
147 |
- FFTW_LIBS = $(shell pkg-config --libs fftw3 || echo -lfftw3) |
148 |
- ifneq ($(OS),Windows) |
149 |
- FFTW_LIBS += -lfftw3_threads |
150 |
- endif |
151 |
-+endif |
152 |
- |
153 |
- # Enable native support of the BOARD library. |
154 |
- # (https://github.com/c-koi/libboard) |
155 |
-+ifeq ($(GMIC_USE_BOARD),yes) |
156 |
- BOARD_CFLAGS = -Dcimg_use_board |
157 |
- BOARD_LIBS = -lboard |
158 |
-+endif |
159 |
- |
160 |
- GMIC_STD_CFLAGS = $(MANDATORY_CFLAGS) $(ABORT_CFLAGS) $(PARALLEL_CFLAGS) $(FFTW_CFLAGS) $(CURL_CFLAGS) $(PNG_CFLAGS) $(JPEG_CFLAGS) $(TIFF_CFLAGS) |
161 |
- GMIC_STD_LIBS = $(MANDATORY_LIBS) $(PARALLEL_LIBS) $(FFTW_LIBS) $(CURL_LIBS) $(PNG_LIBS) $(JPEG_LIBS) $(TIFF_LIBS) |
162 |
|
163 |
diff --git a/media-gfx/gmic/gmic-3.1.5.ebuild b/media-gfx/gmic/gmic-3.1.5.ebuild |
164 |
deleted file mode 100644 |
165 |
index 4555221810cb..000000000000 |
166 |
--- a/media-gfx/gmic/gmic-3.1.5.ebuild |
167 |
+++ /dev/null |
168 |
@@ -1,107 +0,0 @@ |
169 |
-# Copyright 1999-2022 Gentoo Authors |
170 |
-# Distributed under the terms of the GNU General Public License v2 |
171 |
- |
172 |
-EAPI=8 |
173 |
- |
174 |
-inherit bash-completion-r1 toolchain-funcs |
175 |
- |
176 |
-if [[ ${PV} == "9999" ]]; then |
177 |
- EGIT_REPO_URI="https://github.com/dtschump/gmic.git" |
178 |
- inherit git-r3 |
179 |
-else |
180 |
- SRC_URI="https://gmic.eu/files/source/${PN}_${PV}.tar.gz" |
181 |
- KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" |
182 |
-fi |
183 |
- |
184 |
-DESCRIPTION="GREYC's Magic Image Converter" |
185 |
-HOMEPAGE="https://gmic.eu/ https://github.com/dtschump/gmic" |
186 |
- |
187 |
-LICENSE="CeCILL-2 GPL-3" |
188 |
-SLOT="0" |
189 |
-IUSE="cli curl ffmpeg fftw gimp graphicsmagick jpeg opencv openexr openmp png qt5 tiff X" |
190 |
-REQUIRED_USE=" |
191 |
- gimp? ( png fftw X ) |
192 |
- qt5? ( png fftw X ) |
193 |
-" |
194 |
- |
195 |
-# No test suite, hand-crafted Makefiles barf out on 'emake check' |
196 |
-RESTRICT="test" |
197 |
- |
198 |
-MIN_QT_VER="5.2.0" |
199 |
-QT_DEPEND=" |
200 |
- >=dev-qt/qtcore-${MIN_QT_VER}:5 |
201 |
- >=dev-qt/qtgui-${MIN_QT_VER}:5 |
202 |
- >=dev-qt/qtnetwork-${MIN_QT_VER}:5 |
203 |
- >=dev-qt/qtwidgets-${MIN_QT_VER}:5 |
204 |
-" |
205 |
-DEPEND=" |
206 |
- sys-libs/zlib:0= |
207 |
- curl? ( net-misc/curl ) |
208 |
- fftw? ( sci-libs/fftw:3.0=[threads] ) |
209 |
- gimp? ( |
210 |
- media-gfx/gimp:0/2 |
211 |
- ${QT_DEPEND} |
212 |
- ) |
213 |
- graphicsmagick? ( media-gfx/graphicsmagick:0= ) |
214 |
- jpeg? ( media-libs/libjpeg-turbo:= ) |
215 |
- opencv? ( >=media-libs/opencv-2.3.1a-r1:0= ) |
216 |
- openexr? ( |
217 |
- dev-libs/imath:= |
218 |
- media-libs/openexr:= |
219 |
- ) |
220 |
- png? ( media-libs/libpng:0= ) |
221 |
- qt5? ( ${QT_DEPEND} ) |
222 |
- tiff? ( media-libs/tiff:0 ) |
223 |
- X? ( |
224 |
- x11-libs/libX11 |
225 |
- x11-libs/libXext |
226 |
- )" |
227 |
-RDEPEND="${DEPEND} |
228 |
- ffmpeg? ( media-video/ffmpeg:0= ) |
229 |
-" |
230 |
-BDEPEND=" |
231 |
- virtual/pkgconfig |
232 |
- gimp? ( dev-qt/linguist-tools:5 ) |
233 |
- qt5? ( dev-qt/linguist-tools:5 ) |
234 |
-" |
235 |
- |
236 |
-PATCHES=( |
237 |
- "${FILESDIR}"/${PN}-3.1.5-makefile_automagic.patch |
238 |
-) |
239 |
- |
240 |
-pkg_pretend() { |
241 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
242 |
-} |
243 |
- |
244 |
-pkg_setup() { |
245 |
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
246 |
-} |
247 |
- |
248 |
-gmic_emake() { |
249 |
- emake -j1 -C src \ |
250 |
- GMIC_USE_CURL=$(usex curl) \ |
251 |
- GMIC_USE_EXR=$(usex openexr) \ |
252 |
- GMIC_USE_FFTW=$(usex fftw) \ |
253 |
- GMIC_USE_GRAPHICSMAGICK=$(usex graphicsmagick) \ |
254 |
- GMIC_USE_JPEG=$(usex jpeg) \ |
255 |
- GMIC_USE_OPENCV=$(usex opencv) \ |
256 |
- GMIC_USE_OPENMP=$(usex openmp) \ |
257 |
- GMIC_USE_PNG=$(usex png) \ |
258 |
- GMIC_USE_TIFF=$(usex tiff) \ |
259 |
- GMIC_USE_X11=$(usex X) \ |
260 |
- QMAKE="qmake5" \ |
261 |
- $@ |
262 |
-} |
263 |
- |
264 |
-# FIXME: |
265 |
-# - do not pre-strip binaries |
266 |
-# - honour user LDFLAGS on lib{,c}gmic.so |
267 |
-# - fix multilib-strict violation on same |
268 |
-# - nuke relative DT_RUNPATH on same |
269 |
-# - GIMP plug-in dir should only be created if USE=gimp, otherwise it ends up being just /plug-ins |
270 |
-src_compile() { |
271 |
- gmic_emake lib libc |
272 |
- use cli && gmic_emake cli_shared |
273 |
- use gimp && gmic_emake gimp_shared |
274 |
- use qt5 && gmic_emake gmic_qt_shared |
275 |
-} |