forked from tastytea/overlay
net-im/mjolnir: add 1.6.5
Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
parent
674ba227a4
commit
c3edfb2dc5
|
@ -4,3 +4,5 @@ DIST mjolnir-1.6.2-deps.tar.xz 42791008 BLAKE2B 9a9ec405796c5d0137bc390de8cba7fe
|
|||
DIST mjolnir-1.6.2.tar.gz 236358 BLAKE2B 47ae8d261781a90ef0ede7c8fb16dc198135cd834d724483a38c3f5fb579631ab493f72808eabe40f41f51f47f9d0dadef1e91c15b69305f9bd7bc229fc4f966 SHA512 a36661cb8e4dfcb5b186e5859a57feef4e33bed1255c86fcd55ed782e5ca105ffa3bc55cf953a381750c6057b8d0bfeacd127954a8099f11c76596b8d5d07540
|
||||
DIST mjolnir-1.6.4-deps.tar.xz 42795704 BLAKE2B edb93c1d2d01fd3299c7723d159e615159c41e618c8aa34508ca044d0f9c8972ab36687c97001ddc565491971b6e3a060bda9d56b50110b3760ffcad8955dccf SHA512 dc89f6e01108671123effcd8cad8ee085fc720709e59b90f67dca48bfe9301cc6c642e6bbbc3148d4c6b7d79622554703defc69a695a85f3a27d2fab01753ee5
|
||||
DIST mjolnir-1.6.4.tar.gz 244860 BLAKE2B bc7d240254169da1dd7f04ff34324b92f4a6df1d316144fd58c23196132b5a69fc0c31de1dd3bab1883a803c701c556103128681fbfe0d353929f8f89640da0d SHA512 c646450815d239d1e905aecbd86ddfab5b8ebb7c076dab9d9a4451f27b30e7708245b78460a656d58bbfe4414032d55037105e286b037b960de91df2b0891c21
|
||||
DIST mjolnir-1.6.5-deps.tar.xz 44684832 BLAKE2B 3f4de2cd1bf4800e519554cf0307f6cf27baf092befb831aa52d992ba074665cde9c86003c1ec821e6b5c86f3411a5dbe8f7fd7b9657eab658b646456ba8e8bf SHA512 3a48cdb7020f15032aa014ddb6c1f81530bc4ea398d1238541af3155ae34570886ed6e632dd1d969a95d22263f605587fb2c5aa244442c616bbb12a77cecbcbd
|
||||
DIST mjolnir-1.6.5.tar.gz 237166 BLAKE2B cdc6da4cb5f65a9b2bcc0bd48857ac4caeb4ad9908617fb225ea82ad1c83b228ecce828d7bacb25a75ef06527e6299d4ccef4eda0f6a67479c95be095fc5d625 SHA512 1269f2e2c8f0879355f4642b5ea2a0e6885f3c520133287009f3772ede530ec96f0e97b89f340bc1262e4cdc7654ff78f66a873e5072aa663ec276ec221f399b
|
||||
|
|
16
net-im/mjolnir/files/mjolnir-1.6.5-node-20.patch
Normal file
16
net-im/mjolnir/files/mjolnir-1.6.5-node-20.patch
Normal file
|
@ -0,0 +1,16 @@
|
|||
# patch by by tux93
|
||||
# <https://github.com/matrix-org/mjolnir/issues/501#issuecomment-1819434537>
|
||||
|
||||
diff --git a/package.json b/package.json
|
||||
index 4b24df8..45bdf50 100644
|
||||
--- a/package.json
|
||||
+++ b/package.json
|
||||
@@ -55,7 +55,7 @@
|
||||
"humanize-duration-ts": "^2.1.1",
|
||||
"js-yaml": "^4.1.0",
|
||||
"jsdom": "^16.6.0",
|
||||
- "matrix-appservice-bridge": "8.1.2",
|
||||
+ "matrix-appservice-bridge": "9.0.1",
|
||||
"parse-duration": "^1.0.2",
|
||||
"pg": "^8.8.0",
|
||||
"prom-client": "^14.1.0",
|
85
net-im/mjolnir/mjolnir-1.6.5.ebuild
Normal file
85
net-im/mjolnir/mjolnir-1.6.5.ebuild
Normal file
|
@ -0,0 +1,85 @@
|
|||
# Copyright 2022-2023 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:
|
||||
# tar -xf /var/cache/distfiles/${P}.tar.gz && cd ${P}
|
||||
# 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-18"
|
||||
BDEPEND="
|
||||
sys-apps/yarn
|
||||
dev-lang/typescript
|
||||
"
|
||||
|
||||
MY_YARNOPTS="--offline --non-interactive --no-progress --verbose"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-node-20.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user