1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_6,3_7} )
8 inherit python-any-r1 scons-utils toolchain-funcs flag-o-matic
10 DESCRIPTION="Synchronous multi-master replication engine that provides the wsrep API"
11 HOMEPAGE="http://galeracluster.com"
12 SRC_URI="http://nyc2.mirrors.digitalocean.com/mariadb/mariadb-10.4.10/${P}/src/${P}.tar.gz"
17 KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
18 IUSE="cpu_flags_x86_sse4_2 garbd test"
19 RESTRICT="!test? ( test )"
23 >=dev-libs/boost-1.41:0=
25 BDEPEND=">=sys-devel/gcc-4.4"
29 >=dev-cpp/asio-1.10.1[ssl]
35 # Respect {C,LD}FLAGS.
36 PATCHES=( "${FILESDIR}/galera-4.1-strip-extra-cflags.patch" )
41 # Remove bundled dev-cpp/asio
42 rm -r "${S}/asio" || die
44 #Remove optional garbd daemon
46 rm -r "${S}/garb" || die
52 # Uses hardware specific code that seems to depend on SSE4.2
53 if use cpu_flags_x86_sse4_2 ; then
54 append-cflags -msse4.2
56 append-cflags -DCRC32C_NO_HARDWARE
58 # strict_build_flags=0 disables -Werror, -pedantic, -Weffc++,
59 # and -Wold-style-cast
61 tests=$(usex test 1 0)
68 escons --warn=no-missing-sconscript "${MYSCONS[@]}"
72 dodoc scripts/packages/README scripts/packages/README-MySQL
75 newconfd "${FILESDIR}/garb.cnf" garbd
76 newinitd "${FILESDIR}/garb.init" garbd
79 exeinto /usr/$(get_libdir)/${PN}
80 doexe libgalera_smm.so