1 |
commit: 79ff69723ddbf77835033b4a678b9a1e1398f53f |
2 |
Author: Petr Vaněk <arkamar <AT> atlas <DOT> cz> |
3 |
AuthorDate: Wed Aug 31 21:13:00 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 31 21:52:53 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79ff6972 |
7 |
|
8 |
net-im/synapse: add 1.66.0 |
9 |
|
10 |
There are two differences from previous releases: |
11 |
- new dependency on dev-python/pydantic |
12 |
- working tests with postgresql database, when postgres use flag is |
13 |
enabled |
14 |
|
15 |
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz> |
16 |
Closes: https://github.com/gentoo/gentoo/pull/27096 |
17 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
18 |
|
19 |
net-im/synapse/Manifest | 1 + |
20 |
net-im/synapse/synapse-1.66.0.ebuild | 126 +++++++++++++++++++++++++++++++++++ |
21 |
2 files changed, 127 insertions(+) |
22 |
|
23 |
diff --git a/net-im/synapse/Manifest b/net-im/synapse/Manifest |
24 |
index f7a873bf7c0f..fe06e89a3bd2 100644 |
25 |
--- a/net-im/synapse/Manifest |
26 |
+++ b/net-im/synapse/Manifest |
27 |
@@ -1,3 +1,4 @@ |
28 |
DIST synapse-1.62.0.gh.tar.gz 7841903 BLAKE2B f3002798a3fccd1b7fc4a1a302d12dd0940727ce8e89bcab0fdda04d498dbc9e469d21e7815db75b3593fcdfa01557e6828a39e874e946ce1b43d51cfe459ee6 SHA512 2bf9264f08fab29e8707317b69c52a4234bb25443c342ba43a27e06c506bcca1a9bdb211a99802abbca551e4f4288f68775d4629493b39d58dfcc8d8d1ca8ab8 |
29 |
DIST synapse-1.63.1.gh.tar.gz 7861575 BLAKE2B 7f69f2620289aa2c6b846514ce086e0ce20d559179cded20cda43b6c2ef2ad36d3b3f3fd6b139d2237a4c002c92a820a4150e5d8b25218b17bf22b9999638c67 SHA512 eb3bfb22081e932b2b7168a2b656b2ba7cc656bffbf60eb169b8d187d2a742809e2c0d6170afcea2bcf40ae5042a7b2ce7d7438294167bcc48def71e2488e338 |
30 |
DIST synapse-1.65.0.gh.tar.gz 7895758 BLAKE2B 1c816dfb7982fc0462a4a3b84c19dd144e7ac16d6cadf1e73dc71002c234eed5945ad8162d69960eff1bab80a3396a1b78e0be2cc2dfee314f6fb39d0b91b098 SHA512 3ba9751f707d41a9e18d9fe63f9652c36712451d42953e2bd4add8c142418a2a47a2ce75da893832af9225b944dd7b275f6d744f6e70d468b7f143dd5ccb9137 |
31 |
+DIST synapse-1.66.0.gh.tar.gz 7916982 BLAKE2B 116d9f7dfd046ddc245ef1375bb3f01aad126fab8dedeb0e9172ce9b4bfa6c9757e241d9f0b2bad07525657e7a1f378d9385401436132c4ee6046629792a9840 SHA512 ebe8ab787d72592b395226490414f7dce5c250173be654dc6ce63deec3a7d718f8400cdc81dfb73ae331632bed4dfb5c6f09c64538f4bda8546db8fb75d728b7 |
32 |
|
33 |
diff --git a/net-im/synapse/synapse-1.66.0.ebuild b/net-im/synapse/synapse-1.66.0.ebuild |
34 |
new file mode 100644 |
35 |
index 000000000000..4c358e3f6a8d |
36 |
--- /dev/null |
37 |
+++ b/net-im/synapse/synapse-1.66.0.ebuild |
38 |
@@ -0,0 +1,126 @@ |
39 |
+# Copyright 2022 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=8 |
43 |
+ |
44 |
+PYTHON_COMPAT=( python3_{9..10} ) |
45 |
+DISTUTILS_SINGLE_IMPL=1 |
46 |
+DISTUTILS_USE_PEP517=poetry |
47 |
+ |
48 |
+inherit distutils-r1 multiprocessing optfeature systemd |
49 |
+ |
50 |
+DESCRIPTION="Reference implementation of Matrix homeserver" |
51 |
+HOMEPAGE=" |
52 |
+ https://matrix.org/ |
53 |
+ https://github.com/matrix-org/synapse/ |
54 |
+" |
55 |
+ |
56 |
+if [[ ${PV} == 9999 ]]; then |
57 |
+ inherit git-r3 |
58 |
+ EGIT_REPO_URI="https://github.com/matrix-org/${PN}.git" |
59 |
+else |
60 |
+ MY_PV="${PV/_rc/rc}" |
61 |
+ SRC_URI="https://github.com/matrix-org/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz" |
62 |
+ S="${WORKDIR}/${PN}-${MY_PV}" |
63 |
+ KEYWORDS="~amd64 ~ppc64" |
64 |
+fi |
65 |
+ |
66 |
+LICENSE="Apache-2.0" |
67 |
+SLOT="0" |
68 |
+IUSE="postgres systemd test" |
69 |
+RESTRICT="!test? ( test )" |
70 |
+ |
71 |
+DEPEND=" |
72 |
+ acct-user/synapse |
73 |
+ acct-group/synapse |
74 |
+" |
75 |
+RDEPEND="${DEPEND} |
76 |
+ $(python_gen_cond_dep ' |
77 |
+ dev-python/attrs[${PYTHON_USEDEP}] |
78 |
+ dev-python/bcrypt[${PYTHON_USEDEP}] |
79 |
+ dev-python/bleach[${PYTHON_USEDEP}] |
80 |
+ dev-python/canonicaljson[${PYTHON_USEDEP}] |
81 |
+ dev-python/cryptography[${PYTHON_USEDEP}] |
82 |
+ dev-python/frozendict[${PYTHON_USEDEP}] |
83 |
+ dev-python/ijson[${PYTHON_USEDEP}] |
84 |
+ >=dev-python/jinja-3.0[${PYTHON_USEDEP}] |
85 |
+ dev-python/jsonschema[${PYTHON_USEDEP}] |
86 |
+ >=dev-python/matrix-common-1.2.1[${PYTHON_USEDEP}] |
87 |
+ dev-python/msgpack[${PYTHON_USEDEP}] |
88 |
+ dev-python/netaddr[${PYTHON_USEDEP}] |
89 |
+ dev-python/packaging[${PYTHON_USEDEP}] |
90 |
+ dev-python/phonenumbers[${PYTHON_USEDEP}] |
91 |
+ dev-python/pillow[${PYTHON_USEDEP},webp] |
92 |
+ dev-python/prometheus_client[${PYTHON_USEDEP}] |
93 |
+ dev-python/pyasn1-modules[${PYTHON_USEDEP}] |
94 |
+ dev-python/pyasn1[${PYTHON_USEDEP}] |
95 |
+ dev-python/pydantic[${PYTHON_USEDEP}] |
96 |
+ dev-python/pymacaroons[${PYTHON_USEDEP}] |
97 |
+ dev-python/pyopenssl[${PYTHON_USEDEP}] |
98 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
99 |
+ dev-python/service_identity[${PYTHON_USEDEP}] |
100 |
+ dev-python/signedjson[${PYTHON_USEDEP}] |
101 |
+ dev-python/sortedcontainers[${PYTHON_USEDEP}] |
102 |
+ dev-python/treq[${PYTHON_USEDEP}] |
103 |
+ dev-python/twisted[${PYTHON_USEDEP}] |
104 |
+ dev-python/typing-extensions[${PYTHON_USEDEP}] |
105 |
+ dev-python/unpaddedbase64[${PYTHON_USEDEP}] |
106 |
+ postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] ) |
107 |
+ systemd? ( dev-python/python-systemd[${PYTHON_USEDEP}] ) |
108 |
+ ') |
109 |
+" |
110 |
+BDEPEND=" |
111 |
+ test? ( |
112 |
+ $(python_gen_cond_dep ' |
113 |
+ dev-python/idna[${PYTHON_USEDEP}] |
114 |
+ dev-python/parameterized[${PYTHON_USEDEP}] |
115 |
+ ') |
116 |
+ postgres? ( dev-db/postgresql[server] ) |
117 |
+ ) |
118 |
+" |
119 |
+ |
120 |
+src_test() { |
121 |
+ if use postgres; then |
122 |
+ initdb -D "${T}/pgsql" || die |
123 |
+ pg_ctl -w -D "${T}/pgsql" start \ |
124 |
+ -o "-h '' -k '${T}'" || die |
125 |
+ createdb -h "${T}" synapse_test || die |
126 |
+ |
127 |
+ local -x SYNAPSE_POSTGRES=1 |
128 |
+ local -x SYNAPSE_POSTGRES_HOST="${T}" |
129 |
+ fi |
130 |
+ |
131 |
+ distutils-r1_src_test |
132 |
+ |
133 |
+ if use postgres; then |
134 |
+ pg_ctl -w -D "${T}/pgsql" stop || die |
135 |
+ fi |
136 |
+} |
137 |
+ |
138 |
+python_test() { |
139 |
+ "${EPYTHON}" -m twisted.trial -j "$(makeopts_jobs)" tests || die "Tests failed with ${EPYTHON}" |
140 |
+} |
141 |
+ |
142 |
+python_install() { |
143 |
+ distutils-r1_python_install |
144 |
+ keepdir /var/{lib,log}/synapse /etc/synapse |
145 |
+ fowners synapse:synapse /var/{lib,log}/synapse /etc/synapse |
146 |
+ fperms 0750 /var/{lib,log}/synapse /etc/synapse |
147 |
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}" |
148 |
+ systemd_dounit "${FILESDIR}/synapse.service" |
149 |
+} |
150 |
+ |
151 |
+pkg_postinst() { |
152 |
+ optfeature "VoIP relaying on your homeserver with turn" net-im/coturn |
153 |
+ |
154 |
+ einfo "In order to generate initial configuration run:" |
155 |
+ einfo "sudo -u synapse synapse_homeserver \\" |
156 |
+ einfo " --server-name matrix.domain.tld \\" |
157 |
+ einfo " --config-path /etc/synapse/homeserver.yaml \\" |
158 |
+ einfo " --generate-config \\" |
159 |
+ einfo " --data-directory /var/lib/synapse \\" |
160 |
+ einfo " --report-stats=no" |
161 |
+ einfo |
162 |
+ einfo "See also upgrade notes:" |
163 |
+ einfo "https://github.com/matrix-org/synapse/blob/develop/docs/upgrade.md" |
164 |
+} |