net-im/mjolnir: add 1.6.1
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
parent
05b1553f78
commit
800f3a4981
|
@ -1,2 +1,6 @@
|
|||
DIST matrix-sdk-crypto-0.1.0-beta.1.linux-x64-gnu.node 7405368 BLAKE2B c2431849ffcba5e5ac0742a98f193a31249ff228e24e01fec7369767d643aed9fe2665b2fc5d8dbe884e0908ad86c6bbd4185a0eea6c85aecea911a429c7ccc4 SHA512 4963d8395eba1601a10247957dd708df3497324ec12e9760b39b8a24fc8b73509e006395c0f37ed4b6bf7eafb7d41483b0df2b9b0ee09d5f7b6b504348aaf3fc
|
||||
DIST matrix-sdk-crypto-0.1.0-beta.1.linux-x64-musl.node 7368496 BLAKE2B bd9929617022e65ea1a2ff346bf464dffeb7661fd19a99d437d0da3da383bc6525251e2ebef1f3da03d5df3df6de9bb5657458859b5e4b2e6f3c67dcd590e564 SHA512 a270d444709c11913e98982bc7b9f26c15c7bd28462587d6a2a17e03487e073e671695899ff94d5557aa1dd53dff4db71582a002753807fb57fa125185d47980
|
||||
DIST mjolnir-1.5.0-deps.tar.xz 34428920 BLAKE2B b1876ea496c9ad4815a86ba6e5f9474cf76a9dd05e678fbc5c74a617920050604995abb41bdfe09590f3deb07605018be5c78a463ae7982613945021e2bd0b9c SHA512 676b6580e632e7bd2a96fe55d8887713a576a232777010421a3d6f675b5584a476736145530a6169281484e7e80fc7c66b35a0bf1a1521978ba76a18c15c8770
|
||||
DIST mjolnir-1.5.0.tar.gz 194488 BLAKE2B e1b2a9335815b8a2f4452e3be1b27a903e9b96b565cbd567d5b4d52cb1e2ab914fd3be963abc6857e775343af79a4708320f6496f4242bcac9ed1898588fcdf4 SHA512 2f0d00e7c4e1cee8cdcc2565821638c3a979538402ccafd10beb0fd8edcd2cbf0e46f5bf11a6df2c02dfff49b89cbf731d9bcd5411b805d9079cdcac5484c06d
|
||||
DIST mjolnir-1.6.1-deps.tar.xz 41745180 BLAKE2B 25790f8d9be879ef259585ca079013707ad1e23a646d0e45c7da1aa877298dd2bac81c4fd528fe27751377a40612f6b591102c6ec95d060b4ab3eefd7d547daf SHA512 4a9fb55e3aca9d5b7d73a7fa7e49cdec83576eee6f86ab75dfd08b59fc70caa775886331407d8e0b52f72ca03ce449b2f5b65d52524a7740ffea1a2a4a33ee61
|
||||
DIST mjolnir-1.6.1.tar.gz 229672 BLAKE2B 6a313b0a17e7f7771bcf55e1a03cc67bd0f9dc29b706af1d07c96849514c9043ea72aedf619380a374a818ae44fca4816ba01d73270df90a33c4b498673250cd SHA512 a4720d8afad2c9b306503c8a160b8bc1bbb368aab16568cb388f9f2ed7607d679f1a0267db4d95b8cf6c8d13195a60daf48699b20a3998dd136705e477238b51
|
||||
|
|
83
net-im/mjolnir/mjolnir-1.6.1.ebuild
Normal file
83
net-im/mjolnir/mjolnir-1.6.1.ebuild
Normal file
|
@ -0,0 +1,83 @@
|
|||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MATRIX_RUST_SDK_V="0.1.0-beta.1"
|
||||
DESCRIPTION="A moderation tool for Matrix"
|
||||
HOMEPAGE="https://github.com/matrix-org/mjolnir"
|
||||
SRC_URI="
|
||||
https://github.com/matrix-org/mjolnir/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://tastytea.de/files/gentoo/${P}-deps.tar.xz
|
||||
elibc_glibc? (
|
||||
amd64? (
|
||||
https://github.com/matrix-org/matrix-rust-sdk/releases/download/matrix-sdk-crypto-nodejs-v${MATRIX_RUST_SDK_V}/matrix-sdk-crypto.linux-x64-gnu.node -> matrix-sdk-crypto-${MATRIX_RUST_SDK_V}.linux-x64-gnu.node
|
||||
)
|
||||
)
|
||||
elibc_musl? (
|
||||
amd64? (
|
||||
https://github.com/matrix-org/matrix-rust-sdk/releases/download/matrix-sdk-crypto-nodejs-v${MATRIX_RUST_SDK_V}/matrix-sdk-crypto.linux-x64-musl.node -> matrix-sdk-crypto-${MATRIX_RUST_SDK_V}.linux-x64-musl.node
|
||||
)
|
||||
)
|
||||
|
||||
"
|
||||
|
||||
# NOTE: to generate the deps archive:
|
||||
# yarn --cache-folder ./yarn-cache install
|
||||
# tar -caf ${P}-deps.tar.xz yarn-cache
|
||||
|
||||
LICENSE="0BSD Apache-2.0 BSD BSD-2 ISC MIT PYTHON Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND=">=net-libs/nodejs-16"
|
||||
BDEPEND="
|
||||
sys-apps/yarn
|
||||
dev-lang/typescript
|
||||
"
|
||||
|
||||
MY_YARNOPTS="--offline --non-interactive --no-progress --verbose"
|
||||
|
||||
src_prepare() {
|
||||
yarn ${MY_YARNOPTS} --cache-folder ../yarn-cache install || die
|
||||
|
||||
local my_libc="gnu"
|
||||
use elibc_musl && my_libc="musl"
|
||||
local my_arch="x64"
|
||||
|
||||
# this is not cached but downloaded by a script usually
|
||||
mkdir -p node_modules/@matrix-org/matrix-sdk-crypto-nodejs || die
|
||||
cp "${DISTDIR}"/matrix-sdk-crypto-${MATRIX_RUST_SDK_V}.linux-${my_arch}-${my_libc}.node \
|
||||
node_modules/@matrix-org/matrix-sdk-crypto-nodejs/matrix-sdk-crypto.linux-${my_arch}-${my_libc}.node \
|
||||
|| die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
yarn ${MY_YARNOPTS} build || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /opt/${PN}
|
||||
doins -r node_modules
|
||||
|
||||
insinto /opt/${PN}/${PN}
|
||||
doins -r lib/*
|
||||
|
||||
keepdir /opt/${PN}/config
|
||||
|
||||
einstalldocs
|
||||
dodoc config/default.yaml
|
||||
use doc && dodoc docs/*
|
||||
|
||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ! -f "${EROOT}"/opt/${PN}/config/production.yaml ]]; then
|
||||
elog "Copy the configuration example from /usr/share/doc/${PF}/default.yaml*"
|
||||
elog "into /opt/${PN}/config/production.yaml and edit it."
|
||||
fi
|
||||
}
|
Reference in New Issue
Block a user