diff options
author | Ben Kohler <bkohler@gentoo.org> | 2023-05-19 06:45:04 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2023-05-19 06:46:05 -0500 |
commit | 247b26c8b5510e7720b3867383cc42ee4c70a6e8 (patch) | |
tree | e9bf2155b086ba4294e1a82d2e4d9dce3baf2024 /net-im | |
parent | sci-mathematics/wxmaxima: bump to 23.05.0 (diff) | |
download | gentoo-247b26c8b5510e7720b3867383cc42ee4c70a6e8.tar.gz gentoo-247b26c8b5510e7720b3867383cc42ee4c70a6e8.tar.bz2 gentoo-247b26c8b5510e7720b3867383cc42ee4c70a6e8.zip |
net-im/gajim: install missing icons & xdg files
Since moving to PEP517 build, an extra call is needed to build & install
these "metadata" files.
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/gajim/gajim-1.7.3-r1.ebuild | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/net-im/gajim/gajim-1.7.3-r1.ebuild b/net-im/gajim/gajim-1.7.3-r1.ebuild new file mode 100644 index 000000000000..9d3183fcf836 --- /dev/null +++ b/net-im/gajim/gajim-1.7.3-r1.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_REQ_USE="sqlite,xml(+)" +DISTUTILS_USE_PEP517=standalone +DISTUTILS_SINGLE_IMPL=1 + +inherit distutils-r1 xdg-utils + +DESCRIPTION="Jabber client written in PyGTK" +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 ~riscv ~x86" +IUSE="+crypt geolocation jingle omemo remote rst +spell upnp +webp" + +COMMON_DEPEND=" + dev-libs/gobject-introspection[cairo(+)] + >=x11-libs/gtk+-3.22:3[introspection] + x11-libs/gtksourceview:4[introspection]" +DEPEND="${COMMON_DEPEND} + app-arch/unzip + virtual/pkgconfig + >=sys-devel/gettext-0.17-r1" +RDEPEND="${COMMON_DEPEND} + $(python_gen_cond_dep ' + dev-python/idna[${PYTHON_USEDEP}] + >=dev-python/nbxmpp-4.2.2[${PYTHON_USEDEP}] + <dev-python/nbxmpp-5.0.0[${PYTHON_USEDEP}] + dev-python/precis-i18n[${PYTHON_USEDEP}] + dev-python/pyasn1[${PYTHON_USEDEP}] + dev-python/pycairo[${PYTHON_USEDEP}] + dev-python/pycurl[${PYTHON_USEDEP}] + dev-python/pygobject:3[cairo,${PYTHON_USEDEP}] + x11-libs/libXScrnSaver + app-crypt/libsecret[crypt,introspection] + dev-python/keyring[${PYTHON_USEDEP}] + >=dev-python/secretstorage-3.1.1[${PYTHON_USEDEP}] + dev-python/css-parser[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + net-libs/libsoup:3.0[introspection] + media-libs/gsound[introspection] + dev-python/pillow[${PYTHON_USEDEP}] + crypt? ( + dev-python/pycryptodome[${PYTHON_USEDEP}] + >=dev-python/python-gnupg-0.4.0[${PYTHON_USEDEP}] ) + geolocation? ( app-misc/geoclue[introspection] ) + jingle? ( + net-libs/farstream:0.2[introspection] + media-libs/gstreamer:1.0[introspection] + media-libs/gst-plugins-base:1.0[introspection] + media-libs/gst-plugins-ugly:1.0 + media-plugins/gst-plugins-gtk + ) + omemo? ( + dev-python/jaraco-classes[${PYTHON_USEDEP}] + dev-python/python-axolotl[${PYTHON_USEDEP}] + dev-python/qrcode[${PYTHON_USEDEP}] + dev-python/cryptography[${PYTHON_USEDEP}] + ) + remote? ( + >=dev-python/dbus-python-1.2.0[${PYTHON_USEDEP}] + sys-apps/dbus[X] + ) + rst? ( dev-python/docutils[${PYTHON_USEDEP}] ) + spell? ( + app-text/gspell[introspection] + app-text/hunspell + ) + upnp? ( net-libs/gupnp-igd:0[introspection] ) + ')" + +python_compile() { + distutils-r1_python_compile + ./pep517build/build_metadata.py -o dist/metadata +} + +python_install() { + distutils-r1_python_install + ./pep517build/install_metadata.py dist/metadata --prefix="${D}/usr" + + rm "${D}"/usr/share/man/man1/*.gz + doman data/*.1 +} + +pkg_postinst() { + xdg_icon_cache_update + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_desktop_database_update +} + +# Tests are unfortunately regularly broken +RESTRICT="test" |