diff --git a/net-im/poezio/Manifest b/net-im/poezio/Manifest index 31beb57cfb2c7..33c79ae63b32b 100644 --- a/net-im/poezio/Manifest +++ b/net-im/poezio/Manifest @@ -1 +1,2 @@ DIST poezio-0.15.1.tar.gz 3406541 BLAKE2B ecff8f168fe29814e30769cea8bda083d5b46571b72d4d8bf797a801f8b76ec02fe84336c56842e901b6b97e29885bfff3a4359f057587bbd83ce4a82e4b0ec4 SHA512 6baff764fe5775108f3a0657f044ff86ddac6c9f22b64382c8dbdd7a273baed5084fc4d76e236f0419deeba5d50198c860ce1830ceb8b61fe4b5e918f7180516 +DIST poezio-0.17.tar.gz 3390556 BLAKE2B a4107aecd9761e9b9a315124e85f3672af2889679e9698180370bc76c0bdf2a0e47a3da7ec1edf89593b2f97213461567aad38bc595c2562836036614f47fa11 SHA512 99167a038ecabb5f82169f8778dd1bf213462876a0613505c00f42efaf220b94ebd590d0a11b83b6c9f531958bcb703e47bbbd2e893dc4f01edb08e7938f3d28 diff --git a/net-im/poezio/files/poezio-0.17-Do-not-install-man-pages-and-files-in-usr-share.patch b/net-im/poezio/files/poezio-0.17-Do-not-install-man-pages-and-files-in-usr-share.patch new file mode 100644 index 0000000000000..faf10d69044f6 --- /dev/null +++ b/net-im/poezio/files/poezio-0.17-Do-not-install-man-pages-and-files-in-usr-share.patch @@ -0,0 +1,26 @@ +From 7b889591550f57485cabb6961571fd3c279bd1ca Mon Sep 17 00:00:00 2001 +From: Florian Schmaus +Date: Mon, 12 Jul 2021 15:08:30 +0200 +Subject: [PATCH] Do not install man pages and files in /usr/share/poezio + +Signed-off-by: Florian Schmaus +--- a/setup.py ++++ b/setup.py +@@ -121,14 +121,9 @@ setup( + scripts=['scripts/poezio_logs'], + entry_points={'console_scripts': ['poezio = poezio.__main__:run']}, + data_files=([ +- ('share/man/man1/', ['data/poezio.1', 'data/poezio_logs.1']), +- ('share/poezio/', ['README.rst', 'COPYING', 'CHANGELOG']), + ('share/applications/', ['data/io.poez.Poezio.desktop']), + ('share/metainfo/', ['data/io.poez.Poezio.appdata.xml']) + ] +- + find_doc('share/doc/poezio/source', 'source') +- # Requires sphinx-build doc/source doc/build/html +- + find_doc('share/doc/poezio/html', 'build/html') + + sphinx_files_found + ), + cmdclass=cmdclass, +-- +2.53.0 + diff --git a/net-im/poezio/poezio-0.17.ebuild b/net-im/poezio/poezio-0.17.ebuild new file mode 100644 index 0000000000000..b2f44cc49e81a --- /dev/null +++ b/net-im/poezio/poezio-0.17.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..14} ) + +inherit distutils-r1 optfeature xdg + +DESCRIPTION="Console XMPP client that looks like most famous IRC clients" +HOMEPAGE="https://poez.io/ https://codeberg.org/poezio/poezio" +LICENSE="GPL-3+" +SLOT="0" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://codeberg.org/poezio/poezio.git" + inherit git-r3 + + # We build the html documentation using sphinx. + BDEPEND="dev-python/sphinx" +else + inherit pypi + KEYWORDS="~amd64" +fi + +RDEPEND=" + >=dev-python/slixmpp-1.14.0[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}/poezio-0.17-Do-not-install-man-pages-and-files-in-usr-share.patch" +) + +distutils_enable_tests pytest + +src_prepare() { + default + # Delete unmaintained plugin which requires an excessive external dep + rm plugins/mpd_client.py || die +} + +src_compile() { + distutils-r1_src_compile + + if [[ -n "${EGIT_REPO_URI}" ]]; then + emake -C doc html + fi +} + +# Poezio provides its own Python C extension 'poopt', which needs to be +# correctly discovered to run the tests. See +# https://projects.gentoo.org/python/guide/test.html#importerrors-for-c-extensions +python_test() { + cd "${T}" || die + epytest "${S}"/test +} + +src_install() { + distutils-r1_src_install + + doman data/poezio.1 data/poezio_logs.1 + + if [[ -n "${EGIT_REPO_URI}" ]]; then + docinto html + dodoc -r doc/build/html/* + fi +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "screen autoaway support" dev-python/pyinotify +}