From e8a7afec61595f6f93ea731c63789ab22feb77b4 Mon Sep 17 00:00:00 2001 From: linj <10415937-lin.j@users.noreply.gitlab.com> Date: Sun, 12 Dec 2021 09:13:05 +0800 Subject: [PATCH] net-im/matrix-commander: new package --- net-im/matrix-commander/Manifest | 1 + .../matrix-commander-0.0.0_pre20210806.ebuild | 41 +++++++++++++++++++ net-im/matrix-commander/metadata.xml | 7 ++++ 3 files changed, 49 insertions(+) create mode 100644 net-im/matrix-commander/Manifest create mode 100644 net-im/matrix-commander/matrix-commander-0.0.0_pre20210806.ebuild create mode 100644 net-im/matrix-commander/metadata.xml diff --git a/net-im/matrix-commander/Manifest b/net-im/matrix-commander/Manifest new file mode 100644 index 0000000..0a89f89 --- /dev/null +++ b/net-im/matrix-commander/Manifest @@ -0,0 +1 @@ +DIST matrix-commander-0.0.0_pre20210806.tar.gz 735964 BLAKE2B f3f4c495823767778db99b65bb5aa88f45ea4009004b0c3825bd476a3a1d5c9e569aa18dfcc3408614357fbd2ba6931ec91fbea9f2efba488d83f812ba857d6a SHA512 0d32a3315978c6c373df5e1a7660516cd2c12ce9802f007a2299c99891b628b23159dbe511159aa5631d3b3717851230bd97eab12050f59a7735431246d55d54 diff --git a/net-im/matrix-commander/matrix-commander-0.0.0_pre20210806.ebuild b/net-im/matrix-commander/matrix-commander-0.0.0_pre20210806.ebuild new file mode 100644 index 0000000..bf99abf --- /dev/null +++ b/net-im/matrix-commander/matrix-commander-0.0.0_pre20210806.ebuild @@ -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 +} diff --git a/net-im/matrix-commander/metadata.xml b/net-im/matrix-commander/metadata.xml new file mode 100644 index 0000000..84841ab --- /dev/null +++ b/net-im/matrix-commander/metadata.xml @@ -0,0 +1,7 @@ + + + + + 8go/matrix-commander + +