net-im/gajim: add 2.4.2

Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/45387
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alfred Wingate
2026-01-15 17:54:24 +02:00
committed by Sam James
parent 1a05aa4d4d
commit a2e664b999
2 changed files with 116 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
DIST gajim-2.2.0.tar.gz 4798143 BLAKE2B 3799bacfd6a94d8313bf02c6f48d0e348aeb89147c730c8c5ef04d9cf1d8ff289cabd576cea55be755410080416706776c1af224fe1cd2a1fa63f4bbd887026c SHA512 b61682a8dde3beaf03d5be16091e54b2aada681493d4f4ad4a83bade37d3762d12663a0b918abbc07136c32925ba168780caaf9dfe9080872779026755286b45
DIST gajim-2.4.0.tar.gz 4861175 BLAKE2B 1cc6c1c439d193b548e2903273edea84a51c0ff3d9c9a2d9203ea2df374e78b827a597e070f3215b70c33a655ba94d6c8fc22e270d293510e126bc1bf49b5818 SHA512 c527492b1707d4397dbbadb406f94634936b9ac15c3faef64290e6cdb56450cf96ce196411f7d0b920067ee5e656515da747ee8e6b39e346db068d1e3d9a36e6
DIST gajim-2.4.1.tar.gz 4948450 BLAKE2B f644b85a03e7751d08993a5bcca903a683b00ad4774b892ae6f8fa1b9460d9630a681c53ba43dc1a0492ee865510d908bf5cee6596e387e8c139d95e0e66bbd8 SHA512 bd175b1512678ded476e6cbc1c320723c3f8a97372e0d51573be9fd2d1168059f0dcbd0f74b0544b42c4ede77310ab253e7dafb32f6f219edcfc23ec24759d76
DIST gajim-2.4.2.tar.gz 4995359 BLAKE2B 3dd767967bc53cf4bf15fb35076706a19f0194f1d33f08c5e561a49e2303029cf6489baf0ecebe7e3639a4ab44808da6ee1705443c468935ed3b1dc820a0f4cb SHA512 e58d881c04993ca845ac2d049a7e63b3208ba04044ecdf7b3a7b7927946ba10e2974477d43d86c6ffc1becca1fb7a08531679280f088cc24c316ab337324ab85

View File

@@ -0,0 +1,115 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
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 ~arm64 ~loong ~riscv ~x86"
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
# 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-3.4.8[${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-8.0.0[${PYTHON_USEDEP}]
>=dev-python/nbxmpp-7.0.0[${PYTHON_USEDEP}]
<dev-python/omemo-dr-2.0.0[${PYTHON_USEDEP}]
>=dev-python/omemo-dr-1.2.0[${PYTHON_USEDEP}]
dev-python/packaging[${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]
net-libs/libsoup:3.0[introspection]
x11-libs/gdk-pixbuf:2[introspection]
>=x11-libs/pango-1.50.0[introspection]
voice? (
media-libs/gstreamer:1.0[introspection]
media-libs/gst-plugins-bad
media-libs/gst-plugins-base
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 "notifcation sound support" media-libs/gsound[introspection]
xdg_pkg_postinst
}