2023-01-24 16:54:40 +01:00
|
|
|
# Copyright 2023 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
|
2023-06-30 10:20:20 +02:00
|
|
|
PYTHON_COMPAT=( python3_{9..11} )
|
2023-01-24 16:54:40 +01:00
|
|
|
inherit python-single-r1
|
|
|
|
|
|
|
|
DESCRIPTION="Weechat Matrix protocol script written in python"
|
|
|
|
HOMEPAGE="https://github.com/poljar/weechat-matrix"
|
|
|
|
SRC_URI="https://github.com/poljar/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
REQUIRED_USE=${PYTHON_REQUIRED_USE}
|
|
|
|
|
|
|
|
DEPEND="
|
2023-01-24 17:54:21 +01:00
|
|
|
net-irc/weechat[python]
|
2023-01-24 16:54:40 +01:00
|
|
|
${PYTHON_DEPS}
|
|
|
|
$(python_gen_cond_dep '
|
2023-01-24 17:56:20 +01:00
|
|
|
dev-python/aiohttp-socks[${PYTHON_USEDEP}]
|
2023-01-24 17:54:21 +01:00
|
|
|
dev-python/aiohttp[${PYTHON_USEDEP}]
|
2023-01-24 16:54:40 +01:00
|
|
|
dev-python/atomicwrites[${PYTHON_USEDEP}]
|
|
|
|
dev-python/attrs[${PYTHON_USEDEP}]
|
2023-01-24 17:54:21 +01:00
|
|
|
dev-python/future[${PYTHON_USEDEP}]
|
2023-01-24 16:54:40 +01:00
|
|
|
dev-python/logbook[${PYTHON_USEDEP}]
|
|
|
|
dev-python/matrix-nio[${PYTHON_USEDEP},e2e]
|
2023-01-24 17:54:21 +01:00
|
|
|
dev-python/pygments[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
2023-01-24 16:54:40 +01:00
|
|
|
dev-python/python-magic[${PYTHON_USEDEP}]
|
|
|
|
dev-python/requests[${PYTHON_USEDEP}]
|
2023-01-24 17:54:21 +01:00
|
|
|
dev-python/webcolors[${PYTHON_USEDEP}]
|
2023-01-24 16:54:40 +01:00
|
|
|
')
|
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
BDEPEND=""
|
|
|
|
|
2023-01-24 18:43:49 +01:00
|
|
|
PATCHES=( "${FILESDIR}/${P}-ssl_set_npn_protocols.patch" )
|
|
|
|
|
2023-01-24 16:54:40 +01:00
|
|
|
src_install() {
|
|
|
|
python_domodule matrix
|
2023-01-24 17:54:21 +01:00
|
|
|
exeinto /usr/lib/weechat
|
2023-01-24 18:43:49 +01:00
|
|
|
newexe main.py ${PN}.py
|
2023-01-24 16:54:40 +01:00
|
|
|
}
|