commit:     f7214df4ccb51f3fadd150f5d2cbc083572d0d1d
Author:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 26 15:31:24 2024 +0000
Commit:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Tue Nov 26 16:20:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7214df4

net-im/synapse: add 1.120.0

Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>

 net-im/synapse/Manifest               |   4 +
 net-im/synapse/synapse-1.120.0.ebuild | 242 ++++++++++++++++++++++++++++++++++
 2 files changed, 246 insertions(+)

diff --git a/net-im/synapse/Manifest b/net-im/synapse/Manifest
index d611459d379d..009c4fab8c0b 100644
--- a/net-im/synapse/Manifest
+++ b/net-im/synapse/Manifest
@@ -1,6 +1,7 @@
 DIST aho-corasick-1.1.3.crate 183311 BLAKE2B 
8dfcbba0b9d94e55eae739b16f5c6474baa43ee7854c5ca792f426a9f46fb0eece79cd493b804e51449181bcad338b96819fe977c02c9907654d713e26b9f830
 SHA512 
ba422a54688c4678fcf16e34fdf3ed06c333e6e3fc8b75af9272a215add494d43ebaef319021134b61327fd5d3572aec0dc655b714ffb3bc71ba3c265c9ebb69
 DIST anyhow-1.0.89.crate 47078 BLAKE2B 
fc824e72891bff0cc7aa3b538adfb9af7dc843ab6ed12b8b04eb70e62d32aae1decb9090621d3245dbe89841e73080d2d86973b4aee50873e798956da9b3faa6
 SHA512 
3c09317089ed78601a56c626700d12c0b49396e25fed9a9f05a2dbfbd6f91ad426c430633006a4043decd1f70a85c161c4f8dd7de0e4c00b82a169b89dda8da0
 DIST anyhow-1.0.92.crate 47459 BLAKE2B 
b176add2ca8f1ec5e14795f0bbae740e0c99851427c89cc8c08fe19ae2bbe145d8a97307e61902e7d6d787ba714a16856efd3e952a68d2afdb5f83fe1f5a9c6d
 SHA512 
0820bbbddbfc8bd00fd9cb8a243fe3ab163cecb94c80527f9f46fe0dfd04a3175c3d2ff27dcf9264297cfc1e6c3b45cbb5c563583f843f94aa711349cd6171c0
+DIST anyhow-1.0.93.crate 47490 BLAKE2B 
1c64b24d3df3307430deb8189ded345ee2858c1990fc343f2400bd67b6d79ee2cf90876326fb29ea311bd857a941fc8319dccbe6c81f2cca2c085dc0c1fffb27
 SHA512 
237b36bdefeaf8dd2f7d4c5c92d8f7627a5206ded5fa3dafd5710f2fbd3dd7d7187d4a8ae917ae03d0cf06bc8d101a7663bb7bb022507ac1ec88577a37475efc
 DIST arc-swap-1.7.1.crate 68512 BLAKE2B 
5ddeffd2ae8af4125a5b43d4a0a1afc7948533bf037d8cd3e47603c13b57b156618280d99b840bf318b25b6eb29400ad68499695e182acdc05bc5f621c42ee16
 SHA512 
070fa8dd17b380b6d7d72f6f45c84e591de9a9770b9662351e7a41af03798bf5e34d185a5fcb948f4d8ac5e210a33acd465c39eff6097662c2442b34ee3dbdff
 DIST autocfg-1.3.0.crate 16524 BLAKE2B 
7d5a03853d6b4f0da08d8e139fb200da21e47fa7e50d1956270d0ff0cc496f660f8f800122c95eee9ba98d9210ab200c3010b782097483d12d6be4ac0df0e7c9
 SHA512 
a5570b955d57a7183ba148b335837dc5af24b202e80681027536d33fe2822509ba644fc70c29f018c893285ced2bf6774f44ca6c59f7c7e2226d5349cf7c3635
 DIST base64-0.21.7.crate 82576 BLAKE2B 
25cc8761c14220981ff4ed332058f6179948080cbfa2b225ec1d1602e4af14cd470c969e8b7049117e6fc51a5a24e06b1d27bab844486ecb76409d12e0581d5d
 SHA512 
c6986d88dd9aa081d914f35b4174be4ba874848657ac4b5e63b9b45af765d973289c548ccb5a01584edfc0d8d79ff5be25b51365295d6e7a311bd7f0ae3c0cb9
@@ -63,8 +64,10 @@ DIST ryu-1.0.18.crate 47713 BLAKE2B 
409cdf4b4e77685394018371e91ad6fdb175ac57e1df
 DIST scopeguard-1.2.0.crate 11619 BLAKE2B 
8b7e9ed6cefef9ee55407fb9690d57a2a98bb93e5105aeebdb475a52485e9e185255249e1dce8f83cd80534e7402d485aac3efa7e8493b13135de27550cd4bc4
 SHA512 
6247719a15fe1e4e2d179127b9a934bd2f99367724f41175ed9522f58824b6bc69b35002eae66b35880375ff61d77ac43ddaa78cbde7160a35183a1da32d3fbb
 DIST serde-1.0.210.crate 78338 BLAKE2B 
b3621d1313312177a346313e6e384fe9660f74eefb18e6cffa39fc2aadc0ab73be84b9037c59b716e5feafcd73f4f054f83e6d17d82746984b3064bf8d3ed338
 SHA512 
0d853ca51543ae8b4a0c70204ff4e559a4eec77af3d3bdcfc75c5905c80d4ffd1bd9eb8258ea4f6ecfbdd26477ecac7dd698d84d86759fa32e03a9cce02fa4ae
 DIST serde-1.0.214.crate 78523 BLAKE2B 
c701f316a3204625d475668d2722991d75c8d9c573ae32e9175ccf99780fbe0c9c9d1dd0b4bac35f2cc91aca888c7f3dc41af2842dd833ab82776a38c2a2f6c0
 SHA512 
100eac65a39b9b9c32c1671d36fa9cf8aca84a2673e24c2521fdbdb3ed9f932c71548f3f1a26b1e73dd7c92a34ffa8ed1c76eb173fa20d6e85736cdf8dc9a8ee
+DIST serde-1.0.215.crate 78527 BLAKE2B 
ca8e1175839ca45a4d78a155f5943396211408a85e0840b065c52948188010653d68fc4fc7b63bf2c39a11a6988abb7f6f3c6d878ca1373596e0a5d62186e109
 SHA512 
3da13f1a74393f1fcb6d659b5e060a11ecae358f55cdf4a2fd05bfc863fea6f75d3140d3bc74902f8feba8cddf7dae71a3f4e4e78e78e1b08ed46b3e4900281f
 DIST serde_derive-1.0.210.crate 56020 BLAKE2B 
b346e574c99b6a8b12dfc29b20a4fd2daf8abfabd3714ccfde059a3a1f14a5628d4acf6a03f8076174fd28adfdb7cb9bbdb8ac0d4403aa2f43e917eed4b08028
 SHA512 
1c54d70a55007c00d3ff3d8c2096f4f9966431ba7bfd9195bcf41932de71b71c4ab934f9a8c5067cb56a042742cf0efab07377dbabf12feb1af6d20399de00b5
 DIST serde_derive-1.0.214.crate 56630 BLAKE2B 
c284561109e5d60e103f1bb421e4da48f35c5046aa52359177e286449cf8fe51a92f6295f5bec3dc4cd737025e8d0bc618436e2f7640873f66bc5b77bb4f450a
 SHA512 
70bc0a31d344cfec8d30f2034beab25097ef76ab8d89947b21753f737759e5d4e60e5596e0c7994a7cc35993bae01148120f6cdf5239be25fb243056effa27f0
+DIST serde_derive-1.0.215.crate 57092 BLAKE2B 
f28bb66017599afdcd8d45c514b8e07854eb944c1dcf931e052a01ce421e0de6c20c13b3867da5922e2153e25ce88bf9fa27e2e68ddc9d212977f71fa0bd6352
 SHA512 
cae686bdf10c683149956ffe1c64fcf3e9b9bf0cd6e33b4ce7429d0ca35b9fdb55443693866c1202fa79348c6ea0f49ab3be3d5f857de4ae0818d2b4c8c67d9b
 DIST serde_json-1.0.128.crate 149520 BLAKE2B 
246eb865f64a0f161b79f3d4f783dbadbc930c4a19edb6c0fe8f0c6145c7c47be4b692d3e084b1b500820ece8e94214820978cf898926dd805bd431fb411bbc9
 SHA512 
9e6290d3a6a971b3c37bbc97097b8179e64c655779b43c7b75303a35ef7030f5401b3a5f62cbc95a7bd5f42ecbefb0b469234d78a76c8c1597726d8e08908a7d
 DIST serde_json-1.0.132.crate 150549 BLAKE2B 
a49aef7737fad2e6f6ec79cb6da00c734e7de7ef16be321846d1f6229534b58e15ceb0f6306eeae6f85bf07431d82959c0a56ed1394d21a67b65c8c48e971f3f
 SHA512 
9d157ce7d705fee8245569e7c577310782b69675a6e459f21904544b824a1ca5c9b445d17419fee438dfeb6fcc35343ba14e022043fffade0210b6d2c1b5795e
 DIST sha1-0.10.6.crate 13517 BLAKE2B 
85ad8dcd237125945f6f9c2d7a48bc9802dfe8398a2bac86ddb96763486092fa18e80a2e69f89cfd6e95599d34d60ced33b26a68cbbe39bf158238a79433584b
 SHA512 
fd37be7e3f1d4b6addd313a36b55215fb70abd21be7831b71de28bd3eb03b7352817d8a7b1a166df002c3a23eadc8224e49edd4a37556c0e5357565305d4128f
@@ -77,6 +80,7 @@ DIST synapse-1.116.0.gh.tar.gz 8783785 BLAKE2B 
1375c30a28b2dace135af18ab15de2b20
 DIST synapse-1.117.0.gh.tar.gz 8786739 BLAKE2B 
d2466ee09d2c9810adcec364855f056e9019b36b653cdcefa9d39d6c6e8d10cc43fbf09772143363e1810569e183d3ba4707c79a45c510901720a7225b196dfa
 SHA512 
9e2e2ba66672c3d8748e1c09e8b508b2c1255ac2d2fecb6b99ddd5badc806d8727578202a75ae95db6c05702ad93aa54019d14fe90e5a77f199a7664803810ef
 DIST synapse-1.118.0.gh.tar.gz 8798820 BLAKE2B 
a7eb3d1652f08a3eaef609f9a381dd6a28bb8ce809c2c6764cfbd16ea99fca36fcd200d862d0ae32f76366be7f0eb0d3250b74a229c912c9b58c533f4d3ac290
 SHA512 
d65f44588c9ec16f3c76e5f0129ee60bc08764d0af929d841570671aa83194b2a14417220612b85e94daa16282c75956599b76e171591c2a9a0f11c95e3e1a06
 DIST synapse-1.119.0.gh.tar.gz 8813426 BLAKE2B 
0f340939e039ce5d3bf472cba5f7cc7502d23776f2a6f37fd52d1d44c05567703107de69b41c9d67c9b1621f105d8d2fdb4963af46405bc54e0354c491c68cd5
 SHA512 
92403299746d15cc379715b61ccc21da762a78f2e48bbd73b9e9259222c23edc8315d9aaa417dc1305dfde0f18dc0396401b1bb00bad723a8f80a5a5d8c9e48e
+DIST synapse-1.120.0.gh.tar.gz 8819007 BLAKE2B 
0e5f2e2555a5fbfb81294913d3db1c0729a52acadb9eda1cc302b15d813071c92dae28409a3b0597d871c13d3b7c53f5e38e0dd5eab9804a18b76956b351f89e
 SHA512 
624290effaced76b8461bbcb103f55411022ea726f6a5ceb31d525446b5e7d669b5bd8fbe8a916a8565197b34f3f76a59f50236fe72793c38883c9cb01969b56
 DIST target-lexicon-0.12.14.crate 25508 BLAKE2B 
5ebb6b49e5c3b0057959557651287d4bf5ffe5b499340019ff64d5fc3b64e780e344982e358c94b1b25a20bf0f526a584aeecc704695b50a55cc268dd65edb97
 SHA512 
3410ecc0faf854f49c41c99f83972960e67065b1e0e78557a7c4996d996109bfd167d2121a019f5256f996c896cd45af032038ab7918fdcc6ee6311693ce951a
 DIST typenum-1.17.0.crate 42849 BLAKE2B 
a6d1162050679e2c4ab2467f3a77d301f6861882eb7c9749f31d047f383dd5bd2ed5846ad63eed99ccc04d6ac36cc697a305861e1d65880b4d2ef04ee0a79b94
 SHA512 
99773d5d9f850c0602db4bb67dd062b0ade6f086e155216f1bb2fb6569461ba7e1b7c2f2af81ea8833bc3bfcf3fe5033edecb7c438adae63f59d3e30cf63a508
 DIST ulid-1.1.3.crate 11596 BLAKE2B 
a079fc34f5af9de89469d1edd5a53c1bc1a0f9bff8ce731c185345fe4067432a121efc6a04ac6cf377fd03c89558067e7d5d52c4b9dfd23e7055ce5af89e84b3
 SHA512 
a8f6ab3601417e7a46a763bb28722c3770fb0c2dea340c02a8e96d2e3597a304589745c65278c90bbc64f5153501a2a85321386669fda71ad7252ec67dd749df

diff --git a/net-im/synapse/synapse-1.120.0.ebuild 
b/net-im/synapse/synapse-1.120.0.ebuild
new file mode 100644
index 000000000000..334978bba602
--- /dev/null
+++ b/net-im/synapse/synapse-1.120.0.ebuild
@@ -0,0 +1,242 @@
+# Copyright 2022-2024 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..13} )
+
+CRATES="
+       aho-corasick@1.1.3
+       anyhow@1.0.93
+       arc-swap@1.7.1
+       autocfg@1.3.0
+       base64@0.21.7
+       bitflags@2.5.0
+       blake2@0.10.6
+       block-buffer@0.10.4
+       bumpalo@3.16.0
+       bytes@1.8.0
+       cfg-if@1.0.0
+       cpufeatures@0.2.12
+       crypto-common@0.1.6
+       digest@0.10.7
+       fnv@1.0.7
+       generic-array@0.14.7
+       getrandom@0.2.15
+       headers-core@0.3.0
+       headers@0.4.0
+       heck@0.4.1
+       hex@0.4.3
+       http@1.1.0
+       httpdate@1.0.3
+       indoc@2.0.5
+       itoa@1.0.11
+       js-sys@0.3.69
+       lazy_static@1.5.0
+       libc@0.2.154
+       lock_api@0.4.12
+       log@0.4.22
+       memchr@2.7.2
+       memoffset@0.9.1
+       mime@0.3.17
+       once_cell@1.19.0
+       parking_lot@0.12.2
+       parking_lot_core@0.9.10
+       portable-atomic@1.6.0
+       ppv-lite86@0.2.17
+       proc-macro2@1.0.89
+       pyo3-build-config@0.21.2
+       pyo3-ffi@0.21.2
+       pyo3-log@0.10.0
+       pyo3-macros-backend@0.21.2
+       pyo3-macros@0.21.2
+       pyo3@0.21.2
+       pythonize@0.21.1
+       quote@1.0.36
+       rand@0.8.5
+       rand_chacha@0.3.1
+       rand_core@0.6.4
+       redox_syscall@0.5.1
+       regex-automata@0.4.8
+       regex-syntax@0.8.5
+       regex@1.11.1
+       ryu@1.0.18
+       scopeguard@1.2.0
+       serde@1.0.215
+       serde_derive@1.0.215
+       serde_json@1.0.132
+       sha1@0.10.6
+       sha2@0.10.8
+       smallvec@1.13.2
+       subtle@2.5.0
+       syn@2.0.85
+       target-lexicon@0.12.14
+       typenum@1.17.0
+       ulid@1.1.3
+       unicode-ident@1.0.12
+       unindent@0.2.3
+       version_check@0.9.4
+       wasi@0.11.0+wasi-snapshot-preview1
+       wasm-bindgen-backend@0.2.92
+       wasm-bindgen-macro-support@0.2.92
+       wasm-bindgen-macro@0.2.92
+       wasm-bindgen-shared@0.2.92
+       wasm-bindgen@0.2.92
+       web-time@1.1.0
+       windows-targets@0.52.5
+       windows_aarch64_gnullvm@0.52.5
+       windows_aarch64_msvc@0.52.5
+       windows_i686_gnu@0.52.5
+       windows_i686_gnullvm@0.52.5
+       windows_i686_msvc@0.52.5
+       windows_x86_64_gnu@0.52.5
+       windows_x86_64_gnullvm@0.52.5
+       windows_x86_64_msvc@0.52.5
+"
+
+inherit cargo distutils-r1 multiprocessing optfeature systemd
+
+DESCRIPTION="Reference implementation of Matrix homeserver"
+HOMEPAGE="
+       https://matrix.org/
+       https://github.com/element-hq/synapse
+"
+SRC_URI="
+       https://github.com/element-hq/${PN}/archive/v${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+       ${CARGO_CRATE_URIS}
+"
+
+LICENSE="AGPL-3+"
+# Dependent crate licenses
+LICENSE+="
+       Apache-2.0-with-LLVM-exceptions BSD MIT Unicode-DFS-2016
+       || ( Apache-2.0 Boost-1.0 )
+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
+IUSE="postgres systemd test"
+RESTRICT="!test? ( test )"
+
+# <twisted-24.10: https://github.com/element-hq/synapse/issues/17075
+RDEPEND="
+       acct-user/synapse
+       acct-group/synapse
+       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/jinja2-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-10.0.1[${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/python-multipart-0.0.12-r100[${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-24.10[${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="
+       acct-user/synapse
+       acct-group/synapse
+       dev-python/setuptools-rust[${PYTHON_USEDEP}]
+       test? (
+               ${RDEPEND}
+               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/element-hq/synapse/blob/develop/docs/upgrade.md";
+               einfo
+       fi
+}

Reply via email to