Diff limnoria-20221116 with a limnoria-99999999

/usr/portage/net-irc/limnoria/limnoria-99999999.ebuild 2023-10-09 14:52:34.464368476 +0300
4 4
EAPI=7
5 5

  
6 6
PYTHON_COMPAT=( python3_{9..11} )
7
DISTUTILS_IN_SOURCE_BUILD=yes # needed for tests
7
DISTUTILS_USE_SETUPTOOLS=no
8 8
inherit distutils-r1
9 9

  
10 10
MY_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
......
18 18
else
19 19
	SRC_URI="https://github.com/ProgVal/${MY_PN}/archive/master-${MY_PV}.tar.gz -> ${P}.tar.gz"
20 20
	S="${WORKDIR}/${MY_PN}-master-${MY_PV}"
21
	KEYWORDS="~amd64 ~riscv ~x86"
21
	KEYWORDS="~amd64 ~x86"
22 22
fi
23 23

  
24 24
DESCRIPTION="Python based extensible IRC infobot and channel bot"
......
38 38
	dev-python/PySocks[${PYTHON_USEDEP}]
39 39
	dev-python/sqlalchemy[${PYTHON_USEDEP}]
40 40
	crypt? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
41
	ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )"
41
	ssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
42
	!net-irc/supybot
43
	!net-irc/supybot-plugins"
42 44
BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )"
43 45

  
44
python_prepare_all() {
45
	# replace "installed on ${timestamp}" with real version
46
	echo "version='${MY_PV//-/.}'" > "${S}"/src/version.py || die
47
	distutils-r1_python_prepare_all
46
python_prepare() {
47
	einfo "Removing the RSS plugin because of clashes between libxml2's Python3"
48
	einfo "bindings and feedparser."
49
	rm -r "plugins/RSS" || die
48 50
}
49 51

  
50 52
python_test() {
......
53 55
	EXCLUDE_PLUGINS=()
54 56
	# intermittent failure due to issues loading libsandbox.so from LD_PRELOAD
55 57
	# runs successfully when running the tests on the installed system
56
	EXCLUDE_PLUGINS+=(
57
		--exclude="${PLUGINS_DIR}/Unix"
58
		--exclude="${PLUGINS_DIR}/Aka"
59
		--exclude="${PLUGINS_DIR}/Misc"
60
	)
58
	EXCLUDE_PLUGINS+=( --exclude="${PLUGINS_DIR}/Unix" )
59
	# Runs despite --no-network (GH #1392)
60
	EXCLUDE_PLUGINS+=( --exclude="${PLUGINS_DIR}/Aka" )
61 61
	"${EPYTHON}" "${BUILD_DIR}"/scripts/supybot-test "${BUILD_DIR}/../test" \
62 62
		--plugins-dir="${PLUGINS_DIR}" --no-network \
63 63
		--disable-multiprocessing "${EXCLUDE_PLUGINS[@]}" \
Thank you!