# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # This version is attempting to install from RPM, so pure binary # 6.8 is directly from pgadmin.org, 6.7 was from fedora EAPI=7 PYTHON_COMPAT=( python3_10 ) PYTHON_REQ_USE="sqlite" # inherit desktop python-single-r1 qmake-utils xdg # inherit desktop python-single-r1 rpm inherit rpm python-single-r1 MY_PN="pgadmin4" MY_P="${MY_PN}-${PV}" DESCRIPTION="GUI administration and development platform for PostgreSQL: RPM from pgadmin.org" HOMEPAGE="https://www.pgadmin.org/" SRC_URI="https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/fedora/fedora-35-x86_64/${MY_P}-1.fc35.noarch.rpm https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/fedora/fedora-35-x86_64/${MY_PN}-desktop-${PV}-1.fc35.x86_64.rpm https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/fedora/fedora-35-x86_64/${MY_PN}-server-${PV}-1.fc35.x86_64.rpm https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/fedora/fedora-35-x86_64/${MY_PN}-web-${PV}-1.fc35.noarch.rpm" LICENSE="POSTGRESQL" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RESTRICT="test" # libsodium dep added because of 689678 COMMON_DEPEND="${PYTHON_DEPS} dev-libs/libsodium[-minimal] dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtnetwork:5[ssl] dev-qt/qtwidgets:5 " DEPEND=${COMMON_DEPEND} BDEPEND="app-arch/rpm" # below reordered to match order in requirements.txt # now reordered to match rmp deps RDEPEND="${COMMON_DEPEND} $(python_gen_cond_dep ' =dev-python/authlib-0.15*[${PYTHON_USEDEP}] =dev-python/bcrypt-3*[${PYTHON_USEDEP}] =dev-python/flask-2*[${PYTHON_USEDEP}] =dev-python/flask-babel-2*[${PYTHON_USEDEP}] =dev-python/flask-compress-1*[${PYTHON_USEDEP}] =dev-python/flask-gravatar-0*[${PYTHON_USEDEP}] =dev-python/flask-login-0*[${PYTHON_USEDEP}] =dev-python/flask-mail-0*[${PYTHON_USEDEP}] =dev-python/flask-migrate-3*[${PYTHON_USEDEP}] =dev-python/flask-paranoid-0*[${PYTHON_USEDEP}] =dev-python/flask-security-4.1*[${PYTHON_USEDEP}] =dev-python/flask-sqlalchemy-2.5*[${PYTHON_USEDEP}] =dev-python/flask-wtf-1*[${PYTHON_USEDEP}] =dev-python/gssapi-1.7*[${PYTHON_USEDEP}] =dev-python/httpagentparser-1.9*[${PYTHON_USEDEP}] =dev-python/ldap3-2*[${PYTHON_USEDEP}] =dev-python/passlib-1*[${PYTHON_USEDEP}] =dev-python/pillow-9*[${PYTHON_USEDEP}] =dev-python/psutil-5*[${PYTHON_USEDEP}] =dev-python/psycopg-2.9*[${PYTHON_USEDEP}] =dev-python/pyotp-2*[${PYTHON_USEDEP}] =dev-python/python-dateutil-2*[${PYTHON_USEDEP}] =dev-python/pytz-2022*[${PYTHON_USEDEP}] =dev-python/qrcode-7*[${PYTHON_USEDEP}] =dev-python/simplejson-3*[${PYTHON_USEDEP}] =dev-python/six-1*[${PYTHON_USEDEP}] =dev-python/sqlalchemy-1.4*[${PYTHON_USEDEP}] =dev-python/sqlparse-0*[${PYTHON_USEDEP}] =dev-python/sshtunnel-0*[${PYTHON_USEDEP}] =dev-python/urllib3-1.26*[${PYTHON_USEDEP}] =dev-python/wtforms-3*[${PYTHON_USEDEP}] >=dev-python/boto3-1.20[${PYTHON_USEDEP}] >=dev-python/botocore-1.23[${PYTHON_USEDEP}] >=dev-python/cryptography-3[${PYTHON_USEDEP}] =dev-python/eventlet-0.33*[${PYTHON_USEDEP}] >=dev-python/flask-socketio-5.0.1[${PYTHON_USEDEP}] >=dev-python/requests-2.25[${PYTHON_USEDEP}] =dev-python/user-agents-2.2*[${PYTHON_USEDEP}] ') " # not listed in rmp deps # =dev-python/speaklater-1*[${PYTHON_USEDEP}] # >=dev-python/python-socketio-5.1.1[${PYTHON_USEDEP}] # dev-python/bidict[${PYTHON_USEDEP}] S=${WORKDIR} src_install() { cd ${WORKDIR}/usr/share/doc mv ${MY_PN} ${P} cd ${WORKDIR} cp -R * "${D}/" || die "Install failed" }