1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="A high-performance multi-threaded backup (and restore) toolset for MySQL"
9 HOMEPAGE="https://github.com/maxbube/mydumper"
10 SRC_URI="https://github.com/maxbube/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86"
16 CDEPEND="dev-libs/glib:=
23 doc? ( dev-python/sphinx )"
26 PATCHES=( "${FILESDIR}/${PN}-mariadb-define.patch" )
29 # respect user cflags; do not expand ${CMAKE_C_FLAGS} (!)
30 sed -i -e 's:-Werror -O3 -g:${CMAKE_C_FLAGS}:' CMakeLists.txt || die
32 # fix doc install path
33 sed -i -e "s:share/doc/mydumper:share/doc/${PF}:" docs/CMakeLists.txt || die
35 cmake-utils_src_prepare
39 local mycmakeargs=("-DBUILD_DOCS=$(usex doc)")
41 cmake-utils_src_configure