Skip to content

Commit

Permalink
dev-db/percona-server: allow for dev-python/mysqlclient
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.72, Repoman-2.3.17
Signed-off-by: Thomas Deutschmann <[email protected]>
  • Loading branch information
Whissi committed Aug 23, 2019
1 parent a6732e3 commit cfc9cf4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dev-db/percona-server/percona-server-5.7.26.29-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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() {
Expand Down

0 comments on commit cfc9cf4

Please sign in to comment.