summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2022-03-26 10:32:37 -0700
committerMatt Turner <mattst88@gentoo.org>2022-03-26 11:01:47 -0700
commit7d158a55a75fe06755bea80abc5332d63744b5e9 (patch)
tree412f49c0145b17622359fbe62e06005144f972cc /media-libs/libmediaart
parentgnome-base/gdm: Version bump to 42.0 (diff)
downloadgentoo-7d158a55a75fe06755bea80abc5332d63744b5e9.tar.gz
gentoo-7d158a55a75fe06755bea80abc5332d63744b5e9.tar.bz2
gentoo-7d158a55a75fe06755bea80abc5332d63744b5e9.zip
media-libs/libmediaart: Version bump to 1.9.5
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'media-libs/libmediaart')
-rw-r--r--media-libs/libmediaart/Manifest1
-rw-r--r--media-libs/libmediaart/files/1.9.5-meson-add-introspection-option.patch87
-rw-r--r--media-libs/libmediaart/files/1.9.5-meson-add-vapi-option.patch48
-rw-r--r--media-libs/libmediaart/libmediaart-1.9.5.ebuild55
4 files changed, 191 insertions, 0 deletions
diff --git a/media-libs/libmediaart/Manifest b/media-libs/libmediaart/Manifest
index 40e7afd392dd..4369fd4c6276 100644
--- a/media-libs/libmediaart/Manifest
+++ b/media-libs/libmediaart/Manifest
@@ -1 +1,2 @@
DIST libmediaart-1.9.4.tar.xz 5827928 BLAKE2B defb53867341e3f0f794b3e167532f3ea232028b3ccc3968b13456eb74cacf8fab97e462914debaa0a7f08a2dcb98dcc0e77dec55319291388050a55b6a70a37 SHA512 e2526c22cb656c821da626c43c09d72afded1dfc369e77baea3de17dd6d3bd3b829cf3160e386459f55b9580cbeeb1d621c85876cb62739bc8d4f42429bdce1c
+DIST libmediaart-1.9.5.tar.xz 5549620 BLAKE2B 6656baeb52aa0f4c355354dab3eb5499af957a2d9c5530e46874127a71a55b744b0370ec25b5e187ea9b615acb195f5b817196d59e668c34f2e3c8c4f8060598 SHA512 b1d54f4b480cb5cf63a2231b082635268ac1ab708ba829a3e5ccfdfb530e9d463c5ac505cd1dc44643f23f787c4df2ef287a7e68d56e93a05b97be450c7799b6
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
new file mode 100644
index 000000000000..b61f2ed9bf81
--- /dev/null
+++ b/media-libs/libmediaart/files/1.9.5-meson-add-introspection-option.patch
@@ -0,0 +1,87 @@
+https://gitlab.gnome.org/GNOME/libmediaart/-/merge_requests/14
+
+From 0de77d9eccb6ed78416339a47113f3dc4fe4c453 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Tue, 5 Oct 2021 23:35:26 +0200
+Subject: [PATCH] meson: add introspection option
+
+Add introspection option
+
+Fix #3
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ libmediaart/meson.build | 42 +++++++++++++++++++++--------------------
+ meson_options.txt | 2 ++
+ 2 files changed, 24 insertions(+), 20 deletions(-)
+
+diff --git a/libmediaart/meson.build b/libmediaart/meson.build
+index 56e00ab..2f44e63 100644
+--- a/libmediaart/meson.build
++++ b/libmediaart/meson.build
+@@ -41,28 +41,30 @@ libmediaart = shared_library(
+ install: true,
+ )
+
+-gir_args = [
+- '--quiet',
+- '-DLIBMEDIAART_COMPILATION',
+-]
++if get_option('introspection')
++ gir_args = [
++ '--quiet',
++ '-DLIBMEDIAART_COMPILATION',
++ ]
+
+-libmediaart_gir_and_typelib = gnome.generate_gir(libmediaart,
+- sources: libmediaart_sources + libmediaart_introspection_sources + libmediaart_public_headers,
+- nsversion: libmediaart_api_version,
+- namespace: 'MediaArt',
+- identifier_prefix: 'MediaArt',
+- symbol_prefix: 'media_art',
+- includes: ['Gio-2.0', 'GObject-2.0'],
+- header: 'libmediaart/mediaart.h',
+- export_packages: 'libmediaart-' + libmediaart_api_version,
+- extra_args: gir_args,
+- install: true
+-)
++ libmediaart_gir_and_typelib = gnome.generate_gir(libmediaart,
++ sources: libmediaart_sources + libmediaart_introspection_sources + libmediaart_public_headers,
++ nsversion: libmediaart_api_version,
++ namespace: 'MediaArt',
++ identifier_prefix: 'MediaArt',
++ symbol_prefix: 'media_art',
++ includes: ['Gio-2.0', 'GObject-2.0'],
++ header: 'libmediaart/mediaart.h',
++ export_packages: 'libmediaart-' + libmediaart_api_version,
++ extra_args: gir_args,
++ install: true
++ )
+
+-libmediaart_vapi = gnome.generate_vapi('libmediaart-' + libmediaart_api_version,
+- sources: libmediaart_gir_and_typelib[0],
+- packages: 'gio-2.0',
+- install: true)
++ libmediaart_vapi = gnome.generate_vapi('libmediaart-' + libmediaart_api_version,
++ sources: libmediaart_gir_and_typelib[0],
++ packages: 'gio-2.0',
++ install: true)
++endif
+
+ libmediaart_dep = declare_dependency(
+ link_with: libmediaart,
+diff --git a/meson_options.txt b/meson_options.txt
+index 3ef49ba..b8c51b1 100644
+--- a/meson_options.txt
++++ b/meson_options.txt
+@@ -1,5 +1,7 @@
+ option('image_library', type: 'combo', choices: ['auto', 'gdk-pixbuf', 'qt4', 'qt5'],
+ description: 'Which image processing backend to use')
++option('introspection', type : 'boolean', value : 'true',
++ description : 'Enable / disable the GObject-Introspection integration')
+ option('gtk_doc',
+ type: 'boolean',
+ value: 'false',
+--
+2.34.1
+
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
new file mode 100644
index 000000000000..54536c3124af
--- /dev/null
+++ b/media-libs/libmediaart/files/1.9.5-meson-add-vapi-option.patch
@@ -0,0 +1,48 @@
+https://gitlab.gnome.org/GNOME/libmediaart/-/merge_requests/15
+
+From 8cfc2a3fd5144ad116285f637506b1d39c469212 Mon Sep 17 00:00:00 2001
+From: Matt Turner <mattst88@gmail.com>
+Date: Sat, 26 Mar 2022 10:25:56 -0700
+Subject: [PATCH] meson: add vapi option
+
+---
+ libmediaart/meson.build | 10 ++++++----
+ meson_options.txt | 1 +
+ 2 files changed, 7 insertions(+), 4 deletions(-)
+
+diff --git a/libmediaart/meson.build b/libmediaart/meson.build
+index 2f44e63..74aa4df 100644
+--- a/libmediaart/meson.build
++++ b/libmediaart/meson.build
+@@ -60,10 +60,12 @@ if get_option('introspection')
+ install: true
+ )
+
+- libmediaart_vapi = gnome.generate_vapi('libmediaart-' + libmediaart_api_version,
+- sources: libmediaart_gir_and_typelib[0],
+- packages: 'gio-2.0',
+- install: true)
++ if get_option('vapi')
++ libmediaart_vapi = gnome.generate_vapi('libmediaart-' + libmediaart_api_version,
++ sources: libmediaart_gir_and_typelib[0],
++ packages: 'gio-2.0',
++ install: true)
++ endif
+ endif
+
+ libmediaart_dep = declare_dependency(
+diff --git a/meson_options.txt b/meson_options.txt
+index b8c51b1..c97c054 100644
+--- a/meson_options.txt
++++ b/meson_options.txt
+@@ -2,6 +2,7 @@ option('image_library', type: 'combo', choices: ['auto', 'gdk-pixbuf', 'qt4', 'q
+ description: 'Which image processing backend to use')
+ option('introspection', type : 'boolean', value : 'true',
+ description : 'Enable / disable the GObject-Introspection integration')
++option('vapi', type : 'boolean', value : 'true')
+ option('gtk_doc',
+ type: 'boolean',
+ value: 'false',
+--
+2.34.1
+
diff --git a/media-libs/libmediaart/libmediaart-1.9.5.ebuild b/media-libs/libmediaart/libmediaart-1.9.5.ebuild
new file mode 100644
index 000000000000..babd20c20423
--- /dev/null
+++ b/media-libs/libmediaart/libmediaart-1.9.5.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit gnome2 meson vala
+
+DESCRIPTION="Manages, extracts and handles media art caches"
+HOMEPAGE="https://gitlab.gnome.org/GNOME/libmediaart"
+
+LICENSE="LGPL-2.1+"
+SLOT="2.0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="gtk gtk-doc +introspection qt5 vala"
+REQUIRED_USE="
+ ?? ( gtk qt5 )
+ vala? ( introspection )
+"
+
+RDEPEND="
+ >=dev-libs/glib-2.38.0:2
+ gtk? ( >=x11-libs/gdk-pixbuf-2.12:2 )
+ introspection? ( >=dev-libs/gobject-introspection-1.30:= )
+ qt5? ( dev-qt/qtgui:5 )
+"
+DEPEND="${RDEPEND}
+ dev-libs/gobject-introspection-common
+ dev-util/gtk-doc
+ virtual/pkgconfig
+ vala? ( $(vala_depend) )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PV}-meson-add-introspection-option.patch
+ "${FILESDIR}"/${PV}-meson-add-vapi-option.patch
+)
+
+src_prepare() {
+ default
+ use vala && vala_setup
+}
+
+src_configure() {
+ local image_library
+ use gtk && image_library=gdk-pixbuf
+ use qt5 && image_library=qt5
+
+ local emesonargs=(
+ -Dimage_library=${image_library}
+ $(meson_use introspection)
+ $(meson_use vala vapi)
+ $(meson_use gtk-doc gtk_doc)
+ )
+ meson_src_configure
+}