commit:     05aa18bf7a0bbf23cb1d1d813e80d2f6bb0d402b
Author:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
AuthorDate: Wed Oct  1 09:27:22 2025 +0000
Commit:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Wed Oct  1 09:29:50 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05aa18bf

net-im/synapse: add 1.139.0

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

 net-im/synapse/Manifest               |   6 +
 net-im/synapse/synapse-1.139.0.ebuild | 356 ++++++++++++++++++++++++++++++++++
 2 files changed, 362 insertions(+)

diff --git a/net-im/synapse/Manifest b/net-im/synapse/Manifest
index c83aa434178b..9b35699be599 100644
--- a/net-im/synapse/Manifest
+++ b/net-im/synapse/Manifest
@@ -78,6 +78,7 @@ DIST libc-0.2.174.crate 779933 BLAKE2B 
20ffcbbcad6961e732521940f0595039dc0576d85
 DIST libm-0.2.15.crate 156108 BLAKE2B 
0bf4cf92e877f3f7e0bdcd79a3d26a3802f1ba38d0da08e750d2e6107d5dde49cc626a63d55910e8d597175483b1cb55ccbe866059e06c2cb51519ac5402655d
 SHA512 
abee4d8d50a9d25f8d5cbada78877d53ea50d82434b888d170bd83a532bc0534190abbf877e38aba78c370c8cfdf9dc9955c8a8ba4640732e8e6deee3992ab41
 DIST litemap-0.8.0.crate 34344 BLAKE2B 
0f083fa9ecb78ef6de4c094db8a7cebe2ff47af6e46414c06cc0dd0e92ecca06c941dca6ea0ac1b4982f14f6027cad979fd37d19db6631e3952dffb6e33c8798
 SHA512 
61162bd55b28540ec2d61262698045a78efbfadc7e2fa248d9e0215fd7d3ce53a8c50ea0487f2f7df41149e41c0131849e507737e3bbae29cb69ea41dcb8e2d9
 DIST log-0.4.27.crate 48120 BLAKE2B 
09a2159032baaff7eede480062da30ffec1c1d4c77e76288467941dc13722ab1566742c1821326ca5f8c2f9f7597099e235213ecbf883fd93daf5ae9ad5ee981
 SHA512 
8d57219b76c8a25bae193e4d16d4d03bf0b8523e1ed3bdc80a692cabe00fc0359ae9bc3be989f04476ecda7187f27e4ad23fe260a96fcefc819af00fe12a1151
+DIST log-0.4.28.crate 51131 BLAKE2B 
2911509cabe6a69b60945e798f2afee934d865d21efa22d150288de6a27a797fe00ee4f249fc6f6d7a02e2efb7377d2a7188a8ed8cb692f76b94a0df56d74d83
 SHA512 
cea74c92c80f291360a7cdf022e3ce2f509b9051b415840ab2a159585384f3fe606289da00a6def0c3d666416c5fcda865e2ae4ad48df07618818e8486cd0209
 DIST lru-slab-0.1.2.crate 9090 BLAKE2B 
00b36c830cfbe3dc004106aaca3c66dcc780ca0e07af6e1f1b2b8d125d88fdcd0b0f3a9b01299279f09fba7c81b1a87178ee86385af1ee8f648e6f307d26dc2f
 SHA512 
eb93796ffaccafd2e2530efeaf60dab1eeb17fe61652a9299c220cea4dd9099239eb549ae1259ac272c5aa807eebfaec6db4dc5efc95ee59365d3fd1d413f60f
 DIST memchr-2.7.5.crate 97603 BLAKE2B 
ee41ef722d90265064db3ffe22d52eff8f7627ac1ae9b0bad6ca9fa06c1027dca8d67e594e03b03c944dbf85930d2dbf030c5aaed369020ca1a1ba00f153d91a
 SHA512 
2606ee16a7dc02db95dac17cebd2cac9deb2e23d7ea62972cdb19145c06eaf75631347a49c4e6ceeff89fb6e90e992f9bca0a9c955eb5130f89ba2bd865936e1
 DIST memoffset-0.9.1.crate 9032 BLAKE2B 
0aab55fe084134bb599c52d77c96400db40949b1013e7037747ada4fcec8dc4a124b6f3755f04b36e057eb2fb4a6bd6f07d6eebcf166f8a71405ef434d802fbf
 SHA512 
3a236c0f481e36973b9f805e454c2efe4dd375e6b4ee406b57145136c70d5fbf4e1183d563ebf3b5fbde7363bbf5f08f0d88e507aae5bda4cc75664ecd0e33aa
@@ -128,10 +129,14 @@ DIST schannel-0.1.27.crate 42772 BLAKE2B 
55b3cdf596d6d490fdbc10298eed7cb1b1bb8d6
 DIST security-framework-3.2.0.crate 86095 BLAKE2B 
711c6fbabbc381ad08816aa9c3f1a66fccf05b7a3145a76b29845e4b2f059dfcdffa4cb6eea13967f3cc973744160d9d0e5ab8f84bb06b6d8b6d902f8058e01f
 SHA512 
bbef2a7720ef18e3e07559b852ce3bf0651fcd0b8a93cd01b512381c7afc2782cd4ef1a61b29fa439aac630b1acbf3d6248749a7c3b839707f74154d131642c4
 DIST security-framework-sys-2.14.0.crate 20537 BLAKE2B 
50a04eda370788fb769600b0df2f984155d9ff67c753a8b138568c648fc23f90f076092c9a8f984aa3b6590c547171e53b968ecc4f80f6b7edb8cbbf23bce31c
 SHA512 
a6b5a391450ad91118aff3b9d8420e1099fc9f96926043f5c4061a1fd615a00bb1f86f5a06b9a549f45b27a43b5f9ceb5a015d8589d7df258a77dd4b4dfdd7e4
 DIST serde-1.0.219.crate 78983 BLAKE2B 
7e9542a04c7f1aeff95b821245034368ff1721d98d7138bb1e0a99cdd6436dc37d69606308834fd33daaea3a1792409b3b2305b802433fa1d155816c55ca2a7d
 SHA512 
0d3fe9a47af027d0d79499e60d940661dba6e29e8f0ce47d0db2ab722030d255aff637248af6f893a9c4224239733db09ffcdc6e1923a7177bfae55c98ebe769
+DIST serde-1.0.224.crate 28268 BLAKE2B 
10073484709ce136cd094b0ed92b122cda723511bb09695d49196816d9ed1c2d05eef2080d2f7620dc3913fb00954b38a2f2f2ad3bd09a4801b1db45a1b0dd41
 SHA512 
4dd71a9a017c37a0621b57f58bc509d7bcdab262f6fbc30454cc83ca1ec6cfd0fdf9d0e877aa0af35df5402f3359e5d0c00ba8e3a6454fb02186155c1ea698d8
+DIST serde_core-1.0.224.crate 62766 BLAKE2B 
b71f1de590d5ca6b896a3e467418a0ce39dcf96ddb1cbbb9d7dc3128b746c3f326d517d862893c8bca9bf733cb236e50f6fa68936d6b0f7bc4d36f62de8bd1b5
 SHA512 
128915dfa6088894da24237fa2b7880b063700e18c411ccce72a47d7088940ffa0f90b054fae2e20bb4a122ca511150b02b346ec4d33c3ed0be3e7fbd05ee6b9
 DIST serde_derive-1.0.219.crate 57798 BLAKE2B 
071f02019f829a2753769ce915d11df8f0d202ca67314fe83b42e1f1f3d07bc91b7e7c38fe498a0513714f80d3a3dbf2b447b1f85762de06dd021119801afa89
 SHA512 
1676bbf09e11273705a35c540d52d35d1bba7cdf1f347d40a364d7ae9269167f9f0f62ff4fa384aaa613c83e432a8eb3c016587ea643bb11434c00664a5c116b
+DIST serde_derive-1.0.224.crate 57909 BLAKE2B 
3166166f8defbaada9c0ed120f31be020fc3eb1a74fbe03b5d6d596bdb59c040f2e87502f9f40fca15ae5f0c72fd38f6b6771b6f860dd0f8e08968c04f7129c3
 SHA512 
e35ce8cace6b17ece91b44efc5d0b0c07b2f9f5908da86fcdfe38c4d21b2c49207ffeccc4fc26341edcc556f8628ed9bb45c7f10352668708d0d9f853f71f58e
 DIST serde_json-1.0.141.crate 155322 BLAKE2B 
efa3f32412d8aca8a1a49c186fe12b3f531d90f00a50e974dcd6abae9cc9b0ab595b31d5de57092eefa80aab66d8a61d41453df049076a9d0a7d3ed957710b28
 SHA512 
0d1d28bb79e3deca01e3e72f431395c8db7c86b9a175979c297d379f1ce3d60014c9cc1cbb688ddee673907717e2690d79178e776a5c2b247c062d1c4e0c4f6b
 DIST serde_json-1.0.142.crate 155363 BLAKE2B 
e4bea16f092dd38d09d0bd8bb8f375bbab7fbf22c567c19222243bfa181f8103fec872b13552ac5927741146b9dd7d1a1719f84ecf317d7aba258250f5fc46d8
 SHA512 
dc4dbfd356e7cf3bd82dc463dcae7a563be2146dae22230fc2586e3481a4e5f59314b7b00345da6d9ced2b15557acbe1380b127144c70cb708291f72a19a7ab0
 DIST serde_json-1.0.143.crate 155342 BLAKE2B 
c01be213f79cad1f3de35a1c5adab75121fb2a49cf261e46a5509d44f02e12a5b56db3cd6bf539e015ce59019faa636dae2f1ded25d7893c7a0e03f0c9d211da
 SHA512 
084fa35adc0d720c3868d57b2d4a2f30af08b650e876ee88014cf1b98d49079f5ddfe5b14743c63ebc5b9bd8291c6d03fd34f07b770a25874f00ea7c42bdde8b
+DIST serde_json-1.0.145.crate 155748 BLAKE2B 
fdb06251cf3a18f2f3685823585f4ac16f2f3b762e528e3f815168a6d7991d384eb140698f9f5c39c4ce04e17fbe062f3f9c07cfea9915415a7e1f9046b6a83e
 SHA512 
e2054b7914e6cde0c58e952d9c129f7fe8c55981b74a9700cb282480688868ebedeb44281c1e3ccef2e2a04a9a18fbdafc8a4d43169f4d09ce905808e4e056be
 DIST serde_urlencoded-0.7.1.crate 12822 BLAKE2B 
38c74ea862f041828467dfa586bad9b8e1d1d64a9f82fb7f98727e3965377d00e59f2dbf20955a9dce976b6911c0a619d2a6e4cc9dfc73cf0f6c449d873fd072
 SHA512 
b209ad01b6565e95c1d5b431a3f4f8a0df3d11c2a06a44123048bfa4b34ebb6807eec593f0c1c89de3a06ac3786a14747df9c70b4f4d5e4b72b4feb53084eb60
 DIST sha1-0.10.6.crate 13517 BLAKE2B 
85ad8dcd237125945f6f9c2d7a48bc9802dfe8398a2bac86ddb96763486092fa18e80a2e69f89cfd6e95599d34d60ced33b26a68cbbe39bf158238a79433584b
 SHA512 
fd37be7e3f1d4b6addd313a36b55215fb70abd21be7831b71de28bd3eb03b7352817d8a7b1a166df002c3a23eadc8224e49edd4a37556c0e5357565305d4128f
 DIST sha2-0.10.9.crate 29271 BLAKE2B 
1d614e0efe085cdb40e05726578a9b4ca6bce93f6d3324f5dc0444cb37054912cdaf5d28d468eac2c0046030d920fced2ccd006953b80865ce8a2d43ef3daa81
 SHA512 
963adeeb4ed8b0e7fc19085e8721ea13e9b3aea5d115ca1b3dbca495ad14810c6450991dd3753807c293c415aaeb1054b8b4124c72e7090cd9e86f09fcbb4f80
@@ -148,6 +153,7 @@ DIST synapse-1.136.0.gh.tar.gz 9115501 BLAKE2B 
bcca6ed246e0d86f568b45fb90627c10a
 DIST synapse-1.137.0.gh.tar.gz 9113083 BLAKE2B 
6f6a5a7d5058036c9fcce62cd9ca5a6fe0e7c65c54fc2a558568f92c971f2db9dcf060188b3723d7545998c9e2ca53c7de20514d3b52ff5ec5ae02fbd20237d9
 SHA512 
356ef08bb11dbe11f854dc17efd24c80394bcc4cf0a542ee1f0fb97c9322b2ef2ee80e0b3ab393bf75f98f314fcc391833ed9471963aec82c328defc58b05cbf
 DIST synapse-1.138.0.gh.tar.gz 9114217 BLAKE2B 
020c88fecdc8253ee5f9c5f6006c7b5fd7d7c2a563f776aaaa65f9ecaba17e85017216330401b93588f1582c5b6157cc9e98c23dd725d4741b6565c0cbbb15b9
 SHA512 
8f6d10e8c6c3078c2c84229d3d542725c6bc065948587b704faaa2d01b3361a300d76df6823d04dff41b0d6b8296a1dd79eaaf34c606577b29762d7760fb938d
 DIST synapse-1.138.2.gh.tar.gz 9116689 BLAKE2B 
54b8a30f6dfe3c25802f875025761b4d396efee6ac3dd28210f5354cc1378aa192e2104fd53e75d16793ce34d48a7fd74255c67eba8b6853187ddf5d2b3bed03
 SHA512 
ae17d1d0b350c8c56dd9df7648ec4e46725d0dc06dcea7851481d47853b3a594026e99fe5211cb549eb14373d800be80b5f4d61a65eb087b9f0c20488633ab29
+DIST synapse-1.139.0.gh.tar.gz 9139518 BLAKE2B 
ff4f3bf3fdf607b80d44641a8cb5c0eab6a6d58decafb0795faceae1a8b3ff95bbbf85e6e6eef96fca071b7f645d117b4dcc145e113627ce479ab2709bd99a71
 SHA512 
368df9c40afb4c306b12f46feeb4aef10153d90430289509078cc6548adf7e538e6813c4480fdb37893fbeb91033bcdc03f71b0ce216134764d996d54cf0440e
 DIST sync_wrapper-1.0.2.crate 6958 BLAKE2B 
b2e162f982ea827229dcff468bcf31c6286c57ea3491a909784cdb50b0ba36c3a1a6fbdc7b34fc2aa9a7df1d174393d61ea9dc7ab3439a5e1a1884e2473a70f8
 SHA512 
aa314a6ab3ba028d2a169ea55a50eecf3b73b475a81c91330430ece9f1734296562627a8c32fad51b5a26796931f364e2803b3a13075ccd9a0aa614d5220903c
 DIST synstructure-0.13.2.crate 18950 BLAKE2B 
c475f370d901a371262f466dd98e3914dd6f36aa473a33362866c0f781d27b1813233f96b02208f3463a825e8012cab0f8872eed848d9aa0eac88b581a0d261e
 SHA512 
2698f4e80b93f7cf1d8ae97c4c42a7f61e7b7081f7f1bbb94d7f48ab7ae813a666d73c49ba3812cda9155e0138b55cc246fb96e5858e411a8d32bafb3e2b2afb
 DIST target-lexicon-0.13.2.crate 27923 BLAKE2B 
0761f0ffdc23b9c9df86b384d59611c7b8b5e29ff068f03367ad2fe84cfb6d11e1af149b9338236978e9566fedc51387db9f239d2a602db41045ac3db907faec
 SHA512 
d25e3cc3d679cb6b6f24c03e0c24db9d6ca31b8ed42ac9531bd7637557fbba225a6c8ac4f68a8eaf3569195814d599e668a968afbc73b940a77cbc27552cc90a

diff --git a/net-im/synapse/synapse-1.139.0.ebuild 
b/net-im/synapse/synapse-1.139.0.ebuild
new file mode 100644
index 000000000000..171d0771b8c8
--- /dev/null
+++ b/net-im/synapse/synapse-1.139.0.ebuild
@@ -0,0 +1,356 @@
+# Copyright 2022-2025 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_{11..13} )
+
+RUST_MIN_VER="1.82.0"
+CRATES="
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]+wasi-snapshot-preview1
+       [email protected]+wasi-0.2.4
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+"
+
+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 Apache-2.0-with-LLVM-exceptions BSD ISC MIT Unicode-3.0
+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
+IUSE="postgres selinux systemd test"
+RESTRICT="!test? ( test )"
+
+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[${PYTHON_USEDEP}]
+       dev-python/typing-extensions[${PYTHON_USEDEP}]
+       dev-python/unpaddedbase64[${PYTHON_USEDEP}]
+       postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] )
+       selinux? ( sec-policy/selinux-matrixd )
+       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/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 "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