From: Kent Fredric Date: Wed, 10 Jul 2019 14:07:49 +0000 (+1200) Subject: dev-perl/DBD-MariaDB: Minor improvements in configure X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=990320f0a0a778e3b5daf82f77b6eafff7c79069;p=gentoo.git dev-perl/DBD-MariaDB: Minor improvements in configure - Simplify handling provider for backend - Auto-chomp EROOT for future compat with EAPI7 Package-Manager: Portage-2.3.66, Repoman-2.3.16 Signed-off-by: Kent Fredric --- diff --git a/dev-perl/DBD-MariaDB/DBD-MariaDB-1.210.0.ebuild b/dev-perl/DBD-MariaDB/DBD-MariaDB-1.210.0.ebuild index f87dcb390c34..c9433204e7dc 100644 --- a/dev-perl/DBD-MariaDB/DBD-MariaDB-1.210.0.ebuild +++ b/dev-perl/DBD-MariaDB/DBD-MariaDB-1.210.0.ebuild @@ -47,19 +47,15 @@ PERL_RM_FILES=( ) src_configure() { - + local impl + impl=$(usex mariadb mariadb mysql) if use test; then myconf="${myconf} --testdb=test \ --testhost=localhost \ --testuser=test \ --testpassword=test" fi - if use mysql; then - myconf+=" --mysql_config=${EROOT}usr/bin/mysql_config" - fi - if use mariadb; then - myconf+=" --mariadb_config=${EROOT}usr/bin/mariadb_config" - fi + myconf+=" --${impl}_config=${EROOT%/}/usr/bin/${impl}_config" perl-module_src_configure }