summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-08-23 21:46:35 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-08-23 22:03:03 +0200
commitcfc9cf48bd080d734ee8e178b8c5a3750c81513d (patch)
treeee3a611f6557eb2d9b445d5e5ec60c241507e0c8 /dev-db
parentdev-util/meson: depend on sys-libs/zlib[static-libs] for testing (diff)
downloadgentoo-cfc9cf48bd080d734ee8e178b8c5a3750c81513d.tar.gz
gentoo-cfc9cf48bd080d734ee8e178b8c5a3750c81513d.tar.bz2
gentoo-cfc9cf48bd080d734ee8e178b8c5a3750c81513d.zip
dev-db/percona-server: allow for dev-python/mysqlclient
Package-Manager: Portage-2.3.72, Repoman-2.3.17 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/percona-server/percona-server-5.7.26.29-r1.ebuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/dev-db/percona-server/percona-server-5.7.26.29-r1.ebuild b/dev-db/percona-server/percona-server-5.7.26.29-r1.ebuild
index 1eccb63ed0ad..81b46f88e3aa 100644
--- a/dev-db/percona-server/percona-server-5.7.26.29-r1.ebuild
+++ b/dev-db/percona-server/percona-server-5.7.26.29-r1.ebuild
@@ -133,8 +133,11 @@ DEPEND="${COMMON_DEPEND}
static? ( sys-libs/ncurses[static-libs] )
test? (
acct-group/mysql acct-user/mysql
- $(python_gen_any_dep 'dev-python/mysql-python[${PYTHON_USEDEP}]')
dev-perl/JSON
+ || (
+ $(python_gen_any_dep 'dev-python/mysqlclient[${PYTHON_USEDEP}]')
+ $(python_gen_any_dep 'dev-python/mysql-python[${PYTHON_USEDEP}]')
+ )
)
"
RDEPEND="${COMMON_DEPEND}
@@ -153,7 +156,8 @@ RDEPEND="${COMMON_DEPEND}
PDEPEND="perl? ( >=dev-perl/DBD-mysql-2.9004 )"
python_check_deps() {
- has_version "dev-python/mysql-python[${PYTHON_USEDEP}]"
+ has_version "dev-python/mysqlclient[${PYTHON_USEDEP}]" \
+ || has_version "dev-python/mysql-python[${PYTHON_USEDEP}]"
}
mysql_init_vars() {