commit: acc54f37368170924ae765ae269bd6fbe8d2b849 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon Aug 4 07:18:43 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Aug 4 07:18:43 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acc54f37
net-misc/tuba: Bump to 0.10.0 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> net-misc/tuba/Manifest | 1 + net-misc/tuba/files/tuba-0.10.0-gexiv2-dep.patch | 38 ++++++++++ net-misc/tuba/tuba-0.10.0.ebuild | 97 ++++++++++++++++++++++++ 3 files changed, 136 insertions(+) diff --git a/net-misc/tuba/Manifest b/net-misc/tuba/Manifest index 38b64ca46337..af247a489a01 100644 --- a/net-misc/tuba/Manifest +++ b/net-misc/tuba/Manifest @@ -1 +1,2 @@ +DIST Tuba-0.10.0.gh.tar.gz 2843841 BLAKE2B a307eeb8f1145119a71e7b300a028fd6540db0076c22cd37c030e8fb7dc1accec8ec1595fe02087358df3534b9aba1784e63a00f1feea7101a5d0d85fc8b0353 SHA512 8d3a265e45d076cb8af81d40170d38bbcb9fbe2904da9fb9f377048a5412e345fe377a9ca9cb85bd5d91c5e9ba8006ee2568137a268ae1ec08086a6b69f9d936 DIST Tuba-0.9.2.gh.tar.gz 2190160 BLAKE2B f4d0f6c1bca6da011fb19a42a34fc3773e5f2693075a9ac7d5d30d78701371e42c326482baa548688431022cf09661e78bac71da42c7e4b99652c57fa1eb5ee8 SHA512 2243a796fd5fb6fb8ce16640d0d5d49e64ad01736413408ca9825ef0ded3ccc2caa5daf7ce45685f0cfbb85100d34703ede4a59b235d371232f2c03a7a126ae1 diff --git a/net-misc/tuba/files/tuba-0.10.0-gexiv2-dep.patch b/net-misc/tuba/files/tuba-0.10.0-gexiv2-dep.patch new file mode 100644 index 000000000000..715ff085b8d5 --- /dev/null +++ b/net-misc/tuba/files/tuba-0.10.0-gexiv2-dep.patch @@ -0,0 +1,38 @@ +From a7da2b1f63d792e40dc52e984cd97f379152b5d4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <[email protected]> +Date: Mon, 4 Aug 2025 09:12:58 +0200 +Subject: [PATCH] fix(meson): fix `gexiv2-0.16` lookup to respect `gexiv2` + option +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Pass both `gexiv2-0.16` and `gexiv2` packages to a single `dependency()` +lookup, in order to simplify the logic and fix respecting `gexiv2` +option. This is supported since meson 0.60.0. The minimum version +can be left as `>=0.14`, since `meson-0.16` will always be newer than +`>=0.15`. Thanks to Eli Schwartz for the suggestion. + +Fixes #1522 + +Signed-off-by: Michał Górny <[email protected]> +--- + meson.build | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/meson.build b/meson.build +index 8887b3e8..4a0dfe94 100644 +--- a/meson.build ++++ b/meson.build +@@ -82,10 +82,7 @@ clapper_gtk_dep = dependency('clapper-gtk-0.0', required: get_option('clapper')) + gstreamer_dep = dependency('gstreamer-1.0', required: get_option('gstreamer')) + webkit_dep = dependency('webkitgtk-6.0', required: get_option('in-app-browser')) + +-gexiv2_dep = dependency('gexiv2-0.16', version: '>=0.15', required: false) +-if not gexiv2_dep.found () +- gexiv2_dep = dependency('gexiv2', version: '>=0.14', required: get_option('gexiv2')) +-endif ++gexiv2_dep = dependency('gexiv2-0.16', 'gexiv2', version: '>=0.14', required: get_option('gexiv2')) + + if not libwebp_dep.found () + warning('WebP support might be missing, please install webp-pixbuf-loader.') diff --git a/net-misc/tuba/tuba-0.10.0.ebuild b/net-misc/tuba/tuba-0.10.0.ebuild new file mode 100644 index 000000000000..e0aa0670b4a4 --- /dev/null +++ b/net-misc/tuba/tuba-0.10.0.ebuild @@ -0,0 +1,97 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnome2-utils meson optfeature vala + +MY_P=${P^} +DESCRIPTION="Browse the Fediverse (GTK client)" +HOMEPAGE=" + https://tuba.geopjr.dev/ + https://github.com/GeopJr/Tuba/ +" +SRC_URI=" + https://github.com/GeopJr/Tuba/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-3 CC-BY-SA-4.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="exif gstreamer spell webkit" + +DEPEND=" + app-crypt/libsecret[introspection,vala] + >=dev-libs/glib-2.80.0:2 + dev-libs/icu:= + >=dev-libs/json-glib-1.4.4[introspection] + >=dev-libs/libgee-0.8.5:0.8[introspection] + dev-libs/libxml2:= + >=gui-libs/gtk-4.18:4[introspection] + >=gui-libs/libadwaita-1.7:1[introspection,vala] + >=gui-libs/gtksourceview-5.6.0:5[introspection,vala] + net-libs/libsoup:3.0[introspection,vala] + exif? ( + >=media-libs/gexiv2-0.14:=[introspection,vala] + ) + gstreamer? ( + >=gui-libs/gtk-4.13.4:4[gstreamer,introspection] + media-libs/gstreamer[introspection] + ) + spell? ( + app-text/libspelling[vala] + ) + webkit? ( + net-libs/webkit-gtk:6 + ) +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + $(vala_depend) + sys-devel/gettext + virtual/pkgconfig +" + +PATCHES=( + # https://github.com/GeopJr/Tuba/pull/1523 + "${FILESDIR}/${P}-gexiv2-dep.patch" +) + +src_configure() { + local emesonargs=( + # disable calling updaters (see pkg_post*) + -Ddistro=true + $(meson_feature spell spelling) + # not packaged + -Dclapper=disabled + $(meson_feature gstreamer) + $(meson_feature webkit in-app-browser) + $(meson_feature exif gexiv2) + ) + + vala_setup + meson_src_configure +} + +src_install() { + meson_src_install + dosym dev.geopjr.Tuba /usr/bin/tuba +} + +pkg_postinst() { + optfeature "WebP image support" gui-libs/gdk-pixbuf-loader-webp + + gnome2_schemas_update + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + gnome2_schemas_update + xdg_desktop_database_update + xdg_icon_cache_update +}
