Gentoo Archives: gentoo-commits

From: Sam Jorna <wraeth@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/limnoria/
Date: Sat, 14 May 2022 07:37:05
Message-Id: 1652513778.0907201d28d38837e2154191ae616ad11a15da64.wraeth@gentoo
1 commit: 0907201d28d38837e2154191ae616ad11a15da64
2 Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 14 07:23:38 2022 +0000
4 Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
5 CommitDate: Sat May 14 07:36:18 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0907201d
7
8 net-irc/limnoria: bump to 2022-04-27
9
10 Additional test failures found in Aka and Misc modules, but both test
11 successfully once properly installed. Disabling tests for these plugins
12 as with Unix until resolved.
13
14 Signed-off-by: Sam Jorna <wraeth <AT> gentoo.org>
15
16 net-irc/limnoria/Manifest | 1 +
17 net-irc/limnoria/limnoria-20220427.ebuild | 80 +++++++++++++++++++++++++++++++
18 2 files changed, 81 insertions(+)
19
20 diff --git a/net-irc/limnoria/Manifest b/net-irc/limnoria/Manifest
21 index 79f16dfbb2ea..48c57d81f2a0 100644
22 --- a/net-irc/limnoria/Manifest
23 +++ b/net-irc/limnoria/Manifest
24 @@ -1,3 +1,4 @@
25 DIST limnoria-20210617.tar.gz 1094438 BLAKE2B 3253af8ad764acfaadf90ce49d0f40a47f32554d75c3860079284f98373eb3bc8f60f1f308b501265973c0e6c2a552211415f4f9c3044ce78f818d305b598cbe SHA512 25dddf843e22967a95c769c62f9398129830f63e23d506f0a9abaf7044fa9ffbeca95138c494caf3b36813919c7b1f0880b0715a06bc519de1a87837a948a039
26 DIST limnoria-20211118.tar.gz 1094394 BLAKE2B cf3f10b0e489b16afba96b6f9dcc64e0f86007cb601f7cdaca66ec80f5ce01f31795d513ee5d55687902b3a65e114e841c07d5ef34e016140f93d5d8f420f73f SHA512 f0f7d632f4de837663e69df8892191f3ee20a586e073fa9f382852f2e2146b6d82556827ef68d27831938a43fa32185d11a53e1810f7e1834d08b5aeff903b70
27 DIST limnoria-20220203.tar.gz 1099544 BLAKE2B fc68fb41b094978ddff159241bb4029ba8b3df2995b69f3eecf44599431cf2074a318469892c5b9c2c6660976fd7df52c76d5790b6db0ce94e390b57aa2a3e79 SHA512 50cc56885799d28ee559fffa7a3dc92189d0f41950c3e2b6062490d46c360fd18c188b64ca395963aeca62ff65f81f3536524f154e81ab9c703033e0c3ef0487
28 +DIST limnoria-20220427.tar.gz 1119981 BLAKE2B 3346d0576c1928cf074198afa2b2b613bc9672ea68d5f395e691f97b7aaac989a5ee8f388d41d9e767eea0c495974b066b8fc2a9a0bf3a7aa9db8c52bcabcec1 SHA512 d4f617cec32ebfc67c738b542a55d2a1cd92a287a107dc84d516a1431abe0e4f440fa7b4f2a4b7fce18f24582cfdcb2ad2ed66ff2779e6a64ba7788840c1adf3
29
30 diff --git a/net-irc/limnoria/limnoria-20220427.ebuild b/net-irc/limnoria/limnoria-20220427.ebuild
31 new file mode 100644
32 index 000000000000..22a8760bc6c4
33 --- /dev/null
34 +++ b/net-irc/limnoria/limnoria-20220427.ebuild
35 @@ -0,0 +1,80 @@
36 +# Copyright 1999-2022 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +PYTHON_COMPAT=( python3_{8..10} )
42 +DISTUTILS_IN_SOURCE_BUILD=yes # needed for tests
43 +inherit distutils-r1
44 +
45 +MY_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
46 +MY_PN="Limnoria"
47 +MY_P="${MY_PN}-${MY_PV}"
48 +
49 +if [[ ${PV} == *9999 ]]; then
50 + EGIT_REPO_URI="https://github.com/ProgVal/${MY_PN}.git"
51 + EGIT_BRANCH="testing"
52 + inherit git-r3
53 +else
54 + SRC_URI="https://github.com/ProgVal/${MY_PN}/archive/master-${MY_PV}.tar.gz -> ${P}.tar.gz"
55 + S="${WORKDIR}/${MY_PN}-master-${MY_PV}"
56 + KEYWORDS="~amd64 ~riscv ~x86"
57 +fi
58 +
59 +DESCRIPTION="Python based extensible IRC infobot and channel bot"
60 +HOMEPAGE="https://docs.limnoria.net"
61 +LICENSE="BSD GPL-2 GPL-2+"
62 +SLOT="0"
63 +IUSE="crypt ssl test"
64 +RESTRICT=" !test? ( test )"
65 +
66 +RDEPEND="
67 + dev-python/chardet[${PYTHON_USEDEP}]
68 + dev-python/cryptography[${PYTHON_USEDEP}]
69 + dev-python/ecdsa[${PYTHON_USEDEP}]
70 + dev-python/feedparser[${PYTHON_USEDEP}]
71 + dev-python/python-dateutil[${PYTHON_USEDEP}]
72 + dev-python/pytz[${PYTHON_USEDEP}]
73 + dev-python/PySocks[${PYTHON_USEDEP}]
74 + dev-python/sqlalchemy[${PYTHON_USEDEP}]
75 + crypt? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
76 + ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
77 + !net-irc/supybot
78 + !net-irc/supybot-plugins"
79 +BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )"
80 +
81 +python_prepare_all() {
82 + # replace "installed on ${timestamp}" with real version
83 + echo "version='${MY_PV//-/.}'" > "${S}"/src/version.py || die
84 + distutils-r1_python_prepare_all
85 +}
86 +
87 +python_test() {
88 + pushd "${T}" > /dev/null || die
89 + PLUGINS_DIR="${BUILD_DIR}"/lib/supybot/plugins
90 + EXCLUDE_PLUGINS=()
91 + # intermittent failure due to issues loading libsandbox.so from LD_PRELOAD
92 + # runs successfully when running the tests on the installed system
93 + EXCLUDE_PLUGINS+=(
94 + --exclude="${PLUGINS_DIR}/Unix"
95 + --exclude="${PLUGINS_DIR}/Aka"
96 + --exclude="${PLUGINS_DIR}/Misc"
97 + )
98 + "${EPYTHON}" "${BUILD_DIR}"/scripts/supybot-test "${BUILD_DIR}/../test" \
99 + --plugins-dir="${PLUGINS_DIR}" --no-network \
100 + --disable-multiprocessing "${EXCLUDE_PLUGINS[@]}" \
101 + || die "Tests failed under ${EPYTHON}"
102 + popd > /dev/null || die
103 +}
104 +
105 +python_install_all() {
106 + distutils-r1_python_install_all
107 + doman man/*
108 +}
109 +
110 +pkg_postinst() {
111 + elog "Complete user documentation is available at https://limnoria-doc.readthedocs.org/"
112 + elog ""
113 + elog "Use supybot-wizard to create a configuration file."
114 + elog "Run supybot </path/to/config> to use the bot."
115 +}