Skip to content

Instantly share code, notes, and snippets.

@PMaynard
Last active February 24, 2019 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PMaynard/503d9060499c7d0cf0fe2a1a71276929 to your computer and use it in GitHub Desktop.
Save PMaynard/503d9060499c7d0cf0fe2a1a71276929 to your computer and use it in GitHub Desktop.
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 python3_5 python3_6 python3_7 )
inherit distutils-r1
DESCRIPTION="Reference homeserver for the Matrix decentralised comms protocol"
HOMEPAGE="http://matrix.org https://github.com/matrix-org/synapse"
SRC_URI="https://github.com/matrix-org/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="email postgres sqlite tracking-consent url-preview saml2 webclient"
#IUSE="acme email ldap postgres sqlite tracking-consent url-preview saml2 webclient"
# Main
# TODO: Needs: >=dev-python/canonicaljson-1.1.3
# TODO: Needs: >=dev-python/frozendict-1
# TODO: Needs: >=dev-python/pymacaroons-0.13.0
# TODO: Needs: >=dev-python/signedjson-1.0.0
# TODO: Needs: >=dev-python/unpaddedbase64-1.1.0
# TODO: Needs txacme
#acme? (
# >=dev-python/txacme-0.9.2
#)
# TODO: Needs matrix-synapse-ldap3
#ldap? (
# >=dev-python/matrix-synapse-ldap3-0.1
#)
# TODO: Is this the right place to agree to tracking?
# TODO: Check SQLITE min version needed and if this is the right place.
# TODO: enable/disable serving web app
# TODO: Testing: https://github.com/matrix-org/sytest
# TODO: Looking for a Maintainer: >=dev-python/phonenumbers-8.2.0
RDEPEND="${PYTHON_DEPS}
>=dev-python/twisted-18.7.0[${PYTHON_USEDEP}]
>=dev-python/attrs-17.4.0[${PYTHON_USEDEP}]
>=dev-python/bcrypt-3.1.0[${PYTHON_USEDEP}]
>=dev-python/daemonize-2.3.1[${PYTHON_USEDEP}]
>=dev-python/jsonschema-2.5.1[${PYTHON_USEDEP}]
>=dev-python/msgpack-0.5.0[${PYTHON_USEDEP}]
>=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}]
>=dev-python/phonenumbers-8.2.0[${PYTHON_USEDEP}]
>=dev-python/pillow-3.1.2[${PYTHON_USEDEP}]
>=dev-python/prometheus_client-0.4.0[${PYTHON_USEDEP}]
>=dev-python/psutil-2.0.0[${PYTHON_USEDEP}]
>=dev-python/pyasn1-modules-0.0.7[${PYTHON_USEDEP}]
>=dev-python/pyasn1-0.1.9[${PYTHON_USEDEP}]
>=dev-python/pynacl-1.2.1[${PYTHON_USEDEP}]
>=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.11[${PYTHON_USEDEP}]
>=dev-python/service_identity-16.0.0[${PYTHON_USEDEP}]
>=dev-python/six-1.10[${PYTHON_USEDEP}]
>=dev-python/sortedcontainers-1.4.4[${PYTHON_USEDEP}]
>=dev-python/treq-15.1[${PYTHON_USEDEP}]
email? (
>=dev-python/Jinja2-2.9[${PYTHON_USEDEP}]
>=dev-python/bleach-1.4.2[${PYTHON_USEDEP}]
)
postgres? (
>=dev-python/psycopg-2.6[${PYTHON_USEDEP}]
)
sqlite? (
>=dev-db/sqlite-3.24.0[${PYTHON_USEDEP}]
)
tracking-consent? (
>=dev-python/Jinja2-2.9[${PYTHON_USEDEP}]
)
saml2? (
>=dev-python/pysaml2-4.5.0[${PYTHON_USEDEP}]
)
url-preview? (
>=dev-python/lxml-3.5.0[${PYTHON_USEDEP}]
)
"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment