gentoo-repo

git clone git://archive.git.mtrnord.blog/MTRNord/gentoo-repo.git
Log | Files | Refs | README

commit 165976012f0f21681eded0431f53e9b15c8d8edd
parent 27e53014be9d21f30a5ac232a306d5c92cb25556
Author: MTRNord <mtrnord1@gmail.com>
Date:   Tue, 24 Aug 2021 20:42:54 +0200

bump synapse and add olm and mautrix-whatsapp

Diffstat:
Adev-libs/olm/Manifest | 1+
Adev-libs/olm/olm-3.2.4.ebuild | 21+++++++++++++++++++++
Adev-libs/olm/olm-9999.ebuild | 21+++++++++++++++++++++
Mnet-im/matrix-media-repo/matrix-media-repo-1.2.8.ebuild | 5++++-
Mnet-im/matrix-synapse/Manifest | 2+-
Rnet-im/matrix-synapse/matrix-synapse-1.41.0_rc1.ebuild -> net-im/matrix-synapse/matrix-synapse-1.41.0.ebuild | 0
Anet-im/mautrix-whatsapp/files/matrix-whatsapp.initd | 24++++++++++++++++++++++++
Anet-im/mautrix-whatsapp/mautrix-whatsapp-9999.ebuild | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
8 files changed, 124 insertions(+), 2 deletions(-)

diff --git a/dev-libs/olm/Manifest b/dev-libs/olm/Manifest @@ -0,0 +1 @@ +DIST olm-3.2.4.tar.bz2 479336 BLAKE2B 9de6b869c94a7f47b269b55526408ce6930ac5354495608038888f13efe72a6fab498c85c6ffe073a1f76391cbe4a83cfc6c65382d593bc487dafe64894ca0ed SHA512 94f661a2c9fe22f7dfefc89e488be37da2fe19dedd3ba296e09c55e63886ed82b71a30d84ecbdfa5dee820b1b6a918daefab248536c137459b8f244dc514920b diff --git a/dev-libs/olm/olm-3.2.4.ebuild b/dev-libs/olm/olm-3.2.4.ebuild @@ -0,0 +1,21 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="An implementation of the Double Ratchet cryptographic ratchet in C++" +HOMEPAGE="https://git.matrix.org/git/olm/about/" + +if [[ "${PV}" == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.matrix.org/matrix-org/${PN}.git" +else + SRC_URI="https://gitlab.matrix.org/matrix-org/${PN}/-/archive/${PV}/${P}.tar.bz2" + KEYWORDS="amd64 ~x86" +fi + +LICENSE="GPL-3" +SLOT="0/$(ver_cut 1)" +IUSE="debug" diff --git a/dev-libs/olm/olm-9999.ebuild b/dev-libs/olm/olm-9999.ebuild @@ -0,0 +1,21 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="An implementation of the Double Ratchet cryptographic ratchet in C++" +HOMEPAGE="https://git.matrix.org/git/olm/about/" + +if [[ "${PV}" == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.matrix.org/matrix-org/${PN}.git" +else + SRC_URI="https://gitlab.matrix.org/matrix-org/${PN}/-/archive/${PV}/${P}.tar.bz2" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3" +SLOT="0/$(ver_cut 1)" +IUSE="debug" diff --git a/net-im/matrix-media-repo/matrix-media-repo-1.2.8.ebuild b/net-im/matrix-media-repo/matrix-media-repo-1.2.8.ebuild @@ -2003,7 +2003,10 @@ SLOT="0" KEYWORDS="~amd64" IUSE="" -RDEPEND="acct-user/mmrepo" +RDEPEND=" + acct-user/mmrepo + virtual/imagemagick-tools +" DEPEND=" ${RDEPEND} >=dev-lang/go-1.16 diff --git a/net-im/matrix-synapse/Manifest b/net-im/matrix-synapse/Manifest @@ -1 +1 @@ -DIST matrix-synapse-1.41.0rc1.tar.gz 7432530 BLAKE2B 40600d6b5b448c062a40f00a79c1b51d50983c943ed69b3b9e65c077f7230e5930c6bc7f4b7cd80d6217f6215ee3a77f28c729df9a7394d3130405f0590b5b1f SHA512 a1b79921c9824030fe76674433e0c8f16851d48de1fa0befedff7a9a598104d3f97d5ed04f12b6649bef9e6be4edce85c80011d87a6473373a8480b282916da6 +DIST matrix-synapse-1.41.0.tar.gz 7432419 BLAKE2B 027051f73be1e9d86462a7337449a259b6b72663c6c364e3adcab6e2bbc6e3f0cbf93a48ea2c4ae58f7df965ab6ce1a1cc2d826b2a49404193fb1b27e91ec051 SHA512 1171c984171036d121b8d15918008039fefbffb5051ec368c7205f49430c2c637a55d466ede7f9a555af8e6be655bb39552ab30b0a26f056ad65031b1f331522 diff --git a/net-im/matrix-synapse/matrix-synapse-1.41.0_rc1.ebuild b/net-im/matrix-synapse/matrix-synapse-1.41.0.ebuild diff --git a/net-im/mautrix-whatsapp/files/matrix-whatsapp.initd b/net-im/mautrix-whatsapp/files/matrix-whatsapp.initd @@ -0,0 +1,24 @@ +#!/sbin/openrc-run +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="Matrix Whatsapp bridge" +description_reload="Reload configuration and reopen log files." + +command_user=${SYNAPSE_USER:-synapse} +conf=${SYNAPSE_CONFIG:-/etc/mautrix-whatsapp/config.yaml} +command=/usr/bin/mautrix-whatsapp +command_args="-c ${conf}" + +depend() { + use dns + need net + provide matrix-whatsapp +} + +checkconfig() { + if [ ! -e $SYNAPSE_CONFIG ] ; then + eerror "You need a $SYNAPSE_CONFIG file to run synapse" + return 1 + fi +} diff --git a/net-im/mautrix-whatsapp/mautrix-whatsapp-9999.ebuild b/net-im/mautrix-whatsapp/mautrix-whatsapp-9999.ebuild @@ -0,0 +1,52 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +EGO_PN="github.com/tulir/mautrix-whatsapp" + +DESCRIPTION="A Matrix-WhatsApp puppeting bridge" +HOMEPAGE="https://maunium.net/go/mautrix-whatsapp" +SRC_URI="${EGO_SUM_SRC_URI}" + +inherit git-r3 +inherit go-module + +#go-module_set_globals + +EGIT_REPO_URI="https://github.com/tulir/mautrix-whatsapp.git" +if [[ ${PV} != "9999" ]]; then +EGIT_COMMIT="v${PV}" +KEYWORDS="~amd64 ~x86" +fi + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="dev-lang/go +dev-libs/olm" +RDEPEND="${DEPEND}" +BDEPEND="" + +if [[ ${PV} == 9999 ]]; then +src_unpack() { + git-r3_src_unpack + go-module_live_vendor +} +fi + + +src_compile() { + go build +} + +src_install() { + newinitd "${FILESDIR}/matrix-whatsapp.initd" matrix-whatsapp + dobin mautrix-whatsapp + dodir /etc/mautrix-whatsapp + insinto /etc/mautrix-whatsapp + newins example-config.yaml config.yaml + + dodoc example-config.yaml +}