commit: 7e5b914d97932a0b9b89088afba60fbc50cb2da9 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Dec 10 19:03:54 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Dec 10 19:08:39 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e5b914d
net-misc/tuba: New Fediverse client, v0.5.0 Thanks to Laurent Morretton and Konstantin Tutsch for working on it in ::guru! Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> net-misc/tuba/Manifest | 1 + net-misc/tuba/metadata.xml | 11 +++++++ net-misc/tuba/tuba-0.5.0.ebuild | 72 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) diff --git a/net-misc/tuba/Manifest b/net-misc/tuba/Manifest new file mode 100644 index 000000000000..d10dd0dbb41a --- /dev/null +++ b/net-misc/tuba/Manifest @@ -0,0 +1 @@ +DIST Tuba-0.5.0.gh.tar.gz 1022753 BLAKE2B d17fed8b93d217a26ad38e3a0a1e576e34b309e80e445dab7054c999eadd78ed579a81af3971ecbe3cdb5f29ea7fd0ae60c2fbcd65b5591a375ad2e38c476d87 SHA512 220cd905d82711dd915bb8dfebb9ca8d840cca3ca707cea0bc1b0b78c27dc2fbf37e779ebfeb4aff123bcda4d2b59786169f8645585868498cca2bb7a87904f1 diff --git a/net-misc/tuba/metadata.xml b/net-misc/tuba/metadata.xml new file mode 100644 index 000000000000..a577af22922b --- /dev/null +++ b/net-misc/tuba/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Michał Górny</name> + </maintainer> + <upstream> + <remote-id type="github">GeopJR/tuba</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-misc/tuba/tuba-0.5.0.ebuild b/net-misc/tuba/tuba-0.5.0.ebuild new file mode 100644 index 000000000000..d74b834ad83f --- /dev/null +++ b/net-misc/tuba/tuba-0.5.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 2023 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" + +# TODO: optional deps on gspell-4 & libspelling-1 +DEPEND=" + app-crypt/libsecret[introspection] + >=dev-libs/glib-2.76.0:2 + >=dev-libs/json-glib-1.4.4[introspection] + >=dev-libs/libgee-0.8.5:0.8[introspection] + dev-libs/libxml2 + >=gui-libs/gtk-4.11.3:4[gstreamer,introspection] + >=gui-libs/libadwaita-1.4:1[introspection,vala] + >=gui-libs/gtksourceview-5.6.0:5[introspection,vala] + net-libs/libsoup:3.0[introspection] +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + $(vala_depend) + sys-devel/gettext + virtual/pkgconfig +" + +src_configure() { + local emesonargs=( + # disable calling updaters (see pkg_post*) + -Ddistro=true + ) + + 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 +}
