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