net-im/matrix-commander: new package

This commit is contained in:
linj 2021-12-12 09:13:05 +08:00
parent 623d9c3069
commit e8a7afec61
3 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST matrix-commander-0.0.0_pre20210806.tar.gz 735964 BLAKE2B f3f4c495823767778db99b65bb5aa88f45ea4009004b0c3825bd476a3a1d5c9e569aa18dfcc3408614357fbd2ba6931ec91fbea9f2efba488d83f812ba857d6a SHA512 0d32a3315978c6c373df5e1a7660516cd2c12ce9802f007a2299c99891b628b23159dbe511159aa5631d3b3717851230bd97eab12050f59a7735431246d55d54

View File

@ -0,0 +1,41 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_9 )
inherit bash-completion-r1 optfeature python-single-r1
COMMIT="7ab3fd9a0ef4eb19d882cb3701d2025b4d41b63a"
DESCRIPTION="A simple but convenient CLI-based Matrix client app for sending and receiving"
HOMEPAGE="https://github.com/8go/matrix-commander"
SRC_URI="https://github.com/8go/matrix-commander/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
${PYTHON_DEPS}
$(python_gen_cond_dep '
>=dev-python/aiofiles-0.6.0[${PYTHON_USEDEP}]
>=dev-python/matrix-nio-0.14.1[e2e,${PYTHON_USEDEP}]
dev-python/markdown[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/python-magic[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]
')
"
src_install() {
python_newscript matrix-commander.py "${PN}"
newbashcomp auto-completion/bash/matrix-commander.bash "${PN}"
einstalldocs
}
pkg_postinst() {
optfeature "notification support" dev-python/notify2
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">8go/matrix-commander</remote-id>
</upstream>
</pkgmetadata>