1 |
commit: 7d158a55a75fe06755bea80abc5332d63744b5e9 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 26 17:32:37 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 26 18:01:47 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d158a55 |
7 |
|
8 |
media-libs/libmediaart: Version bump to 1.9.5 |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
media-libs/libmediaart/Manifest | 1 + |
13 |
.../1.9.5-meson-add-introspection-option.patch | 87 ++++++++++++++++++++++ |
14 |
.../files/1.9.5-meson-add-vapi-option.patch | 48 ++++++++++++ |
15 |
media-libs/libmediaart/libmediaart-1.9.5.ebuild | 55 ++++++++++++++ |
16 |
4 files changed, 191 insertions(+) |
17 |
|
18 |
diff --git a/media-libs/libmediaart/Manifest b/media-libs/libmediaart/Manifest |
19 |
index 40e7afd392dd..4369fd4c6276 100644 |
20 |
--- a/media-libs/libmediaart/Manifest |
21 |
+++ b/media-libs/libmediaart/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST libmediaart-1.9.4.tar.xz 5827928 BLAKE2B defb53867341e3f0f794b3e167532f3ea232028b3ccc3968b13456eb74cacf8fab97e462914debaa0a7f08a2dcb98dcc0e77dec55319291388050a55b6a70a37 SHA512 e2526c22cb656c821da626c43c09d72afded1dfc369e77baea3de17dd6d3bd3b829cf3160e386459f55b9580cbeeb1d621c85876cb62739bc8d4f42429bdce1c |
24 |
+DIST libmediaart-1.9.5.tar.xz 5549620 BLAKE2B 6656baeb52aa0f4c355354dab3eb5499af957a2d9c5530e46874127a71a55b744b0370ec25b5e187ea9b615acb195f5b817196d59e668c34f2e3c8c4f8060598 SHA512 b1d54f4b480cb5cf63a2231b082635268ac1ab708ba829a3e5ccfdfb530e9d463c5ac505cd1dc44643f23f787c4df2ef287a7e68d56e93a05b97be450c7799b6 |
25 |
|
26 |
diff --git a/media-libs/libmediaart/files/1.9.5-meson-add-introspection-option.patch b/media-libs/libmediaart/files/1.9.5-meson-add-introspection-option.patch |
27 |
new file mode 100644 |
28 |
index 000000000000..b61f2ed9bf81 |
29 |
--- /dev/null |
30 |
+++ b/media-libs/libmediaart/files/1.9.5-meson-add-introspection-option.patch |
31 |
@@ -0,0 +1,87 @@ |
32 |
+https://gitlab.gnome.org/GNOME/libmediaart/-/merge_requests/14 |
33 |
+ |
34 |
+From 0de77d9eccb6ed78416339a47113f3dc4fe4c453 Mon Sep 17 00:00:00 2001 |
35 |
+From: Fabrice Fontaine <fontaine.fabrice@×××××.com> |
36 |
+Date: Tue, 5 Oct 2021 23:35:26 +0200 |
37 |
+Subject: [PATCH] meson: add introspection option |
38 |
+ |
39 |
+Add introspection option |
40 |
+ |
41 |
+Fix #3 |
42 |
+ |
43 |
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@×××××.com> |
44 |
+--- |
45 |
+ libmediaart/meson.build | 42 +++++++++++++++++++++-------------------- |
46 |
+ meson_options.txt | 2 ++ |
47 |
+ 2 files changed, 24 insertions(+), 20 deletions(-) |
48 |
+ |
49 |
+diff --git a/libmediaart/meson.build b/libmediaart/meson.build |
50 |
+index 56e00ab..2f44e63 100644 |
51 |
+--- a/libmediaart/meson.build |
52 |
++++ b/libmediaart/meson.build |
53 |
+@@ -41,28 +41,30 @@ libmediaart = shared_library( |
54 |
+ install: true, |
55 |
+ ) |
56 |
+ |
57 |
+-gir_args = [ |
58 |
+- '--quiet', |
59 |
+- '-DLIBMEDIAART_COMPILATION', |
60 |
+-] |
61 |
++if get_option('introspection') |
62 |
++ gir_args = [ |
63 |
++ '--quiet', |
64 |
++ '-DLIBMEDIAART_COMPILATION', |
65 |
++ ] |
66 |
+ |
67 |
+-libmediaart_gir_and_typelib = gnome.generate_gir(libmediaart, |
68 |
+- sources: libmediaart_sources + libmediaart_introspection_sources + libmediaart_public_headers, |
69 |
+- nsversion: libmediaart_api_version, |
70 |
+- namespace: 'MediaArt', |
71 |
+- identifier_prefix: 'MediaArt', |
72 |
+- symbol_prefix: 'media_art', |
73 |
+- includes: ['Gio-2.0', 'GObject-2.0'], |
74 |
+- header: 'libmediaart/mediaart.h', |
75 |
+- export_packages: 'libmediaart-' + libmediaart_api_version, |
76 |
+- extra_args: gir_args, |
77 |
+- install: true |
78 |
+-) |
79 |
++ libmediaart_gir_and_typelib = gnome.generate_gir(libmediaart, |
80 |
++ sources: libmediaart_sources + libmediaart_introspection_sources + libmediaart_public_headers, |
81 |
++ nsversion: libmediaart_api_version, |
82 |
++ namespace: 'MediaArt', |
83 |
++ identifier_prefix: 'MediaArt', |
84 |
++ symbol_prefix: 'media_art', |
85 |
++ includes: ['Gio-2.0', 'GObject-2.0'], |
86 |
++ header: 'libmediaart/mediaart.h', |
87 |
++ export_packages: 'libmediaart-' + libmediaart_api_version, |
88 |
++ extra_args: gir_args, |
89 |
++ install: true |
90 |
++ ) |
91 |
+ |
92 |
+-libmediaart_vapi = gnome.generate_vapi('libmediaart-' + libmediaart_api_version, |
93 |
+- sources: libmediaart_gir_and_typelib[0], |
94 |
+- packages: 'gio-2.0', |
95 |
+- install: true) |
96 |
++ libmediaart_vapi = gnome.generate_vapi('libmediaart-' + libmediaart_api_version, |
97 |
++ sources: libmediaart_gir_and_typelib[0], |
98 |
++ packages: 'gio-2.0', |
99 |
++ install: true) |
100 |
++endif |
101 |
+ |
102 |
+ libmediaart_dep = declare_dependency( |
103 |
+ link_with: libmediaart, |
104 |
+diff --git a/meson_options.txt b/meson_options.txt |
105 |
+index 3ef49ba..b8c51b1 100644 |
106 |
+--- a/meson_options.txt |
107 |
++++ b/meson_options.txt |
108 |
+@@ -1,5 +1,7 @@ |
109 |
+ option('image_library', type: 'combo', choices: ['auto', 'gdk-pixbuf', 'qt4', 'qt5'], |
110 |
+ description: 'Which image processing backend to use') |
111 |
++option('introspection', type : 'boolean', value : 'true', |
112 |
++ description : 'Enable / disable the GObject-Introspection integration') |
113 |
+ option('gtk_doc', |
114 |
+ type: 'boolean', |
115 |
+ value: 'false', |
116 |
+-- |
117 |
+2.34.1 |
118 |
+ |
119 |
|
120 |
diff --git a/media-libs/libmediaart/files/1.9.5-meson-add-vapi-option.patch b/media-libs/libmediaart/files/1.9.5-meson-add-vapi-option.patch |
121 |
new file mode 100644 |
122 |
index 000000000000..54536c3124af |
123 |
--- /dev/null |
124 |
+++ b/media-libs/libmediaart/files/1.9.5-meson-add-vapi-option.patch |
125 |
@@ -0,0 +1,48 @@ |
126 |
+https://gitlab.gnome.org/GNOME/libmediaart/-/merge_requests/15 |
127 |
+ |
128 |
+From 8cfc2a3fd5144ad116285f637506b1d39c469212 Mon Sep 17 00:00:00 2001 |
129 |
+From: Matt Turner <mattst88@×××××.com> |
130 |
+Date: Sat, 26 Mar 2022 10:25:56 -0700 |
131 |
+Subject: [PATCH] meson: add vapi option |
132 |
+ |
133 |
+--- |
134 |
+ libmediaart/meson.build | 10 ++++++---- |
135 |
+ meson_options.txt | 1 + |
136 |
+ 2 files changed, 7 insertions(+), 4 deletions(-) |
137 |
+ |
138 |
+diff --git a/libmediaart/meson.build b/libmediaart/meson.build |
139 |
+index 2f44e63..74aa4df 100644 |
140 |
+--- a/libmediaart/meson.build |
141 |
++++ b/libmediaart/meson.build |
142 |
+@@ -60,10 +60,12 @@ if get_option('introspection') |
143 |
+ install: true |
144 |
+ ) |
145 |
+ |
146 |
+- libmediaart_vapi = gnome.generate_vapi('libmediaart-' + libmediaart_api_version, |
147 |
+- sources: libmediaart_gir_and_typelib[0], |
148 |
+- packages: 'gio-2.0', |
149 |
+- install: true) |
150 |
++ if get_option('vapi') |
151 |
++ libmediaart_vapi = gnome.generate_vapi('libmediaart-' + libmediaart_api_version, |
152 |
++ sources: libmediaart_gir_and_typelib[0], |
153 |
++ packages: 'gio-2.0', |
154 |
++ install: true) |
155 |
++ endif |
156 |
+ endif |
157 |
+ |
158 |
+ libmediaart_dep = declare_dependency( |
159 |
+diff --git a/meson_options.txt b/meson_options.txt |
160 |
+index b8c51b1..c97c054 100644 |
161 |
+--- a/meson_options.txt |
162 |
++++ b/meson_options.txt |
163 |
+@@ -2,6 +2,7 @@ option('image_library', type: 'combo', choices: ['auto', 'gdk-pixbuf', 'qt4', 'q |
164 |
+ description: 'Which image processing backend to use') |
165 |
+ option('introspection', type : 'boolean', value : 'true', |
166 |
+ description : 'Enable / disable the GObject-Introspection integration') |
167 |
++option('vapi', type : 'boolean', value : 'true') |
168 |
+ option('gtk_doc', |
169 |
+ type: 'boolean', |
170 |
+ value: 'false', |
171 |
+-- |
172 |
+2.34.1 |
173 |
+ |
174 |
|
175 |
diff --git a/media-libs/libmediaart/libmediaart-1.9.5.ebuild b/media-libs/libmediaart/libmediaart-1.9.5.ebuild |
176 |
new file mode 100644 |
177 |
index 000000000000..babd20c20423 |
178 |
--- /dev/null |
179 |
+++ b/media-libs/libmediaart/libmediaart-1.9.5.ebuild |
180 |
@@ -0,0 +1,55 @@ |
181 |
+# Copyright 1999-2022 Gentoo Authors |
182 |
+# Distributed under the terms of the GNU General Public License v2 |
183 |
+ |
184 |
+EAPI=8 |
185 |
+ |
186 |
+inherit gnome2 meson vala |
187 |
+ |
188 |
+DESCRIPTION="Manages, extracts and handles media art caches" |
189 |
+HOMEPAGE="https://gitlab.gnome.org/GNOME/libmediaart" |
190 |
+ |
191 |
+LICENSE="LGPL-2.1+" |
192 |
+SLOT="2.0" |
193 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
194 |
+IUSE="gtk gtk-doc +introspection qt5 vala" |
195 |
+REQUIRED_USE=" |
196 |
+ ?? ( gtk qt5 ) |
197 |
+ vala? ( introspection ) |
198 |
+" |
199 |
+ |
200 |
+RDEPEND=" |
201 |
+ >=dev-libs/glib-2.38.0:2 |
202 |
+ gtk? ( >=x11-libs/gdk-pixbuf-2.12:2 ) |
203 |
+ introspection? ( >=dev-libs/gobject-introspection-1.30:= ) |
204 |
+ qt5? ( dev-qt/qtgui:5 ) |
205 |
+" |
206 |
+DEPEND="${RDEPEND} |
207 |
+ dev-libs/gobject-introspection-common |
208 |
+ dev-util/gtk-doc |
209 |
+ virtual/pkgconfig |
210 |
+ vala? ( $(vala_depend) ) |
211 |
+" |
212 |
+ |
213 |
+PATCHES=( |
214 |
+ "${FILESDIR}"/${PV}-meson-add-introspection-option.patch |
215 |
+ "${FILESDIR}"/${PV}-meson-add-vapi-option.patch |
216 |
+) |
217 |
+ |
218 |
+src_prepare() { |
219 |
+ default |
220 |
+ use vala && vala_setup |
221 |
+} |
222 |
+ |
223 |
+src_configure() { |
224 |
+ local image_library |
225 |
+ use gtk && image_library=gdk-pixbuf |
226 |
+ use qt5 && image_library=qt5 |
227 |
+ |
228 |
+ local emesonargs=( |
229 |
+ -Dimage_library=${image_library} |
230 |
+ $(meson_use introspection) |
231 |
+ $(meson_use vala vapi) |
232 |
+ $(meson_use gtk-doc gtk_doc) |
233 |
+ ) |
234 |
+ meson_src_configure |
235 |
+} |