Gentoo Archives: gentoo-commits

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