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:39
Message-Id: 1614349562.dcc4c231201bf5430b347b9baf6a460a4fbf50e9.sam@gentoo
1 commit: dcc4c231201bf5430b347b9baf6a460a4fbf50e9
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Thu Feb 25 17:57:21 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=dcc4c231
7
8 net-irc/limnoria: Sync live ebuild (not so many 9's)
9
10 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 ...mnoria-99999999.ebuild => limnoria-9999.ebuild} | 51 ++++++++++------------
14 1 file changed, 22 insertions(+), 29 deletions(-)
15
16 diff --git a/net-irc/limnoria/limnoria-99999999.ebuild b/net-irc/limnoria/limnoria-9999.ebuild
17 similarity index 76%
18 rename from net-irc/limnoria/limnoria-99999999.ebuild
19 rename to net-irc/limnoria/limnoria-9999.ebuild
20 index 9374199261b..e4accb140ca 100644
21 --- a/net-irc/limnoria/limnoria-99999999.ebuild
22 +++ b/net-irc/limnoria/limnoria-9999.ebuild
23 @@ -1,34 +1,36 @@
24 -# Copyright 1999-2020 Gentoo Authors
25 +# Copyright 1999-2021 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 EAPI=7
29 -PYTHON_COMPAT=( python3_7 )
30
31 +PYTHON_COMPAT=( python3_{7..9} )
32 +DISTUTILS_USE_SETUPTOOLS=no
33 inherit distutils-r1
34
35 MY_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
36 MY_PN="Limnoria"
37 MY_P="${MY_PN}-${MY_PV}"
38
39 -if [[ ${PV} == "99999999" ]]; then
40 +if [[ ${PV} == *9999 ]]; then
41 EGIT_REPO_URI="https://github.com/ProgVal/${MY_PN}.git"
42 EGIT_BRANCH="testing"
43 inherit git-r3
44 - SRC_URI=""
45 else
46 SRC_URI="https://github.com/ProgVal/${MY_PN}/archive/master-${MY_PV}.tar.gz -> ${P}.tar.gz"
47 - KEYWORDS="~amd64 ~x86"
48 S="${WORKDIR}/${MY_PN}-master-${MY_PV}"
49 + KEYWORDS="~amd64 ~x86"
50 fi
51
52 DESCRIPTION="Python based extensible IRC infobot and channel bot"
53 -HOMEPAGE="https://supybot.aperio.fr/"
54 -LICENSE="BSD"
55 +HOMEPAGE="https://docs.limnoria.net"
56 +LICENSE="BSD GPL-2+"
57 SLOT="0"
58 -IUSE="crypt ssl"
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 @@ -38,43 +40,34 @@ RDEPEND="
69 crypt? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
70 ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
71 !net-irc/supybot
72 - !net-irc/supybot-plugins
73 - "
74 -DEPEND="${RDEPEND}"
75 -
76 -src_unpack() {
77 - if [[ ${PV} == "99999999" ]]; then
78 - git-r3_src_unpack
79 - else
80 - unpack ${P}.tar.gz
81 - fi
82 -}
83 + !net-irc/supybot-plugins"
84 +BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )"
85
86 python_prepare() {
87 einfo "Removing the RSS plugin because of clashes between libxml2's Python3"
88 einfo "bindings and feedparser."
89 - rm -rf "plugins/RSS" || die
90 -}
91 -
92 -python_install_all() {
93 - distutils-r1_python_install_all
94 - doman man/*
95 + rm -r "plugins/RSS" || die
96 }
97
98 python_test() {
99 - pushd "${T}" > /dev/null
100 - PLUGINS_DIR="${BUILD_DIR}/lib/supybot/plugins"
101 + pushd "${T}" > /dev/null || die
102 + PLUGINS_DIR="${BUILD_DIR}"/lib/supybot/plugins
103 EXCLUDE_PLUGINS=()
104 # intermittent failure due to issues loading libsandbox.so from LD_PRELOAD
105 # runs successfully when running the tests on the installed system
106 EXCLUDE_PLUGINS+=( --exclude="${PLUGINS_DIR}/Unix" )
107 # Runs despite --no-network (GH #1392)
108 EXCLUDE_PLUGINS+=( --exclude="${PLUGINS_DIR}/Aka" )
109 - "${PYTHON}" "${BUILD_DIR}"/scripts/supybot-test "${BUILD_DIR}/../test" \
110 + "${EPYTHON}" "${BUILD_DIR}"/scripts/supybot-test "${BUILD_DIR}/../test" \
111 --plugins-dir="${PLUGINS_DIR}" --no-network \
112 --disable-multiprocessing "${EXCLUDE_PLUGINS[@]}" \
113 || die "Tests failed under ${EPYTHON}"
114 - popd > /dev/null
115 + popd > /dev/null || die
116 +}
117 +
118 +python_install_all() {
119 + distutils-r1_python_install_all
120 + doman man/*
121 }
122
123 pkg_postinst() {