diff options
author | Petr Vaněk <arkamar@gentoo.org> | 2024-08-29 16:58:43 +0200 |
---|---|---|
committer | Petr Vaněk <arkamar@gentoo.org> | 2024-08-29 17:26:16 +0200 |
commit | 32c2b313e6237512edd0fd69bb784c28093c6021 (patch) | |
tree | 5cc8c36348e2ecdcf7296e8b85ad11b9ad8d27ba /net-im | |
parent | dev-libs/libcpuid: add 0.7.0 (diff) | |
download | gentoo-32c2b313e6237512edd0fd69bb784c28093c6021.tar.gz gentoo-32c2b313e6237512edd0fd69bb784c28093c6021.tar.bz2 gentoo-32c2b313e6237512edd0fd69bb784c28093c6021.zip |
net-im/synapse: drop 1.110.0, 1.111.0
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/synapse/Manifest | 6 | ||||
-rw-r--r-- | net-im/synapse/synapse-1.110.0.ebuild | 243 | ||||
-rw-r--r-- | net-im/synapse/synapse-1.111.0.ebuild | 244 |
3 files changed, 0 insertions, 493 deletions
diff --git a/net-im/synapse/Manifest b/net-im/synapse/Manifest index d1b9b31f24ca..d509694e9e9b 100644 --- a/net-im/synapse/Manifest +++ b/net-im/synapse/Manifest @@ -28,7 +28,6 @@ DIST js-sys-0.3.69.crate 81083 BLAKE2B 529c94cd2289883b3b43a848d47d8ae025ad09095 DIST lazy_static-1.5.0.crate 14025 BLAKE2B df29e0e3d1c061815bdd608b41074436024dc407d454f32517705ab04b2fe06075e310086c5e4961df0b4885e91021589d0bca2c1cbe6f0aeffa3ff1b3fd4637 SHA512 6d2f9887cd7f34f019644e42f02f2bf0111accd73aeaa60973ba0b039b6774670debece1ea9a6978e923208ef5d3ab7326473ee3560c078817f0f7ab8ed0f65f DIST libc-0.2.154.crate 743304 BLAKE2B 25ff132ec29b78dec455f0a1fc9fbfc744ee0d6eb410aba05ec6b1b08af9d83ec61e56f840f86cb833f590e8cdec7f67ce6e7b630ee227a36581650c81298b84 SHA512 891a36cf153a9f4d58793412c104504c57280994e428ce8ba208673a924b2de38cc21eece09b91696eaea3b2359606dbe9f1509f9bf364bdabdb366ef2dd0f61 DIST lock_api-0.4.12.crate 27591 BLAKE2B 4504d146a114d8f8e1fe9ae70b993c713cbfe884dd69c61c54dec978733b95a853c3e5af26f237e48ebb4ee9dbebfce0f6c06067f74a3d122e92f5ace40e22d7 SHA512 525d971f495449bbd02eb70fcd84d4aab05ca582142144a5f314f9aa67ad4c5b4c98dc919a416d0ed2e555063eab037a441d671d56b633f2cb75dfab5d99bcf7 -DIST log-0.4.21.crate 43442 BLAKE2B 8429b3270794d3e2c7f7d5b58bd4fa1abb9d4807ab3a1ac980ac81c11d9544635003d8cf2e608c2c0094865459108a2879f280278e121df68d09bc1561d604ba SHA512 0becc1a06b6e7048cff6c0bb8df49a16ac4772133c00239e9e9459c0811e7715c500f440cf1a9aef8d7ad74f57434559ca9b55917f588b8e476cf36eb6d4e10b DIST log-0.4.22.crate 44027 BLAKE2B 831dc5092db05123bf2e909eafa708339983edece9bc8cb802f0ab418d47ddc5045a72c1b58bc7c46ffa68080eebd0fd55d6e4f5b3d5ad3b0bc6b2ea0dcaace1 SHA512 bd7baa9c8a5523fd0864a53bcde955d484cacd782412b5b02c890b89dbf62137624da3a27337a310dd8f62bcc6606925a42bbd4ca161a3b7936ea4ff96bc0d71 DIST memchr-2.7.2.crate 96220 BLAKE2B 2399064b6db21838d4aa0b25ed0bf04940ee3820741658cc6bf62e5ade08f41320df743ff13f99b2781da7b844e18deb1cfe25fe570f0e93f98ff03ca5d442e3 SHA512 cadcb4239c7f3aaab042592c5186770a225621e32f8583052fd3dbebb4a6d9b99be28f589b39b5ca36cb2d56fb3709e7d4ba91838ebb882e28e51280c02bbc40 DIST memoffset-0.9.1.crate 9032 BLAKE2B 0aab55fe084134bb599c52d77c96400db40949b1013e7037747ada4fcec8dc4a124b6f3755f04b36e057eb2fb4a6bd6f07d6eebcf166f8a71405ef434d802fbf SHA512 3a236c0f481e36973b9f805e454c2efe4dd375e6b4ee406b57145136c70d5fbf4e1183d563ebf3b5fbde7363bbf5f08f0d88e507aae5bda4cc75664ecd0e33aa @@ -56,11 +55,8 @@ DIST regex-automata-0.4.6.crate 617565 BLAKE2B 8f1e2a3cc1d2d50478776281d2bf10164 DIST regex-syntax-0.8.3.crate 347497 BLAKE2B 9ac2f63098ffa3fff51fe2bc0bcf9ef164cf9389a909a3f0cb668d2598e7ca65d573e47d571ee2e6bba3a1a96ef7c298b8d681e1ef89c8c53b7d590e0e22839b SHA512 925f7bcc50d94c65d34fcc770c6e58dd5b8a045541c0109e77b8efe842eef4c110087ac9c0f86c7c3022ed013abbc5c0a187d796dce292ad5361a0cdf7153d76 DIST ryu-1.0.18.crate 47713 BLAKE2B 409cdf4b4e77685394018371e91ad6fdb175ac57e1df9f902871f13208515e5a2ab1daa226fc1e7291278e64448332845be4cc9409bce3b2f3daed409259e104 SHA512 a9b2beac778ec47e6be303148d7512ee681bd2361f6e4ac6db32c8b4baf86a8c5eb5b0d02eacd6131ae88c7b5105c57018c3050676e0b3dd1ed9c4d2fd650e84 DIST scopeguard-1.2.0.crate 11619 BLAKE2B 8b7e9ed6cefef9ee55407fb9690d57a2a98bb93e5105aeebdb475a52485e9e185255249e1dce8f83cd80534e7402d485aac3efa7e8493b13135de27550cd4bc4 SHA512 6247719a15fe1e4e2d179127b9a934bd2f99367724f41175ed9522f58824b6bc69b35002eae66b35880375ff61d77ac43ddaa78cbde7160a35183a1da32d3fbb -DIST serde-1.0.203.crate 77935 BLAKE2B 3d3dd4f81f7d74b60483d6759879a9f87c0c7d615aec308bad1bc575fac4e2071dc86551c2789e87331dbf8089e923ae56fff82e6f5a9992cf850121b052ce1d SHA512 a8d302589244e41f6f675e8d199b2532b29f62b63e45aee141a93dad96033e4bbb27ed01c11e329ec2266cdcc6f2a40f41dfc7d1b9bada69aea81d35d2d82cec DIST serde-1.0.204.crate 78253 BLAKE2B 6fdebf3cbcc0327b404caaae43c87ba2b6105374a5ee3eaa34d44866e782132cff535da4c069c007783b7b6468d55cb1ceb6a41da74b9eab03ace7cf4811e09e SHA512 2fefbeed0117bd791fd25dd5ad0c99ed4f60aac5919605b6f642050f748dd472bf9d4d121b78b0cfe8719db30a675559d097bcc7542cb57451d1779dfd8d294f -DIST serde_derive-1.0.203.crate 55867 BLAKE2B 1bc8aa96328bb83e4e4ff527b1df855bbcefd333f0c43c96d1e0b93f98a46273dd88a21653bccc8f517c4fc06d17b9b44332a963d024796e0a2c18a5bfecc824 SHA512 b2aeeab33395ac11ebdbd922fcdbda29f2592e7a20e78aef250713baf269cacf497271be7aa407f657aba33da132df0e035be046fef070f915f234097d1dd392 DIST serde_derive-1.0.204.crate 55871 BLAKE2B 8f0cdb244a820712d557a3273e505c4461f4d7db89e8394040b4c66ede787b6b38b4c9923b38959ab4042c9076b8af72008c0dd15ac93a0ecdeb99da8fb526ae SHA512 bbb2b5e60e2af5bc7528b937ffaf0d3ffd433dbd9cb2592c1e07090620309057e4f11cbd6112fc1d2c5557e1bb3c0f4d59eb06ff06fa021ec683ab880997140e -DIST serde_json-1.0.117.crate 146921 BLAKE2B fda4f87c300762c24163cceb449bb27fc96b089d5ee869b89f204dbeeec704231cdea7a14bc303cb40b621288fcb1a2b03f50552767e32a73c982d459762624b SHA512 363443af23e8e03dd17c0efc94b376f0d89b596c74d70d0437471e78bc20c6beb61da59404ff150af52000162f6df728ce73475feb828c453e58ea43e66ca056 DIST serde_json-1.0.120.crate 147062 BLAKE2B 54f93ef2b0f1c9e7c5a8e8797fd298c96513913a20c3e08a21aea39a15ffb5ad0269d5daab10fceea7164ba432e355b89d89dea2985f86bd0e73ac3920f827c5 SHA512 dab44850326f9020d6f6dd3fc8147e22eed693527fe9cac2c6bc8f6a030f461061e8e54d2780382ce32cced63b5a016372a4f9938effdd1631d8f3dc96014e3e DIST serde_json-1.0.122.crate 147200 BLAKE2B e678f61791da51bfc9df8e0184ee3d43c7eeef51c10ea5ea7b14f887ba22d6eb8ccd80a3080a35fc35279b36e635fa00ca3f102c4f6f2366a831d48014692407 SHA512 140830b38ca4e79eb66bb9d2b55c69434dde9208be926e7aaf7eb561af3c19148f9abd93d1526a7f77e249ac44d9226e4d6ae63eacfb6214544913480f668160 DIST sha1-0.10.6.crate 13517 BLAKE2B 85ad8dcd237125945f6f9c2d7a48bc9802dfe8398a2bac86ddb96763486092fa18e80a2e69f89cfd6e95599d34d60ced33b26a68cbbe39bf158238a79433584b SHA512 fd37be7e3f1d4b6addd313a36b55215fb70abd21be7831b71de28bd3eb03b7352817d8a7b1a166df002c3a23eadc8224e49edd4a37556c0e5357565305d4128f @@ -68,8 +64,6 @@ DIST sha2-0.10.8.crate 26357 BLAKE2B 1d01b381223a931dc631ad3a1191f5378b1d2f3f9f2 DIST smallvec-1.13.2.crate 35216 BLAKE2B 31a268aad595c06cdb078577a97b089dbea156a0df307a3e6aaaf4861bd9a680c5b11921da9dbdb1bcfe17d58c0cbede1ffe6bba3aef59b384fb1b9703c62d27 SHA512 a97c758b668e40ad9eb572e65feeae4954e09200a04ab92e26a13b48894381cd3a3d2571070c4b7a5e181182e1ede9688f990650342ec69ecfe1a264d234c679 DIST subtle-2.5.0.crate 13909 BLAKE2B 660c3a472ca54c9843ce3feea74b802e27fd7f62dd37a30e2a4ba82e4b3a71df63562e8865d5fc675d31d0900998a8730503f91a61450884446a3bdd6af0041b SHA512 f150b1e2037554f8cd3213a54ddbc258f8f670cc4f39e7084cdea4b47538dbc58b834bc93b443d58a4b9087224efc003234042aaf366687dbd32b1e7174082a0 DIST syn-2.0.61.crate 257199 BLAKE2B d2133732d9a7f16c47729be1b4c18c05ffdcb9cb1395ca9b8e0ee68098c746e92b82b7fe02d33b70985a04c943b38895996da115489c712011f7cfb4820d4f1e SHA512 368f5b5eff3988f6408be59ed4861397d532f6b0225abaac8befb458e87d4f48a92977d986b1a994bb7fc80d9ab455529bcbe5e2ec4e16d0e4810a1e66bd3042 -DIST synapse-1.110.0.gh.tar.gz 8576357 BLAKE2B 9309e7d149dc68313eba1afe543d074ec0301b5d806c0236a1006fdebdfb088dc5678199fae44718564cfd62ea4795c8b4a3e5174c26b3c58139b29277bb089b SHA512 3c13c26290fde42ee88fa69d46ea06402f00061825c87a53ffe50571bb4fdc67a72ee780c88d72e1f7c50926111b9924d910ff2d79738bcb3163e13331f26454 -DIST synapse-1.111.0.gh.tar.gz 8616992 BLAKE2B 0492e2933c46186332c5b5cbfdb42a4d6323b4c4b3d85307ee631d983c3d7a64b57dd75a1b995ed96b137df444de70339debb3b52a13b8f9602801540ee969a0 SHA512 8067a130d1f992acfb0c6d6eca182506a075c4361f5f00ad2a02c57d9ed15c88abc05318fe80fc9d2853ecc36118d89eec7264ddefae4d38411d2d65bdbd7f51 DIST synapse-1.111.1.gh.tar.gz 8617197 BLAKE2B 2d1a91ba46f53de964b188cce7c079a22783c8978aa47b0d69148ca59f7a05c398eae79846ac36dc704dae735c41ac071620811cbdf19b5831a839d23d2ca21f SHA512 02047f673ddf6f32731a327ba1412d2a396af0ee4a57a7a7ae5e76d6a14957196bedcf53ecc21d3dac8fc4d92872aad335755599fa1a87d82c90d471f0549ef3 DIST synapse-1.112.0.gh.tar.gz 8644732 BLAKE2B b50d9313eee37efa87c8cbd197728462c3104b336136cd732c4eef3d17c1d71aaaac7f4dc28099755b67221ac9351e4238fa45fc01581d752eafddad6687e749 SHA512 dc09e37f6581dd2b25c2aaae53294df997e450bfc4c3496929f56d342d354a48f0bfaac2aee154f7e1f53e86f7d078844495290c0fbc6c91efea966f8f6d68ff DIST synapse-1.113.0.gh.tar.gz 8674102 BLAKE2B 2ee2e400b0a759af9a4278cfb6028c8a355d842d8a4f02ba9946f2ff5caba95573c53f33bbbca029a092cfabadfd853d4caaef4e2ad8d218ab89722f3a59d00b SHA512 190e14adb67ec39f63b21623b620fe60047ef49b2ea5515c17d3ff7d1cc990ddb26c4d7a35b65b61b28b5059ad6ff78a90cc3d49efc5b462f6a4240284ebf50f diff --git a/net-im/synapse/synapse-1.110.0.ebuild b/net-im/synapse/synapse-1.110.0.ebuild deleted file mode 100644 index 78eaa933aa42..000000000000 --- a/net-im/synapse/synapse-1.110.0.ebuild +++ /dev/null @@ -1,243 +0,0 @@ -# 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..12} ) - -CRATES=" - aho-corasick@1.1.3 - anyhow@1.0.86 - 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.6.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.21 - 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.82 - 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.6 - regex-syntax@0.8.3 - regex@1.10.5 - ryu@1.0.18 - scopeguard@1.2.0 - serde@1.0.203 - serde_derive@1.0.203 - serde_json@1.0.117 - sha1@0.10.6 - sha2@0.10.8 - smallvec@1.13.2 - subtle@2.5.0 - syn@2.0.61 - target-lexicon@0.12.14 - typenum@1.17.0 - ulid@1.1.2 - 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 )" - -DEPEND=" - acct-user/synapse - acct-group/synapse -" -# The dev-python/twisted-24.3.0_p20240628 snapshot available in our tree -# introduces some breaking changes for synapse, -# see https://github.com/element-hq/synapse/issues/17075 -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-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/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.3.0_p20240628[${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/element-hq/synapse/blob/develop/docs/upgrade.md" - einfo - fi -} diff --git a/net-im/synapse/synapse-1.111.0.ebuild b/net-im/synapse/synapse-1.111.0.ebuild deleted file mode 100644 index 3a89339b7731..000000000000 --- a/net-im/synapse/synapse-1.111.0.ebuild +++ /dev/null @@ -1,244 +0,0 @@ -# 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..12} ) - -CRATES=" - aho-corasick@1.1.3 - anyhow@1.0.86 - 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.6.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.82 - 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.6 - regex-syntax@0.8.3 - regex@1.10.5 - ryu@1.0.18 - scopeguard@1.2.0 - serde@1.0.204 - serde_derive@1.0.204 - serde_json@1.0.120 - sha1@0.10.6 - sha2@0.10.8 - smallvec@1.13.2 - subtle@2.5.0 - syn@2.0.61 - target-lexicon@0.12.14 - typenum@1.17.0 - ulid@1.1.2 - 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 )" - -DEPEND=" - acct-user/synapse - acct-group/synapse -" -# The dev-python/twisted-24.3.0_p20240628 snapshot available in our tree -# introduces some breaking changes for synapse, -# see https://github.com/element-hq/synapse/issues/17075 -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-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[${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.3.0_p20240628[${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/element-hq/synapse/blob/develop/docs/upgrade.md" - einfo - fi -} |