eclass: Add innodb-snappy USE for >=mariadb-10.1.7 to mysql-{cmake,multilib}.eclass
authorBrian Evans <grknight@gentoo.org>
Mon, 14 Sep 2015 19:41:49 +0000 (15:41 -0400)
committerBrian Evans <grknight@gentoo.org>
Mon, 14 Sep 2015 19:41:49 +0000 (15:41 -0400)
Signed-off-by: Brian Evans <grknight@gentoo.org>
eclass/mysql-cmake.eclass
eclass/mysql-multilib.eclass

index 8d026b0b4c3c39965fcf540669f480b5bff94a97..439066e76c3c247973bfacef6c6f7a8a97cc85cb 100644 (file)
@@ -236,6 +236,10 @@ configure_cmake_standard() {
                                        $(cmake-utils_use_with innodb-lzo INNODB_LZO) )
                fi
 
+               if in_iuse innodb-snappy ; then
+                       mycmakeargs+=( $(cmake-utils_use_with innodb-snappy INNODB_SNAPPY)  )
+               fi
+
                if mysql_version_is_at_least "10.1.2" ; then
                        mycmakeargs+=( $(mysql-cmake_use_plugin cracklib CRACKLIB_PASSWORD_CHECK ) )
                fi
index 6f7b583c3a210f895d49acca18f756e372b88ba8..35f5d6961286beeee5bed511ee9c5bde16e950dd 100644 (file)
@@ -231,6 +231,9 @@ if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]]; then
        # Choices are bzip2, lz4, lzma, lzo.  bzip2 and lzma enabled by default as they are system libraries
        mysql_version_is_at_least "10.1.1" && IUSE="${IUSE} innodb-lz4 innodb-lzo"
 
+       # It can also compress with app-arch/snappy
+       mysql_version_is_at_least "10.1.7" && IUSE="${IUSE} innodb-snappy"
+
        # 10.1.2 introduces a cracklib password checker
        mysql_version_is_at_least "10.1.1" && IUSE="${IUSE} cracklib"
 fi
@@ -364,6 +367,7 @@ if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]] ; then
                "
 
        mysql_version_is_at_least "10.1.2" && DEPEND="${DEPEND} cracklib? ( sys-libs/cracklib:0= )"
+       mysql_version_is_at_least "10.1.7" && DEPEND="${DEPEND} innodb-snappy? ( app-arch/snappy )"
 fi
 
 if [[ ${PN} == "percona-server" ]] ; then