commit: cd0b85e11e877165e8d3405fd9258ca46f1e0353 Author: Quincy Fleming <quincyf467 <AT> protonmail <DOT> com> AuthorDate: Wed Mar 19 01:38:57 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Sun Mar 23 18:43:18 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd0b85e1
net-irc/limnoria: add 20241222 Bug: https://bugs.gentoo.org/910003 Signed-off-by: Quincy Fleming <quincyf467 <AT> protonmail.com> Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> net-irc/limnoria/Manifest | 1 + net-irc/limnoria/limnoria-20241222.ebuild | 69 +++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/net-irc/limnoria/Manifest b/net-irc/limnoria/Manifest index 2ead8f1cfcc1..f06c12fb8ee5 100644 --- a/net-irc/limnoria/Manifest +++ b/net-irc/limnoria/Manifest @@ -1 +1,2 @@ DIST limnoria-20221116.tar.gz 1125332 BLAKE2B b5007cb832ea98f41ad9513554177eab2cf7948b363c4cfad538a7e4c4f91390625bbf187e046118551da2fbe8272968acb1280b8d4ea19ffe2ac67b2b83af92 SHA512 3c26a36b7094d2a36397d7d0cfbb9b9503b6beaec123c6022146a5c241e5cc2ff70c56ad4064269b315d2f5c07e9e09853f27b251b35d3efc3065c4831742e2c +DIST limnoria-20241222.tar.gz 1182856 BLAKE2B 5f9c98ea71224940398dbd1387a9d6e90d9115e7716d0bab39f3396b78551e88955f82a6a1b2562be9339b096026dab880b98043fb60aa396ebf99d54970c9c3 SHA512 48eb38489edd769eee083a31345500b8614386a383f069d2d6b291e2180bc3238fbb2dad34d31a61d825db57f5464bd41cf4485a75bc24dc21ef839152eaba00 diff --git a/net-irc/limnoria/limnoria-20241222.ebuild b/net-irc/limnoria/limnoria-20241222.ebuild new file mode 100644 index 000000000000..2e84262c5942 --- /dev/null +++ b/net-irc/limnoria/limnoria-20241222.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) +inherit distutils-r1 + +MY_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}" +MY_PN="Limnoria" +MY_P="${MY_PN}-${MY_PV}" + +if [[ ${PV} == *9999 ]]; then + EGIT_REPO_URI="https://github.com/ProgVal/${MY_PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/ProgVal/${MY_PN}/archive/master-${MY_PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${MY_PN}-master-${MY_PV}" + KEYWORDS="~amd64 ~riscv ~x86" +fi + +DESCRIPTION="Python based extensible IRC infobot and channel bot" +HOMEPAGE="https://docs.limnoria.net" +LICENSE="BSD GPL-2 GPL-2+" +SLOT="0" +IUSE="crypt ssl" + +RDEPEND=" + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/ecdsa[${PYTHON_USEDEP}] + dev-python/feedparser[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/pysocks[${PYTHON_USEDEP}] + dev-python/sqlalchemy[${PYTHON_USEDEP}] + crypt? ( dev-python/python-gnupg[${PYTHON_USEDEP}] ) + ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )" + +python_prepare_all() { + # replace "installed on ${timestamp}" with real version + echo "version='${MY_PV//-/.}'" > "${S}"/src/version.py || die + distutils-r1_python_prepare_all +} + +python_test() { + PLUGINS_DIR="${BUILD_DIR}/build/lib/supybot/plugins" + # intermittent failure due to issues loading libsandbox.so from LD_PRELOAD + # runs successfully when running the tests on the installed system + EXCLUDE_PLUGINS=( + --exclude="${PLUGINS_DIR}/Unix" + --exclude="${PLUGINS_DIR}/Aka" + --exclude="${PLUGINS_DIR}/Misc" + ) + + "${EPYTHON}" "${BUILD_DIR}/install/usr/bin/supybot-test" \ + --plugins-dir="${PLUGINS_DIR}" --no-network \ + --disable-multiprocessing "${EXCLUDE_PLUGINS[@]}" \ + "${S}/test" \ + || die "Tests failed under ${EPYTHON}" +} + +pkg_postinst() { + elog "Complete user documentation is available at https://limnoria-doc.readthedocs.io/" + elog "" + elog "Use supybot-wizard to create a configuration file." + elog "Run supybot </path/to/config> to use the bot." +}
