dev-db/mysql: Add test depedency on dev-perl/JSON and restructure DEPEND/RDEPEND
authorThomas Deutschmann <whissi@gentoo.org>
Wed, 17 Jan 2018 08:24:02 +0000 (09:24 +0100)
committerThomas Deutschmann <whissi@gentoo.org>
Wed, 17 Jan 2018 08:24:36 +0000 (09:24 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

dev-db/mysql/mysql-5.6.38.ebuild

index 5190600da74906a9e5dc31cd9dfa7d1f82c3631a..dab4d3d189747bffe4856ea61ab3843c7bfdc043 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -18,8 +18,13 @@ IUSE="$IUSE numa"
 # REMEMBER: also update eclass/mysql*.eclass before committing!
 KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
 
-DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 ) numa? ( sys-process/numactl )"
-RDEPEND="${RDEPEND}"
+COMMON_DEPEND="numa? ( sys-process/numactl:= )"
+
+DEPEND="${COMMON_DEPEND}
+       || ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
+       test? ( dev-perl/JSON )"
+RDEPEND="${COMMON_DEPEND}"
+
 
 MY_PATCH_DIR="${WORKDIR}/mysql-extras-${MY_EXTRAS_VER}"