Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/percona-xtrabackup/
Date: Wed, 26 Apr 2017 21:02:48
Message-Id: 1493240504.fc0e93f4c79400485e369518a9bc8dd7665d283a.monsieurp@gentoo
1 commit: fc0e93f4c79400485e369518a9bc8dd7665d283a
2 Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Fri Apr 21 15:09:02 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 26 21:01:44 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc0e93f4
7
8 dev-db/percona-xtrabackup: version bump to 2.4.7.
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11 Closes: https://github.com/gentoo/gentoo/pull/4458
12
13 dev-db/percona-xtrabackup/Manifest | 1 +
14 .../percona-xtrabackup-2.4.7.ebuild | 74 ++++++++++++++++++++++
15 2 files changed, 75 insertions(+)
16
17 diff --git a/dev-db/percona-xtrabackup/Manifest b/dev-db/percona-xtrabackup/Manifest
18 index 7b00b9fe287..f34a4c3f7be 100644
19 --- a/dev-db/percona-xtrabackup/Manifest
20 +++ b/dev-db/percona-xtrabackup/Manifest
21 @@ -1 +1,2 @@
22 DIST percona-xtrabackup-2.4.6.tar.gz 54108124 SHA256 1e21ab097550901d8f2fa3dc37402ba6a994afa0722760f8f19cb369565e5e8b SHA512 7ed16ba73d4232cc5f40f3dd4674087b65326b42f3f0d9cd462a1eef1dd2c41c582cb71fff49998d9e65f71322e2b26d0708b2ba36da22f54f456679b9a544e5 WHIRLPOOL 3d53e7a2b7b61c0dd779d723a3efb4d1ab4d98aff751a325e6028c0710a1f4de969d70f62c65a8a0e67f0d95643a0245524fb37708602ef303f21674c5f92fe3
23 +DIST percona-xtrabackup-2.4.7.tar.gz 54119422 SHA256 261567a4f0bdde0df7eefeb4f651ad39b4752984bbaabd68245e0e5ee368871a SHA512 7aaf82975cd4c0b7af119902eddf96b8ce75c0fbcbd6835991e33f1f89347361fbe3c9040762c9989df5d53199b628aa6b2b45004ef440bb46e2415fbab13009 WHIRLPOOL 768749471ac987a24f86d07b330988cb679042be5a8affd264f1195eeeacaa8e403370d558316708a056acb4b0ad78083e195f31a4f2a58bc497bf301be2ddb1
24
25 diff --git a/dev-db/percona-xtrabackup/percona-xtrabackup-2.4.7.ebuild b/dev-db/percona-xtrabackup/percona-xtrabackup-2.4.7.ebuild
26 new file mode 100644
27 index 00000000000..a2108da72ad
28 --- /dev/null
29 +++ b/dev-db/percona-xtrabackup/percona-xtrabackup-2.4.7.ebuild
30 @@ -0,0 +1,74 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit cmake-utils flag-o-matic
37 +
38 +DESCRIPTION="Hot backup utility for MySQL based servers"
39 +HOMEPAGE="https://www.percona.com/software/mysql-database/percona-xtrabackup"
40 +SRC_URI="https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/source/tarball/${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE=""
46 +
47 +DEPEND="
48 + app-arch/lz4:0=
49 + app-editors/vim-core
50 + >=dev-libs/boost-1.59.0:=
51 + dev-libs/libaio
52 + dev-libs/libedit
53 + dev-libs/libevent:0=
54 + dev-libs/libgcrypt:0=
55 + dev-libs/libgpg-error
56 + dev-python/sphinx
57 + net-misc/curl
58 + sys-libs/zlib"
59 +RDEPEND="${DEPEND}
60 + !dev-db/xtrabackup-bin
61 + dev-perl/DBD-mysql"
62 +
63 +PATCHES=(
64 + "${FILESDIR}"/${PN}-2.4.6-remove-boost-version-check.patch
65 + "${FILESDIR}"/${PN}-2.4.6-fix-gcc6-isystem.patch
66 +)
67 +
68 +src_prepare() {
69 + cmake-utils_src_prepare
70 +
71 + # remove bundled lz4, boost, libedit, libevent, zlib
72 + # just to be safe...
73 + rm -r extra/lz4 include/boost_1_59_0 \
74 + cmd-line-utils/libedit libevent zlib || die
75 +}
76 +
77 +src_configure() {
78 + # Needed, due to broken handling of CMAKE_BUILD_TYPE leading to
79 + #
80 + # error: 'fts_ast_node_type_get' was not declared in this scope
81 + #
82 + append-cppflags -DDBUG_OFF
83 +
84 + local mycmakeargs=(
85 + -DBUILD_CONFIG=xtrabackup_release
86 + -DWITH_EDITLINE=system
87 + -DWITH_LIBEVENT=system
88 + -DWITH_LZ4=system
89 + -DWITH_SSL=bundled # uses yassl, which isn't packaged
90 + -DWITH_ZLIB=system
91 + -DWITH_PIC=ON
92 + )
93 + cmake-utils_src_configure
94 +}
95 +
96 +src_install() {
97 + local p="${BUILD_DIR}/storage/innobase/xtrabackup"
98 +
99 + dobin "${p}"/src/{xbcloud,xbcrypt,xbstream,xtrabackup}
100 + dosym xtrabackup /usr/bin/innobackupex
101 +
102 + einstalldocs
103 + doman "${p}"/doc/source/build/man/*
104 +}