Install this version:
emerge -a =dev-python/interlex-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/interlex-9999
Or alternatively:
emerge --autounmask-write -a =dev-python/interlex-9999
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..14} pypy3 pypy3_11 )
inherit distutils-r1
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/tgbugs/${PN}.git"
inherit git-r3
KEYWORDS=""
else
inherit pypi
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="A terminology management system."
HOMEPAGE="https://github.com/tgbugs/interlex"
LICENSE="MIT"
SLOT="0"
IUSE="alt dev +rabbitmq database elasticsearch server test"
RESTRICT="!test? ( test )"
BDEPEND="
dev-python/fastentrypoints[${PYTHON_USEDEP}]"
IDEPEND="
acct-group/interlex
acct-user/interlex"
RDEPEND="
dev-libs/redland
dev-python/argon2-cffi[${PYTHON_USEDEP}]
>=dev-python/celery-5.0.5[${PYTHON_USEDEP}]
dev-python/docopt[${PYTHON_USEDEP}]
dev-python/elasticsearch[${PYTHON_USEDEP}]
dev-python/flask[${PYTHON_USEDEP}]
dev-python/flask-login[${PYTHON_USEDEP}]
dev-python/flask-restx[${PYTHON_USEDEP}]
dev-python/flask-sqlalchemy[${PYTHON_USEDEP}]
server? (
dev-python/tornado[${PYTHON_USEDEP}]
www-servers/gunicorn[${PYTHON_USEDEP}]
)
$(python_gen_cond_dep 'dev-python/psycopg:2[${PYTHON_USEDEP}]' python3_{10..14})
$(python_gen_cond_dep 'dev-python/psycopg2cffi[${PYTHON_USEDEP}]' pypy3 pypy3_11)
>=dev-python/pyontutils-0.1.32[${PYTHON_USEDEP}]
>=dev-python/rdflib-6.0.2[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
alt? (
dev-python/pymysql[${PYTHON_USEDEP}]
)
database? (
>=dev-db/postgresql-10
dev-db/pguri
dev-python/pytest[${PYTHON_USEDEP}]
)
dev? (
dev-python/pytest-cov[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]
)
elasticsearch? ( app-misc/elasticsearch )
rabbitmq? ( net-misc/rabbitmq-server )
test? (
dev-python/pytest[${PYTHON_USEDEP}]
)
"
USERGROUP=interlex
distutils_enable_tests pytest
if [[ ${PV} == "9999" ]]; then
src_prepare () {
sed -i '1 i\import fastentrypoints' setup.py
# replace package version to keep python quiet
sed -i "s/__version__.\+$/__version__ = '9999.0.0+$(git rev-parse --short HEAD)'/" ${PN}/__init__.py
default
}
else
src_prepare () {
sed -i '1 i\import fastentrypoints' setup.py
default
}
fi
python_test() {
PYTHONWARNINGS=ignore epytest -v --color=yes || die "Tests fail with ${EPYTHON}"
}
python_install_all() {
local DOCS=( README* docs/* )
distutils-r1_python_install_all
}
src_install() {
keepdir "/var/log/${PN}"
fowners ${USERGROUP}:${USERGROUP} "/var/log/${PN}"
newinitd "resources/interlex.rc" interlex
newconfd "resources/interlex.confd" interlex
if use alt; then
newinitd "alt/resources/filesystem/etc/init.d/ilxalt" ilxalt
newconfd "alt/resources/filesystem/etc/conf.d/ilxalt" ilxalt
fi
chmod 0600 "${D}"/etc/conf.d/*
distutils-r1_src_install
}
pkg_postinst() {
ewarn "In order to run interlex you need to make sure that the rabbitmq"
ewarn "server is running and BROKER_URL is correct in /etc/conf.d/interlex"
}
Manage flags for this package:
euse -i <flag> -p dev-python/interlex |
euse -E <flag> -p dev-python/interlex |
euse -D <flag> -p dev-python/interlex
dev-libs/redland dev-python/argon2-cffi[${PYTHON_USEDEP}] >=dev-python/celery-5.0.5[${PYTHON_USEDEP}] dev-python/docopt[${PYTHON_USEDEP}] dev-python/elasticsearch[${PYTHON_USEDEP}] dev-python/flask[${PYTHON_USEDEP}] dev-python/flask-login[${PYTHON_USEDEP}] dev-python/flask-restx[${PYTHON_USEDEP}] dev-python/flask-sqlalchemy[${PYTHON_USEDEP}] server? ( dev-python/tornado[${PYTHON_USEDEP}] www-servers/gunicorn[${PYTHON_USEDEP}] ) $(python_gen_cond_dep 'dev-python/psycopg:2[${PYTHON_USEDEP}]' python3_{10..14}) $(python_gen_cond_dep 'dev-python/psycopg2cffi[${PYTHON_USEDEP}]' pypy3 pypy3_11) >=dev-python/pyontutils-0.1.32[${PYTHON_USEDEP}] >=dev-python/rdflib-6.0.2[${PYTHON_USEDEP}] dev-python/setuptools[${PYTHON_USEDEP}] alt? ( dev-python/pymysql[${PYTHON_USEDEP}] ) database? ( >=dev-db/postgresql-10 dev-db/pguri dev-python/pytest[${PYTHON_USEDEP}] ) dev? ( dev-python/pytest-cov[${PYTHON_USEDEP}] dev-python/wheel[${PYTHON_USEDEP}] ) elasticsearch? ( app-misc/elasticsearch ) rabbitmq? ( net-misc/rabbitmq-server ) test? ( dev-python/pytest[${PYTHON_USEDEP}] )
dev-python/fastentrypoints[]