Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/mydumper/
Date: Tue, 02 Oct 2018 09:33:59
Message-Id: 1538472790.961bb8cc351caed04a4215fe950a9feef2ae7076.whissi@gentoo
1 commit: 961bb8cc351caed04a4215fe950a9feef2ae7076
2 Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Tue Oct 2 09:33:09 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 2 09:33:10 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=961bb8cc
7
8 dev-db/mydumper: replace virtual/mysql dependency
9
10 Closes: https://bugs.gentoo.org/665844
11 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/9998
13 Package-Manager: Portage-2.3.50, Repoman-2.3.11
14 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
15
16 dev-db/mydumper/mydumper-0.9.5-r1.ebuild | 44 ++++++++++++++++++++++++++++++++
17 1 file changed, 44 insertions(+)
18
19 diff --git a/dev-db/mydumper/mydumper-0.9.5-r1.ebuild b/dev-db/mydumper/mydumper-0.9.5-r1.ebuild
20 new file mode 100644
21 index 00000000000..a924406ea68
22 --- /dev/null
23 +++ b/dev-db/mydumper/mydumper-0.9.5-r1.ebuild
24 @@ -0,0 +1,44 @@
25 +# Copyright 1999-2018 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=6
29 +
30 +inherit cmake-utils
31 +
32 +DESCRIPTION="A high-performance multi-threaded backup (and restore) toolset for MySQL"
33 +HOMEPAGE="https://github.com/maxbube/mydumper"
34 +SRC_URI="https://github.com/maxbube/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
35 +LICENSE="GPL-3"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~x86"
38 +IUSE="doc"
39 +
40 +COMMON_DEPEND="dev-db/mysql-connector-c:=
41 + dev-libs/glib:=
42 + dev-libs/libpcre:=
43 + dev-libs/openssl:=
44 + sys-libs/zlib:="
45 +DEPEND="${COMMON_DEPEND}
46 + virtual/pkgconfig
47 + doc? ( dev-python/sphinx )"
48 +RDEPEND="${COMMON_DEPEND}"
49 +
50 +PATCHES=(
51 + "${FILESDIR}/${PN}-atomic.patch" #654314
52 +)
53 +
54 +src_prepare() {
55 + # respect user cflags; do not expand ${CMAKE_C_FLAGS} (!)
56 + sed -i -e 's:-Werror -O3 -g:${CMAKE_C_FLAGS}:' CMakeLists.txt || die
57 +
58 + # fix doc install path
59 + sed -i -e "s:share/doc/mydumper:share/doc/${PF}:" docs/CMakeLists.txt || die
60 +
61 + cmake-utils_src_prepare
62 +}
63 +
64 +src_configure() {
65 + local mycmakeargs=("-DBUILD_DOCS=$(usex doc)")
66 +
67 + cmake-utils_src_configure
68 +}