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: Mon, 29 Mar 2021 07:56:53
Message-Id: 1617004598.3e9cfba5d08f101a0e99bb4fafae4e37d5d52d63.wraeth@gentoo
1 commit: 3e9cfba5d08f101a0e99bb4fafae4e37d5d52d63
2 Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 28 00:55:46 2021 +0000
4 Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 29 07:56:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e9cfba5
7
8 net-irc/limnoria: bump to 20210326
9
10 Package-Manager: Portage-3.0.17, Repoman-3.0.2
11 Signed-off-by: Sam Jorna <wraeth <AT> gentoo.org>
12
13 net-irc/limnoria/Manifest | 1 +
14 net-irc/limnoria/limnoria-20210326.ebuild | 78 +++++++++++++++++++++++++++++++
15 2 files changed, 79 insertions(+)
16
17 diff --git a/net-irc/limnoria/Manifest b/net-irc/limnoria/Manifest
18 index 863cbcd269d..1c392773213 100644
19 --- a/net-irc/limnoria/Manifest
20 +++ b/net-irc/limnoria/Manifest
21 @@ -1 +1,2 @@
22 DIST limnoria-20200124.tar.gz 1034653 BLAKE2B 895a0820efcd58429e457e0cb8dbcb864e56a3bce9fab9546cf622aabc7711a015432812c4193d2dabe7a85043c623ce427504c1c8e78530499c8db2c589bd8e SHA512 828c4927e2ce00c012d17f8a2b2d629370c34915e7e4f71de6df67259e643448c33a60d9cf742b2d827e21e17326a8fc20be875eac826edf64406eda906567a4
23 +DIST limnoria-20210326.tar.gz 1046488 BLAKE2B fcbaab1ecebcd74438be4c2fce96c7e289aa01dcb67c324130d5c768727e159c87b5d96cc4ffefdf629287d59f02cc72ea17ba4a61e9157d7626ebceb9e072e8 SHA512 1d612a2ce42edec909255474f99b4785ff7eb7a7554ee5090e05db92cadb071821f6962659d8f1846f238a257d6b8d513881f27be44a7582d154bd0cf398f7db
24
25 diff --git a/net-irc/limnoria/limnoria-20210326.ebuild b/net-irc/limnoria/limnoria-20210326.ebuild
26 new file mode 100644
27 index 00000000000..03b9171f694
28 --- /dev/null
29 +++ b/net-irc/limnoria/limnoria-20210326.ebuild
30 @@ -0,0 +1,78 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{7..9} )
37 +DISTUTILS_USE_SETUPTOOLS=no
38 +inherit distutils-r1
39 +
40 +MY_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
41 +MY_PN="Limnoria"
42 +MY_P="${MY_PN}-${MY_PV}"
43 +
44 +if [[ ${PV} == *9999 ]]; then
45 + EGIT_REPO_URI="https://github.com/ProgVal/${MY_PN}.git"
46 + EGIT_BRANCH="testing"
47 + inherit git-r3
48 +else
49 + SRC_URI="https://github.com/ProgVal/${MY_PN}/archive/master-${MY_PV}.tar.gz -> ${P}.tar.gz"
50 + S="${WORKDIR}/${MY_PN}-master-${MY_PV}"
51 + KEYWORDS="~amd64 ~x86"
52 +fi
53 +
54 +DESCRIPTION="Python based extensible IRC infobot and channel bot"
55 +HOMEPAGE="https://docs.limnoria.net"
56 +LICENSE="BSD GPL-2 GPL-2+"
57 +SLOT="0"
58 +IUSE="crypt ssl test"
59 +RESTRICT=" !test? ( test )"
60 +
61 +RDEPEND="
62 + dev-python/chardet[${PYTHON_USEDEP}]
63 + dev-python/cryptography[${PYTHON_USEDEP}]
64 + dev-python/ecdsa[${PYTHON_USEDEP}]
65 + dev-python/feedparser[${PYTHON_USEDEP}]
66 + dev-python/python-dateutil[${PYTHON_USEDEP}]
67 + dev-python/pytz[${PYTHON_USEDEP}]
68 + dev-python/PySocks[${PYTHON_USEDEP}]
69 + dev-python/sqlalchemy[${PYTHON_USEDEP}]
70 + crypt? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
71 + ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
72 + !net-irc/supybot
73 + !net-irc/supybot-plugins"
74 +BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )"
75 +
76 +python_prepare() {
77 + einfo "Removing the RSS plugin because of clashes between libxml2's Python3"
78 + einfo "bindings and feedparser."
79 + rm -r "plugins/RSS" || die
80 +}
81 +
82 +python_test() {
83 + pushd "${T}" > /dev/null || die
84 + PLUGINS_DIR="${BUILD_DIR}"/lib/supybot/plugins
85 + EXCLUDE_PLUGINS=()
86 + # intermittent failure due to issues loading libsandbox.so from LD_PRELOAD
87 + # runs successfully when running the tests on the installed system
88 + EXCLUDE_PLUGINS+=( --exclude="${PLUGINS_DIR}/Unix" )
89 + # Runs despite --no-network (GH #1392)
90 + EXCLUDE_PLUGINS+=( --exclude="${PLUGINS_DIR}/Aka" )
91 + "${EPYTHON}" "${BUILD_DIR}"/scripts/supybot-test "${BUILD_DIR}/../test" \
92 + --plugins-dir="${PLUGINS_DIR}" --no-network \
93 + --disable-multiprocessing "${EXCLUDE_PLUGINS[@]}" \
94 + || die "Tests failed under ${EPYTHON}"
95 + popd > /dev/null || die
96 +}
97 +
98 +python_install_all() {
99 + distutils-r1_python_install_all
100 + doman man/*
101 +}
102 +
103 +pkg_postinst() {
104 + elog "Complete user documentation is available at https://limnoria-doc.readthedocs.org/"
105 + elog ""
106 + elog "Use supybot-wizard to create a configuration file."
107 + elog "Run supybot </path/to/config> to use the bot."
108 +}