From 61d228ef7fcecb464cb70c30f73dd0a49d7fdeb2 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Fri, 28 Aug 2026 16:18:12 +0300 Subject: [PATCH] net-im/gajim: add 2.6.0 Bug: https://bugs.gentoo.org/981118 Signed-off-by: Alfred Wingate Part-of: https://codeberg.org/gentoo/gentoo/pulls/1760 Signed-off-by: Pacho Ramos --- net-im/gajim/Manifest | 1 + net-im/gajim/gajim-2.6.0.ebuild | 119 ++++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 net-im/gajim/gajim-2.6.0.ebuild diff --git a/net-im/gajim/Manifest b/net-im/gajim/Manifest index e378f8b79bffc..5e030933fc74e 100644 --- a/net-im/gajim/Manifest +++ b/net-im/gajim/Manifest @@ -1,3 +1,4 @@ DIST gajim-2.2.0.tar.gz 4798143 BLAKE2B 3799bacfd6a94d8313bf02c6f48d0e348aeb89147c730c8c5ef04d9cf1d8ff289cabd576cea55be755410080416706776c1af224fe1cd2a1fa63f4bbd887026c SHA512 b61682a8dde3beaf03d5be16091e54b2aada681493d4f4ad4a83bade37d3762d12663a0b918abbc07136c32925ba168780caaf9dfe9080872779026755286b45 DIST gajim-2.4.6.tar.gz 5105111 BLAKE2B e105867689b615ac771a39600e279d8e11932ef948e32914bb314147987cf99ba612226d69cd546ff92c131046122ac09c14160f05aa4f67771b0be538720190 SHA512 36967064f90bbddd1e84e93129d13eef6f5ca47a1e8417ca19feb5a411b860949c8acb8e8c9db558ee662a379a97eb1026a3d74ec1e5f5c8d4114a5fa9409ae3 DIST gajim-2.5.0.tar.gz 5192619 BLAKE2B 070496e60658e592b9d350db7bb269ea3004e6cd87d79596138e3c0cccf384329e451abcd73bdcf075bfb0c31be43716edffd39181a919174705bdbf5a934848 SHA512 260be600a302a7adb5c9d537017a2d1c6c52fed6194532a4e1a34e9a0d53f15303092cb60147b00482de78a658539675c64df4ce46e640ca2694d9760d51bbcd +DIST gajim-2.6.0.tar.gz 5301805 BLAKE2B 4030db96b5e9c63347ea8877d823ef94171bf9a0d8cefde5216efc386c00bc4b58e397bcf6a5ec0fa7124d4fa94997ded157683dc475a697c455a3c22d496de3 SHA512 ea0295a93cdb2e3838d9519ec3c235a2d7a11669952c3c7db4e36a80a5defb015d5eed9df419e01e5d7e8973dec793e36328afe3c7bab508c0d039d80ec66f97 diff --git a/net-im/gajim/gajim-2.6.0.ebuild b/net-im/gajim/gajim-2.6.0.ebuild new file mode 100644 index 0000000000000..09e6580eadca3 --- /dev/null +++ b/net-im/gajim/gajim-2.6.0.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{12..15} ) +PYTHON_REQ_USE="sqlite,xml(+)" +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 optfeature xdg + +DESCRIPTION="GTK XMPP Client" +HOMEPAGE="https://gajim.org/" +SRC_URI="https://gajim.org/downloads/$(ver_cut 1-2)/${P/_p/-}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" + +KEYWORDS="~amd64" +IUSE="voice" + +# Same order as in upstream pyproject.toml please for the python dependencies + +# For introspection dependencies consult upstream documentation and any gi.require_version in the code + +# media-plugins/gst-plugins-libpng, bug #981118 + +# USE="voice" handles all video and audio. +# https://dev.gajim.org/gajim/gajim#rich-previews-images-and-voice-messages + +# xdg-desktop-portal: apparent runtime requirement +# https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2963fc1a23747bbb60a3785bf06dd566e6d8be9 + +# httpx[http2,socks]: h2, socksio +# gst-plugins-rs (uses gtk4paintablesink): media-plugins/gst-plugin-gtk4 +RDEPEND=" + >=dev-python/cryptography-43.0.0[${PYTHON_USEDEP}] + dev-python/css-parser[${PYTHON_USEDEP}] + >=dev-python/emoji-2.6.0[${PYTHON_USEDEP}] + dev-python/h2[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}] + dev-python/keyring[${PYTHON_USEDEP}] + =dev-python/nbxmpp-7.4.0[${PYTHON_USEDEP}] + =dev-python/omemo-dr-1.2.0[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/pysequoia-0.1.33[${PYTHON_USEDEP}] + >=dev-python/pillow-9.1.0[${PYTHON_USEDEP}] + >=dev-python/precis-i18n-1.0.0[${PYTHON_USEDEP}] + >=dev-python/pycairo-1.16.0[${PYTHON_USEDEP}] + >=dev-python/pygobject-3.53.0:3[cairo,${PYTHON_USEDEP}] + >=dev-python/qrcode-7.3.1[${PYTHON_USEDEP}] + >=dev-python/sqlalchemy-2.0.0[${PYTHON_USEDEP}] + dev-python/socksio[${PYTHON_USEDEP}] + dev-python/truststore[${PYTHON_USEDEP}] + + >=dev-libs/glib-2.80[introspection(+)] + >=gui-libs/gtk-4.17.5:4[introspection] + gui-libs/gtksourceview:5[introspection] + >=gui-libs/libadwaita-1.7.0[introspection] + media-libs/graphene[introspection] + media-libs/gstreamer:1.0[introspection] + media-libs/gst-plugins-base + media-plugins/gst-plugins-libpng + net-libs/libsoup:3.0[introspection] + x11-libs/gdk-pixbuf:2[introspection] + >=x11-libs/pango-1.50.0[introspection] + + voice? ( + media-libs/gst-plugins-bad + media-libs/gst-plugins-good + media-libs/gst-plugins-ugly + media-plugins/gst-plugins-gtk + media-plugins/gst-plugins-libav + media-plugins/gst-plugin-gtk4 + net-libs/farstream:0.2[introspection] + ) + + sys-apps/xdg-desktop-portal +" +BDEPEND=" + >=sys-devel/gettext-0.17-r1 +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +python_compile_all() { + # Generates manpages, app icons, translation and metadata + ./make.py build --dist unix || die +} + +python_install_all() { + # Installs manpages, app icons, translation and metadata + ./make.py install --dist unix --prefix="${ED}/usr" || die + + # Undo compression in ./make.py install + gzip -d "${ED}"/usr/share/man/man1/*.gz || die + + distutils-r1_python_install_all +} + +pkg_postinst() { + ewarn "The chat database format changes when upgrading from 1.8.x to 1.9.x." + ewarn "The first time the user starts Gajim, an automatic migration is performed." + + # https://dev.gajim.org/gajim/gajim/-/tree/master?ref_type=heads#optional-runtime-requirements + #optfeature "Sentry error reporting to dev.gajim.org" dev-python/sentry-sdk + optfeature "keyring support" app-crypt/libsecret[introspection] + optfeature "spellchecking support" "app-text/hunspell app-text/libspelling:1" + # https://dev.gajim.org/gajim/gajim/-/issues/11578 + #optfeature "better NAT traversing" net-libs/gupnp:1.6[introspection] + optfeature "network lose detection" net-misc/networkmanager[introspection] + optfeature "sharing your location" app-misc/geoclue:2.0[introspection] + optfeature "accurate version info about the used operating system" dev-python/distro + + xdg_pkg_postinst +}