1 |
commit: 9631fc4edbeac197d38ada2049d3daa6f9da093f |
2 |
Author: Adel KARA SLIMANE <adel.ks <AT> zegrapher <DOT> com> |
3 |
AuthorDate: Mon Sep 5 19:33:40 2022 +0000 |
4 |
Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> |
5 |
CommitDate: Wed Sep 7 16:07:18 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9631fc4e |
7 |
|
8 |
media-libs/imgui: improve 1.81 ebuild |
9 |
|
10 |
Signed-off-by: Adel KARA SLIMANE <adel.ks <AT> zegrapher.com> |
11 |
|
12 |
media-libs/imgui/Manifest | 1 + |
13 |
media-libs/imgui/files/imgui-1.81-meson.build | 137 --------------------- |
14 |
.../imgui/files/imgui-1.81-meson_options.txt | 18 --- |
15 |
media-libs/imgui/imgui-1.81.ebuild | 26 ++-- |
16 |
media-libs/imgui/metadata.xml | 4 +- |
17 |
5 files changed, 17 insertions(+), 169 deletions(-) |
18 |
|
19 |
diff --git a/media-libs/imgui/Manifest b/media-libs/imgui/Manifest |
20 |
index c33c14ca9..92dc7f09b 100644 |
21 |
--- a/media-libs/imgui/Manifest |
22 |
+++ b/media-libs/imgui/Manifest |
23 |
@@ -1,4 +1,5 @@ |
24 |
DIST cimgui-1.87.gh.tar.gz 385460 BLAKE2B 0916d53a00234343536ee412035a2c405b01e31a26c3d059cff4d446188ee8a1835a1233a68f671ccebb67be480801b85203a90b0e79fa729f7ac1efdc8bf4a2 SHA512 bf2ed9461e8c12514d29914e6da7f8fae7cd31fcc587c7d89122c950541aed3b4b908d8cd298b3975e9a955a47789335a88db7223ca558cbdf459693a0081bda |
25 |
+DIST imgui-1.81-1-meson-wrap.zip 1850 BLAKE2B 325f84fd57a896ec9aceb83a54752e8dba52499c3540cc389ab51b929f1dd65c4a599ab71f7f06fa082f31572d8cdaf2f9d7bfdd8cf6ca96a529318bd53f0a06 SHA512 c97fa4cb5ab31c040951e6da04bb1b9659f0105adf54becc35c60ad376c6d4f9e4dcd2a5a554dc5430cfc69527ef5d8570f39fbbf91a23d15f51740f06fb7c3c |
26 |
DIST imgui-1.81.tar.gz 1413443 BLAKE2B 6f2e63777821b2767da92d9f40f4de7b4313c38817413e959e612c0ce67701645cf29f0748a3b86cfbd41e0b4b2c8099e9a0ca786c637ca1661fffd7b0de0629 SHA512 d7a2b66dea77359f78068a595607d7668e09ddd0b91910f67fc6463cb920b91b0cc1855984bd4d41e6a880b69ca7cd5e3adc064dcf461c0629b9f8c845a4fc3e |
27 |
DIST imgui-1.83.tar.gz 1448389 BLAKE2B 648306bd69181ad8315f12fc5b2c319b23005d6b3fc790ad64caaf1f80304e81b33af5d6f435fa97151fcf1e77eb15455838a09570b7a9c7dd9c56a61510b5a1 SHA512 2150e7101f384b1c749b2e89876b2085a7ff43435f04e88602d0e5e00db7a41c1ace5176bdb0963326845d1c8303b5092a7ca1c9c8e70c522ba96f899ed5bb9c |
28 |
DIST imgui-1.87.gh.tar.gz 1460834 BLAKE2B f73b71400311e7c5f82248e242a932add5090670c78077ca2239f349730bab88a00bfe4deca4e854772ef7f6a2cff1fc0f38f7174a026995f93c9e7b55eb2a1d SHA512 3255b06698ab9c8951953e1e0b6d160d64adfa4c011b21a4288547292a7f8fff586875faf9dae0677818bde65bd7e98da92f16f6beb1e6a66aa835edf32e8ce2 |
29 |
|
30 |
diff --git a/media-libs/imgui/files/imgui-1.81-meson.build b/media-libs/imgui/files/imgui-1.81-meson.build |
31 |
deleted file mode 100644 |
32 |
index 1d5e67e38..000000000 |
33 |
--- a/media-libs/imgui/files/imgui-1.81-meson.build |
34 |
+++ /dev/null |
35 |
@@ -1,137 +0,0 @@ |
36 |
-# Copyright (c) 2020 The Meson development team |
37 |
- |
38 |
-# Permission is hereby granted, free of charge, to any person obtaining a copy |
39 |
-# of this software and associated documentation files (the "Software"), to deal |
40 |
-# in the Software without restriction, including without limitation the rights |
41 |
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
42 |
-# copies of the Software, and to permit persons to whom the Software is |
43 |
-# furnished to do so, subject to the following conditions: |
44 |
- |
45 |
-# The above copyright notice and this permission notice shall be included in all |
46 |
-# copies or substantial portions of the Software. |
47 |
- |
48 |
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
49 |
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
50 |
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
51 |
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
52 |
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
53 |
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
54 |
-# SOFTWARE. |
55 |
- |
56 |
-project('imgui', 'cpp', |
57 |
- version: '1.81', |
58 |
- license: 'MIT', |
59 |
-) |
60 |
- |
61 |
-include_dirs = include_directories('.', 'backends') |
62 |
-sources = ['imgui_demo.cpp', 'imgui_draw.cpp', 'imgui_tables.cpp', 'imgui_widgets.cpp', 'imgui.cpp'] |
63 |
- |
64 |
-cpp = meson.get_compiler('cpp') |
65 |
-dependencies = [] |
66 |
- |
67 |
-# renderer backends |
68 |
-dx9_dep = cpp.find_library('d3d9', required: get_option('dx9')) |
69 |
-if dx9_dep.found() |
70 |
- sources += 'backends/imgui_impl_dx9.cpp' |
71 |
- dependencies += dx9_dep |
72 |
-endif |
73 |
-dx10_dep = cpp.find_library('d3d10', required: get_option('dx10')) |
74 |
-if dx10_dep.found() |
75 |
- sources += 'backends/imgui_impl_dx10.cpp' |
76 |
- dependencies += dx10_dep |
77 |
-endif |
78 |
-dx11_dep = cpp.find_library('d3d11', required: get_option('dx11')) |
79 |
-if dx11_dep.found() |
80 |
- sources += 'backends/imgui_impl_dx11.cpp' |
81 |
- dependencies += dx11_dep |
82 |
-endif |
83 |
-dx12_dep = cpp.find_library('d3d12', required: get_option('dx12')) |
84 |
-if dx12_dep.found() |
85 |
- sources += 'backends/imgui_impl_dx12.cpp' |
86 |
- dependencies += dx12_dep |
87 |
-endif |
88 |
-metal_dep = cpp.find_library('metal', required: get_option('metal')) |
89 |
-if get_option('metal').enabled() |
90 |
- sources += 'backends/imgui_impl_metal.mm' |
91 |
- dependencies += metal_dep |
92 |
-endif |
93 |
-glew_dep = dependency('glew', required: get_option('opengl')) |
94 |
-if glew_dep.found() |
95 |
- sources += 'backends/imgui_impl_opengl3.cpp' |
96 |
- dependencies += glew_dep |
97 |
-endif |
98 |
-vulkan_dep = dependency('vulkan', required: get_option('vulkan')) |
99 |
-if vulkan_dep.found() |
100 |
- sources += 'backends/imgui_impl_vulkan.cpp' |
101 |
- dependencies += vulkan_dep |
102 |
-endif |
103 |
- |
104 |
-# platform backends |
105 |
-glfw_dep = dependency('glfw3', required: get_option('glfw')) |
106 |
-if glfw_dep.found() |
107 |
- sources += 'backends/imgui_impl_glfw.cpp' |
108 |
- dependencies += glfw_dep |
109 |
-endif |
110 |
-sdl2_dep = dependency('sdl2', required: get_option('sdl2')) |
111 |
-if sdl2_dep.found() |
112 |
- sources += 'backends/imgui_impl_sdl.cpp' |
113 |
- dependencies += sdl2_dep |
114 |
-endif |
115 |
-if get_option('osx').enabled() or (get_option('osx').auto() and target_machine.system() == 'darwin') |
116 |
- sources += 'backends/imgui_impl_osx.mm' |
117 |
-endif |
118 |
-if get_option('win').enabled() or (get_option('win').auto() and target_machine.system() == 'windows') |
119 |
- sources += 'backends/imgui_impl_win32.cpp' |
120 |
-endif |
121 |
- |
122 |
-# frameworks |
123 |
-allegro5_dep = dependency('allegro5', required: get_option('allegro5')) |
124 |
-if allegro5_dep.found() |
125 |
- sources += 'backends/imgui_impl_allegro5.cpp' |
126 |
- dependencies += allegro5_dep |
127 |
-endif |
128 |
-marmalade_dep = cpp.find_library('marmalade', required: get_option('marmalade')) |
129 |
-if marmalade_dep.found() |
130 |
- sources += 'backends/imgui_impl_marmalade.cpp' |
131 |
- dependencies += marmalade_dep |
132 |
-endif |
133 |
- |
134 |
-imgui = library('imgui', |
135 |
- sources, |
136 |
- dependencies: dependencies, |
137 |
- include_directories: include_dirs, |
138 |
- version: meson.project_version(), |
139 |
- install: true |
140 |
-) |
141 |
- |
142 |
-pkg_mod = import('pkgconfig') |
143 |
-pkg_mod.generate(imgui, |
144 |
- description : 'Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies' |
145 |
-) |
146 |
- |
147 |
-install_headers( |
148 |
- 'imconfig.h', |
149 |
- 'imgui.h', |
150 |
- 'imgui_internal.h', |
151 |
- 'imstb_rectpack.h', |
152 |
- 'imstb_textedit.h', |
153 |
- 'imstb_truetype.h', |
154 |
- 'backends/imgui_impl_dx9.h', |
155 |
- 'backends/imgui_impl_osx.h', |
156 |
- 'backends/imgui_impl_sdl.h', |
157 |
- 'backends/imgui_impl_dx10.h', |
158 |
- 'backends/imgui_impl_dx11.h', |
159 |
- 'backends/imgui_impl_dx12.h', |
160 |
- 'backends/imgui_impl_glfw.h', |
161 |
- 'backends/imgui_impl_glut.h', |
162 |
- 'backends/imgui_impl_wgpu.h', |
163 |
- 'backends/imgui_impl_metal.h', |
164 |
- 'backends/imgui_impl_win32.h', |
165 |
- 'backends/imgui_impl_vulkan.h', |
166 |
- 'backends/imgui_impl_opengl2.h', |
167 |
- 'backends/imgui_impl_opengl3.h', |
168 |
- 'backends/imgui_impl_allegro5.h', |
169 |
- 'backends/imgui_impl_marmalade.h', |
170 |
- subdir: 'imgui') |
171 |
- |
172 |
-imgui_dep = declare_dependency(include_directories: include_dirs, link_with: imgui) |
173 |
|
174 |
diff --git a/media-libs/imgui/files/imgui-1.81-meson_options.txt b/media-libs/imgui/files/imgui-1.81-meson_options.txt |
175 |
deleted file mode 100644 |
176 |
index b61e45adc..000000000 |
177 |
--- a/media-libs/imgui/files/imgui-1.81-meson_options.txt |
178 |
+++ /dev/null |
179 |
@@ -1,18 +0,0 @@ |
180 |
-# renderer backends |
181 |
-option('dx9', type : 'feature', value : 'auto') |
182 |
-option('dx10', type : 'feature', value : 'auto') |
183 |
-option('dx11', type : 'feature', value : 'auto') |
184 |
-option('dx12', type : 'feature', value : 'auto') |
185 |
-option('metal', type : 'feature', value : 'auto') |
186 |
-option('opengl', type : 'feature', value : 'auto') |
187 |
-option('vulkan', type : 'feature', value : 'auto') |
188 |
- |
189 |
-# platform backends |
190 |
-option('glfw', type : 'feature', value : 'auto') |
191 |
-option('sdl2', type : 'feature', value : 'auto') |
192 |
-option('osx', type : 'feature', value : 'auto') |
193 |
-option('win', type : 'feature', value : 'auto') |
194 |
- |
195 |
-# frameworks (renderer + platform) |
196 |
-option('marmalade', type : 'feature', value : 'auto') |
197 |
-option('allegro5', type : 'feature', value : 'auto') |
198 |
|
199 |
diff --git a/media-libs/imgui/imgui-1.81.ebuild b/media-libs/imgui/imgui-1.81.ebuild |
200 |
index 939d77327..3ff8437c9 100644 |
201 |
--- a/media-libs/imgui/imgui-1.81.ebuild |
202 |
+++ b/media-libs/imgui/imgui-1.81.ebuild |
203 |
@@ -5,8 +5,7 @@ EAPI=8 |
204 |
|
205 |
inherit meson |
206 |
|
207 |
-IMGUI_VER="1.81" |
208 |
-IMGUI_MESON_WRAP_VER="1" |
209 |
+MESON_WRAP_VER="1" |
210 |
|
211 |
DESCRIPTION="Bloat-free graphical user interface library for C++" |
212 |
HOMEPAGE=" |
213 |
@@ -14,13 +13,14 @@ HOMEPAGE=" |
214 |
" |
215 |
|
216 |
SRC_URI=" |
217 |
- https://github.com/ocornut/imgui/archive/v${IMGUI_VER}.tar.gz -> imgui-${IMGUI_VER}.tar.gz |
218 |
+ https://github.com/ocornut/imgui/archive/v${PV}.tar.gz -> imgui-${PV}.tar.gz |
219 |
+ https://wrapdb.mesonbuild.com/v2/imgui_${PV}-${MESON_WRAP_VER}/get_patch -> imgui-${PV}-${MESON_WRAP_VER}-meson-wrap.zip |
220 |
" |
221 |
|
222 |
LICENSE="MIT" |
223 |
SLOT="0/${PV}" |
224 |
KEYWORDS="~amd64" |
225 |
-IUSE="dx9 dx10 dx11 dx12 metal opengl vulkan glfw sdl2 osx win marmalade allegro5" |
226 |
+IUSE="opengl vulkan glfw sdl2 marmalade allegro5" |
227 |
|
228 |
RDEPEND=" |
229 |
dev-libs/stb:= |
230 |
@@ -37,28 +37,28 @@ DEPEND=" |
231 |
" |
232 |
BDEPEND=" |
233 |
virtual/pkgconfig |
234 |
+ app-arch/unzip |
235 |
" |
236 |
|
237 |
src_unpack() { |
238 |
default |
239 |
|
240 |
- cp ${FILESDIR}/imgui-${IMGUI_VER}-meson.build ${S}/meson.build || die |
241 |
- cp ${FILESDIR}/imgui-${IMGUI_VER}-meson_options.txt ${S}/meson_options.txt || die |
242 |
+ unpack imgui-${PV}-${MESON_WRAP_VER}-meson-wrap.zip |
243 |
} |
244 |
|
245 |
src_configure() { |
246 |
local emesonargs=( |
247 |
- $(meson_feature dx9) |
248 |
- $(meson_feature dx10) |
249 |
- $(meson_feature dx11) |
250 |
- $(meson_feature dx12) |
251 |
- $(meson_feature metal) |
252 |
+ -Ddx9=disabled |
253 |
+ -Ddx10=disabled |
254 |
+ -Ddx11=disabled |
255 |
+ -Ddx12=disabled |
256 |
+ -Dmetal=disabled |
257 |
$(meson_feature opengl) |
258 |
$(meson_feature vulkan) |
259 |
$(meson_feature glfw) |
260 |
$(meson_feature sdl2) |
261 |
- $(meson_feature osx) |
262 |
- $(meson_feature win) |
263 |
+ -Dosx=disabled |
264 |
+ -Dwin=disabled |
265 |
$(meson_feature marmalade) |
266 |
$(meson_feature allegro5) |
267 |
) |
268 |
|
269 |
diff --git a/media-libs/imgui/metadata.xml b/media-libs/imgui/metadata.xml |
270 |
index 766c22dfc..b3ceef849 100644 |
271 |
--- a/media-libs/imgui/metadata.xml |
272 |
+++ b/media-libs/imgui/metadata.xml |
273 |
@@ -12,7 +12,7 @@ |
274 |
<remote-id type="github">cimgui/cimgui</remote-id> |
275 |
</upstream> |
276 |
<use> |
277 |
- <flag name="allegro">Enable allegro backend and renderer</flag> |
278 |
+ <flag name="allegro5">Enable allegro backend and renderer</flag> |
279 |
<flag name="bindings">Build the cimgui C bindigs</flag> |
280 |
<flag name="freetype">Use FreeType to build and rasterize the font atlas</flag> |
281 |
<flag name="glfw">Enable glfw backend</flag> |
282 |
@@ -20,5 +20,7 @@ |
283 |
<flag name="opengl">Enable opengl renderer</flag> |
284 |
<flag name="sdl">Enable sdl backend</flag> |
285 |
<flag name="vulkan">Enable vulkan renderer</flag> |
286 |
+ <flag name="marmalade">Enable Marmalade backend</flag> |
287 |
+ <flag name="sdl2">Enable SDL2 backend</flag> |
288 |
</use> |
289 |
</pkgmetadata> |