summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Vaněk <arkamar@atlas.cz>2023-06-07 15:07:49 +0200
committerJoonas Niilola <juippis@gentoo.org>2023-06-18 15:08:16 +0300
commitf34d5e251d92564f22eddf926fc3a181fe89c5dd (patch)
tree0b92a289b00b259c4ddf852b2a48990250d2b098
parentsys-process/daemontools-encore: Fix call to undeclared function sigblock (diff)
downloadgentoo-f34d5e251d92564f22eddf926fc3a181fe89c5dd.tar.gz
gentoo-f34d5e251d92564f22eddf926fc3a181fe89c5dd.tar.bz2
gentoo-f34d5e251d92564f22eddf926fc3a181fe89c5dd.zip
net-im/synapse: add 1.85.2
- add two bdeps for testing of optional redis support Bug: https://bugs.gentoo.org/907950 Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Closes: https://github.com/gentoo/gentoo/pull/31330 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
-rw-r--r--net-im/synapse/Manifest2
-rw-r--r--net-im/synapse/synapse-1.85.2.ebuild208
2 files changed, 210 insertions, 0 deletions
diff --git a/net-im/synapse/Manifest b/net-im/synapse/Manifest
index 2bb18dfa856b..0120836e8b7d 100644
--- a/net-im/synapse/Manifest
+++ b/net-im/synapse/Manifest
@@ -17,6 +17,7 @@ DIST lazy_static-1.4.0.crate 10443 BLAKE2B 25b2e61bbac48f0dcbc79c81d7bf01f2403d8
DIST libc-0.2.135.crate 604591 BLAKE2B 195f342d1136f63c308371f001c9fc270e151fbda7b316321d319b57bcd46f206bb8b06196f5e9cf8a35b0c397d909f370aef8b119f4bc0eb75b9e245d8e7b4a SHA512 dc8e8fc918c5184de6ae7414b523b06ae91cde252e837e863f8477e9722ccb206a0b27762ac204830e8d09071413029c03802a3ed93bff274c33b2a4055e7806
DIST lock_api-0.4.9.crate 25685 BLAKE2B 8adf5c3cccebdf6aff6ec977f230cd2a208b0b188ef57deacbbc6019431f0ede1a760b2384ba3cb49c96b8a589dc56c0f46a6359b3e62277e7ae1a1c3f586fa3 SHA512 9215381d9bb6b80d217c73a900db43df043b3e939b5bd7a292a02e9ab911cf0eacd8f883d35bdf72b3a0e78df8f1bc3e843ca4c775294c7a7a03091dc1a74990
DIST log-0.4.17.crate 38028 BLAKE2B b46be3719fc0a53e50b1f342762e188587e9f1ceb692c72473ce2663edfb8253742d30024e68c1444780ab7fc0e2d5b0601b8ea7228dc3405a9342a57548e605 SHA512 2477d88db42b1d92c30708d88823212e236f613b3465e85eb425f83f8d16fadfaf0352f06c2999a1852102edd2f6ffb10ecb539d8a3b6c48f552a25622ccffa2
+DIST log-0.4.18.crate 38339 BLAKE2B c233a7f792b052d6a23badc839b2e01c0a7a977849a476a0f5e82608037fbb4387c48287283845eaa1e02ce82b1b79bfa020fb49515aaedc784f1c77677bb710 SHA512 c499ab111d0fdb3297f08a4dc538b93d5a9017e6f1cd63dfdb84a799cc445f181379ba02db83072c943ae2e1801bd6f6f3d075c86819108389fbe0e90c87d456
DIST memchr-2.5.0.crate 65812 BLAKE2B 57966413a1f933dcb2d2d4ccb29c247070f65a83299b2a9f5aa83f5a48a5c5f1c4c7c632fa63bd19f9508e9291e7258db2f16e2813a56fd84e0856f70f1e67ab SHA512 444a163b484c233e78c0e2e4d51f01ce2da93d7d29f516a95e4b0866b20bdfd3f34137653abed53eb70387991ee3e2b5937d8d4360a85bbcb50a93005a75defa
DIST memoffset-0.6.5.crate 7686 BLAKE2B 9a797388702389076c426052c3d54dc62802d5db8bc5c9c83990429f2ffaec4fab4c7dd3f09cd0704d1ea555e87976563bb43408ba54b5e66ce7e406d4604009 SHA512 11bdd9185b99dfee8e659e051b09ee301c7142a372a8117864745a5085c015436d2efbb1478192886f09cbc562529e209d2e3325d94938a64bc75b1d91d2bf3f
DIST once_cell-1.15.0.crate 31460 BLAKE2B ae4481883865abe6a684d63520fb2e91b64d6ccdd0374464200015640122bd68b8a769309773226c8a31d0119f450ee821a2bd35c346fd86adb4474ea7c28fcf SHA512 934a7c3631e9ca4fa78d9577b6672ca0b2f926a8d6c3be9542b906c5968033446f98f76ae6f368a1a5b92ab9064c31a57d74ab6d2097108029a7ea951541ff7e
@@ -48,6 +49,7 @@ DIST syn-2.0.10.crate 240095 BLAKE2B d2def2e1354d41bfcc3ad9cfd80ed611a56fd8560dc
DIST synapse-1.82.0.gh.tar.gz 8239769 BLAKE2B b61c67af76255b240618497cdbf2ab7fdad0050e913a4ac5e3fc0a045a9566128315c68d4844e9f20c842872cb51d645fccfe47892e28da5ae45394ca6d5a46f SHA512 2c62e795cc927c1352d0387ca59fe9eceeefbff1aef93a7510dd423bead81f66a3bb579426c3f6ec592d4dda4743613131f895e5e626eb5aeb05d72b94d91dd0
DIST synapse-1.83.0.gh.tar.gz 8259074 BLAKE2B 864f38b0f45577424e92ec589fb7290a0a1a6d316342788fb842b6bd92198ff35ac12669b1be966456a3ecf2831e1a678efd1117979ddafbc64b4c80cb0ace5a SHA512 c80bde4741b26182da52c6fc623075eda7cbe6c5aa74edcec4a3a52aabdba86e95d8f8433e071ee82664b5bcc75a5b25600b7b788b80ee217226ee045e2affad
DIST synapse-1.84.1.gh.tar.gz 8275282 BLAKE2B c37327ddfd0c41e29ffeff25a26fed9e2fed3346dbd4f3910d32488b86339c8c53d4a7579ef77b7d18f00db98c603211e59e72ee027d111af5c7273a94f29519 SHA512 c98a16229532fab49e5457bfd46bd61d27736c49eee5c125f9136f107b5a5c5c3b341e8a20d1afb8d9163562bf20783ed4950f1ae2057a4a0ec8035fcbf459d7
+DIST synapse-1.85.2.gh.tar.gz 8285129 BLAKE2B 1f9ba92a8823bc01b8c18baba862dc5e5f9cf5e8aa42ecb321c6c99ab48b9e1d0122969f481f033a2a0db0e273e9e8179e0c936a2d65377e60302db4a066f4ad SHA512 8e025eeb34dbf6fcaa00bde37782d5442584e454b671fd7f49aec809977a4cf1af1aff42957db946438700b0f8c24f1be54aa4c73b2e03de40cc5aa6e66943e6
DIST target-lexicon-0.12.4.crate 23020 BLAKE2B ad9780b9478b00b4fdcb07bd016d83216695413090ac29cca06388c3790e2832c978b1c7e69f6d34bb6fc9adc39c0a0b6b6636e50a9715a9f5f16445dba22d19 SHA512 194fe1946ad8d9fdb383bf8a65374e24d216382c1ed5379dabc98d58842512624c32838b8d6d0658d866f6559d37f1343a30c5809e8914dd85790399252b3e06
DIST typenum-1.15.0.crate 40741 BLAKE2B 5752d80396d0a37b0069b98ace9efe96d94ccaf41b33b8149c8b8c6a767537dbffe64251bbf61f3812465ecbc8cb45544f177dc97ac9735d84454282e4d1ed66 SHA512 a3c1ceac85e1aed98d0829449c35f4f36db860218b955b4e5f8f01da1d27ee6213f3c60e2b25c3745dcd67369049da5de737a9473fa9402db99cf7cddeb42288
DIST unicode-ident-1.0.5.crate 35455 BLAKE2B 7e14ce97ac53a88ccec015dea690918a673dc5b49e44de7fdcb5421871da35c4f514c6db9a363d6f4bfcf2e9a61a50a593d345d0b6f388ea882b17a00cd0335d SHA512 d355370daac356d900cd4c0a792d6c0eff114524c4bffce4d7e74469fe2117883ee00bf0e27d950b72e88739473f2045d5f83440a0aedfede97b4d9163b64a6c
diff --git a/net-im/synapse/synapse-1.85.2.ebuild b/net-im/synapse/synapse-1.85.2.ebuild
new file mode 100644
index 000000000000..95b0f2d2a014
--- /dev/null
+++ b/net-im/synapse/synapse-1.85.2.ebuild
@@ -0,0 +1,208 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{10..11} )
+
+CRATES="
+ aho-corasick-0.7.19
+ anyhow-1.0.71
+ arc-swap-1.5.1
+ autocfg-1.1.0
+ bitflags-1.3.2
+ blake2-0.10.6
+ block-buffer-0.10.3
+ cfg-if-1.0.0
+ crypto-common-0.1.6
+ digest-0.10.5
+ generic-array-0.14.6
+ hex-0.4.3
+ indoc-1.0.7
+ itoa-1.0.4
+ lazy_static-1.4.0
+ libc-0.2.135
+ lock_api-0.4.9
+ log-0.4.18
+ memchr-2.5.0
+ memoffset-0.6.5
+ once_cell-1.15.0
+ parking_lot-0.12.1
+ parking_lot_core-0.9.3
+ proc-macro2-1.0.52
+ pyo3-0.17.3
+ pyo3-build-config-0.17.3
+ pyo3-ffi-0.17.3
+ pyo3-log-0.8.1
+ pyo3-macros-0.17.3
+ pyo3-macros-backend-0.17.3
+ pythonize-0.17.0
+ quote-1.0.26
+ redox_syscall-0.2.16
+ regex-1.7.3
+ regex-syntax-0.6.29
+ ryu-1.0.11
+ scopeguard-1.1.0
+ serde-1.0.163
+ serde_derive-1.0.163
+ serde_json-1.0.96
+ smallvec-1.10.0
+ subtle-2.4.1
+ syn-1.0.104
+ syn-2.0.10
+ target-lexicon-0.12.4
+ typenum-1.15.0
+ unicode-ident-1.0.5
+ unindent-0.1.10
+ version_check-0.9.4
+ windows-sys-0.36.1
+ windows_aarch64_msvc-0.36.1
+ windows_i686_gnu-0.36.1
+ windows_i686_msvc-0.36.1
+ windows_x86_64_gnu-0.36.1
+ windows_x86_64_msvc-0.36.1
+"
+
+inherit cargo distutils-r1 multiprocessing optfeature systemd
+
+DESCRIPTION="Reference implementation of Matrix homeserver"
+HOMEPAGE="
+ https://matrix.org/
+ https://github.com/matrix-org/synapse/
+"
+SRC_URI="
+ https://github.com/matrix-org/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+ $(cargo_crate_uris)
+"
+
+LICENSE="Apache-2.0"
+# Dependent crate licenses
+LICENSE+="
+ Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD MIT Unicode-DFS-2016
+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64"
+IUSE="postgres systemd test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ acct-user/synapse
+ acct-group/synapse
+"
+RDEPEND="
+ ${DEPEND}
+ dev-python/attrs[${PYTHON_USEDEP}]
+ dev-python/bcrypt[${PYTHON_USEDEP}]
+ dev-python/bleach[${PYTHON_USEDEP}]
+ >=dev-python/canonicaljson-2[${PYTHON_USEDEP}]
+ dev-python/cryptography[${PYTHON_USEDEP}]
+ dev-python/ijson[${PYTHON_USEDEP}]
+ dev-python/immutabledict[${PYTHON_USEDEP}]
+ >=dev-python/jinja-3.0[${PYTHON_USEDEP}]
+ dev-python/jsonschema[${PYTHON_USEDEP}]
+ >=dev-python/matrix-common-1.3.0[${PYTHON_USEDEP}]
+ dev-python/msgpack[${PYTHON_USEDEP}]
+ dev-python/netaddr[${PYTHON_USEDEP}]
+ dev-python/packaging[${PYTHON_USEDEP}]
+ dev-python/phonenumbers[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP},webp]
+ dev-python/prometheus-client[${PYTHON_USEDEP}]
+ dev-python/pyasn1-modules[${PYTHON_USEDEP}]
+ dev-python/pyasn1[${PYTHON_USEDEP}]
+ dev-python/pydantic[${PYTHON_USEDEP}]
+ dev-python/pymacaroons[${PYTHON_USEDEP}]
+ dev-python/pyopenssl[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/service-identity[${PYTHON_USEDEP}]
+ dev-python/signedjson[${PYTHON_USEDEP}]
+ dev-python/sortedcontainers[${PYTHON_USEDEP}]
+ dev-python/treq[${PYTHON_USEDEP}]
+ dev-python/twisted[${PYTHON_USEDEP}]
+ dev-python/typing-extensions[${PYTHON_USEDEP}]
+ dev-python/unpaddedbase64[${PYTHON_USEDEP}]
+ postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] )
+ systemd? ( dev-python/python-systemd[${PYTHON_USEDEP}] )
+"
+BDEPEND="
+ dev-python/setuptools-rust[${PYTHON_USEDEP}]
+ test? (
+ dev-python/hiredis[${PYTHON_USEDEP}]
+ dev-python/idna[${PYTHON_USEDEP}]
+ dev-python/parameterized[${PYTHON_USEDEP}]
+ dev-python/pyicu[${PYTHON_USEDEP}]
+ dev-python/txredisapi[${PYTHON_USEDEP}]
+ postgres? ( dev-db/postgresql[server] )
+ )
+"
+
+# Rust extension
+QA_FLAGS_IGNORED="usr/lib/python3.*/site-packages/synapse/synapse_rust.abi3.so"
+
+src_test() {
+ if use postgres; then
+ einfo "Preparing postgres test instance"
+ initdb --pgdata="${T}/pgsql" || die
+ pg_ctl --wait --pgdata="${T}/pgsql" start \
+ --options="-h '' -k '${T}'" || die
+ createdb --host="${T}" synapse_test || die
+
+ # See https://matrix-org.github.io/synapse/latest/development/contributing_guide.html#running-tests-under-postgresql
+ local -x SYNAPSE_POSTGRES=1
+ local -x SYNAPSE_POSTGRES_HOST="${T}"
+ fi
+
+ # This remove is necessary otherwise python is not able to locate
+ # synapse_rust.abi3.so.
+ rm -rf synapse || die
+
+ nonfatal distutils-r1_src_test
+ local ret=${?}
+
+ if use postgres; then
+ einfo "Stopping postgres test instance"
+ pg_ctl --wait --pgdata="${T}/pgsql" stop || die
+ fi
+
+ [[ ${ret} -ne 0 ]] && die
+}
+
+python_test() {
+ "${EPYTHON}" -m twisted.trial -j "$(makeopts_jobs)" tests
+}
+
+src_install() {
+ distutils-r1_src_install
+ keepdir /var/{lib,log}/synapse /etc/synapse
+ fowners synapse:synapse /var/{lib,log}/synapse /etc/synapse
+ fperms 0750 /var/{lib,log}/synapse /etc/synapse
+ newinitd "${FILESDIR}/${PN}.initd-r1" "${PN}"
+ systemd_dounit "${FILESDIR}/synapse.service"
+}
+
+pkg_postinst() {
+ optfeature "Improve user search for international display names" dev-python/pyicu
+ optfeature "Redis support" dev-python/txredisapi
+ optfeature "VoIP relaying on your homeserver with turn" net-im/coturn
+
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ einfo
+ elog "In order to generate initial configuration run:"
+ elog "sudo -u synapse synapse_homeserver \\"
+ elog " --server-name matrix.domain.tld \\"
+ elog " --config-path /etc/synapse/homeserver.yaml \\"
+ elog " --generate-config \\"
+ elog " --data-directory /var/lib/synapse \\"
+ elog " --report-stats=no"
+ einfo
+ else
+ einfo
+ elog "Please refer to upgrade notes if any special steps are required"
+ elog "to upgrade from the version you currently have installed:"
+ elog
+ elog " https://github.com/matrix-org/synapse/blob/develop/docs/upgrade.md"
+ einfo
+ fi
+}