1 |
commit: c21ef5bfebab463d86eb5442484b060aaa133b76 |
2 |
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> |
3 |
AuthorDate: Sun Jun 13 08:39:58 2021 +0000 |
4 |
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> |
5 |
CommitDate: Sun Jun 13 08:47:07 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c21ef5bf |
7 |
|
8 |
Revert "media-gfx/bonzomatic: drop unmaintained live" |
9 |
|
10 |
I am actually using the live version, so it is maintained. |
11 |
|
12 |
This reverts commit ccde6e304101ceb0084f644eb21b1cb34ec86f99. |
13 |
|
14 |
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> |
15 |
|
16 |
media-gfx/bonzomatic/bonzomatic-9999.ebuild | 72 +++++++++++++++++++++++++++++ |
17 |
1 file changed, 72 insertions(+) |
18 |
|
19 |
diff --git a/media-gfx/bonzomatic/bonzomatic-9999.ebuild b/media-gfx/bonzomatic/bonzomatic-9999.ebuild |
20 |
new file mode 100644 |
21 |
index 000000000..ee701bf37 |
22 |
--- /dev/null |
23 |
+++ b/media-gfx/bonzomatic/bonzomatic-9999.ebuild |
24 |
@@ -0,0 +1,72 @@ |
25 |
+# Copyright 1999-2021 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+inherit cmake |
31 |
+ |
32 |
+DESCRIPTION="Live shader coding tool and Shader Showdown workhorse" |
33 |
+HOMEPAGE="https://github.com/Gargaj/Bonzomatic" |
34 |
+if [[ "${PV}" == "9999" ]] |
35 |
+then |
36 |
+ inherit git-r3 |
37 |
+ EGIT_REPO_URI="https://github.com/Gargaj/Bonzomatic" |
38 |
+else |
39 |
+ MY_PV="$(ver_rs 1- -)" |
40 |
+ SRC_URI="https://github.com/Gargaj/Bonzomatic/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ S="${WORKDIR}/Bonzomatic-${MY_PV}" |
42 |
+ KEYWORDS="~amd64 ~x86" |
43 |
+fi |
44 |
+ |
45 |
+LICENSE="Unlicense" |
46 |
+SLOT="0" |
47 |
+IUSE="system-glfw system-glew system-stb system-kissfft wayland" |
48 |
+ |
49 |
+# TODO: system-miniaudio, system-jsonxx/json++, system-scintilla |
50 |
+# !system-glfw copied from media-libs/glfw-3.3.3::gentoo |
51 |
+# !system-glew copied from media-libs/glew-2.2.0::gentoo |
52 |
+DEPEND=" |
53 |
+ system-glfw? ( media-libs/glfw ) |
54 |
+ !system-glfw? ( |
55 |
+ wayland? ( |
56 |
+ dev-libs/wayland |
57 |
+ media-libs/mesa[egl,wayland] |
58 |
+ dev-libs/wayland-protocols |
59 |
+ ) |
60 |
+ !wayland? ( |
61 |
+ x11-libs/libX11 |
62 |
+ x11-libs/libXcursor |
63 |
+ x11-libs/libXinerama |
64 |
+ x11-libs/libXrandr |
65 |
+ x11-libs/libXxf86vm |
66 |
+ x11-libs/libXi |
67 |
+ ) |
68 |
+ ) |
69 |
+ system-glew? ( media-libs/glew:= ) |
70 |
+ !system-glew? ( |
71 |
+ >=x11-libs/libX11-1.6.2 |
72 |
+ >=x11-libs/libXext-1.3.2 |
73 |
+ >=x11-libs/libXi-1.7.2 |
74 |
+ >=x11-libs/libXmu-1.1.1-r1 |
75 |
+ ) |
76 |
+ system-stb? ( dev-libs/stb ) |
77 |
+ system-kissfft? ( sci-libs/kissfft ) |
78 |
+ virtual/opengl |
79 |
+ virtual/glu |
80 |
+ media-libs/alsa-lib |
81 |
+ media-libs/fontconfig |
82 |
+" |
83 |
+RDEPEND="${DEPEND}" |
84 |
+BDEPEND="!system-glfw? ( wayland? ( dev-libs/wayland-protocols ) )" |
85 |
+ |
86 |
+src_configure() { |
87 |
+ local mycmakeargs=( |
88 |
+ -DBONZOMATIC_USE_SYSTEM_GLFW=$(usex system-glfw) |
89 |
+ -DGLFW_USE_WAYLAND="$(usex wayland)" |
90 |
+ -DBONZOMATIC_USE_SYSTEM_GLEW=$(usex system-glew) |
91 |
+ -DBONZOMATIC_USE_SYSTEM_STB=$(usex system-stb) |
92 |
+ -DBONZOMATIC_USE_SYSTEM_KISSFFT=$(usex system-kissfft) |
93 |
+ ) |
94 |
+ |
95 |
+ cmake_src_configure |
96 |
+} |