2020-02-15 16:43:51 +00:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
2019-12-14 13:10:22 +00:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
PYTHON_COMPAT=( python3_{5,6,7} )
|
|
|
|
|
|
|
|
inherit distutils-r1 systemd user
|
|
|
|
|
|
|
|
MY_PV="${PV/_rc/rc}"
|
|
|
|
|
|
|
|
DESCRIPTION="Synapse: Matrix reference homeserver"
|
|
|
|
HOMEPAGE="https://matrix.org"
|
|
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MY_PV}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
dev-lang/python[sqlite]
|
|
|
|
>=dev-python/bleach-1.4.3[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/jinja-2.9[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/jsonschema-2.5.1[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/frozendict-1.0.0[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/unpaddedbase64-1.1.0[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/canonicaljson-1.1.3[${PYTHON_USEDEP}]
|
2020-02-15 16:43:51 +00:00
|
|
|
>=dev-python/signedjson-1.1.0[${PYTHON_USEDEP}]
|
2019-12-14 13:10:22 +00:00
|
|
|
>=dev-python/pynacl-1.2.1[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/idna-2.5[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/service_identity-18.1.0[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/twisted-18.9.0[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/treq-15.1.0[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/pyyaml-3.11.0[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/pyasn1-0.1.9[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/pyasn1-modules-0.0.7[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/daemonize-2.4.2[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/bcrypt-3.1.0[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/pillow-3.1.2[jpeg,${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/sortedcontainers-1.4.4[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/pysaml2-4.0.2[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/pymacaroons-0.13.0[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/msgpack-0.5.2[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/phonenumbers-8.2.0[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/sdnotify-0.3[${PYTHON_USEDEP}]
|
2020-07-13 10:45:49 +00:00
|
|
|
<dev-python/prometheus_client-0.9.0[${PYTHON_USEDEP}]
|
2020-07-09 11:39:02 +00:00
|
|
|
>=dev-python/attrs-19.1.0[${PYTHON_USEDEP}]
|
2019-12-14 13:10:22 +00:00
|
|
|
>=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}]
|
|
|
|
virtual/libffi
|
|
|
|
"
|
|
|
|
BDEPEND="
|
|
|
|
${RDEPEND}
|
|
|
|
"
|
|
|
|
|
|
|
|
S="${WORKDIR}/${PN}-${MY_PV}"
|
|
|
|
|
|
|
|
python_install_all() {
|
|
|
|
distutils-r1_python_install_all
|
|
|
|
|
|
|
|
keepdir /var/lib/${PN} /var/log/matrix
|
|
|
|
|
|
|
|
newinitd "${FILESDIR}/synapse.init" synapse
|
|
|
|
systemd_newunit "${FILESDIR}/synapse.service" synapse.service
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
enewgroup synapse
|
|
|
|
enewuser synapse -1 -1 /var/lib/${PN} synapse
|
|
|
|
|
|
|
|
chown synapse:synapse /var/log/matrix || die "Unable to chown /var/log/matrix"
|
|
|
|
}
|