summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorTomáš Mózes <hydrapolic@gmail.com>2023-02-03 20:32:05 +0000
committerSam James <sam@gentoo.org>2023-02-15 05:52:17 +0000
commit4b0697e7f59dcda2a557c6dd66d6eca4e22e3793 (patch)
tree7cea5b84b87aade68fa749c1efe1e67eba809098 /dev-db
parentapp-admin/syslog-ng: add 4.0.1 (diff)
downloadgentoo-4b0697e7f59dcda2a557c6dd66d6eca4e22e3793.tar.gz
gentoo-4b0697e7f59dcda2a557c6dd66d6eca4e22e3793.tar.bz2
gentoo-4b0697e7f59dcda2a557c6dd66d6eca4e22e3793.zip
dev-db/mydumper: add 0.13.1.2
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/mydumper/Manifest1
-rw-r--r--dev-db/mydumper/files/mydumper-0.13.1-atomic.patch26
-rw-r--r--dev-db/mydumper/mydumper-0.13.1.2.ebuild49
3 files changed, 76 insertions, 0 deletions
diff --git a/dev-db/mydumper/Manifest b/dev-db/mydumper/Manifest
index e9d98b67f7fa..6840099c7548 100644
--- a/dev-db/mydumper/Manifest
+++ b/dev-db/mydumper/Manifest
@@ -2,3 +2,4 @@ DIST mydumper-0.11.5-2.tar.gz 110088 BLAKE2B c9e2f56ce7cc206f311ba00fd82e96479cd
DIST mydumper-0.12.1.tar.gz 114268 BLAKE2B d8fd459c645e0a8c7f978f0b948b534d3e602489ffdee926cc61d2f77053506c0b73a26b1dd89fc206dc9e7dea4b0c5cc848de6dbcceecf68450e5be9928be28 SHA512 90466520af4c26478b963a70ac9614889decae743fb40c3f5b6438b1e6db11ef284bd077288a0afa2aa02c93e9df32711d948cd868a7030d5215c2c7f5f96405
DIST mydumper-0.12.5-3.tar.gz 131104 BLAKE2B 436c92474c498f17e7cfd723d7dbdd9f56f0a3cd42be88233dcfee6a2768ff49c795bb232e5f4bad1d6d9eb5e1cedf7fa812bc3dbc7a4eeb8fbb4894034a5960 SHA512 03c4a219877c61a3659561afd37ba095030edd0f44f922de51d4801a08cf6dc17c5fc8864f9b47d4d7c70a94bd2f814192ab1fa66f174e27d5d0e8a3a09a6b02
DIST mydumper-0.12.7-3.tar.gz 136449 BLAKE2B 99906443c4195f1a43d11875156ccb943efea44c90d1e7b9a6fb3427ab87562dbf429b789d28ba285d6b8b6e0a13c279f34548b43ee28525636a01a4eaa86833 SHA512 266214d8ab11fb82ad64100cde8d57a873740bd2f14f5026eddbb25e196294a7533252e8f13ba57fa4224c5cac9914debca452efe68eea58d576282f8ba53f65
+DIST mydumper-0.13.1-2.tar.gz 154913 BLAKE2B 9c44ca368737fc87ed6138756909721dbdbddeb9ccef78b536dfe705da8e4a73ad5e084d08fef795c7535c33d47b25e631ce66f3c2638058fae2d37cb36b3a13 SHA512 6b6e411896e2527d02a1a7ecd4d6c6103f8bad0a67f41aea4ccd66285a86a9ba8dd0663f163a27f38a6130c9caf69bb3b9b9c5ae36a196de4ac03aff4dd87424
diff --git a/dev-db/mydumper/files/mydumper-0.13.1-atomic.patch b/dev-db/mydumper/files/mydumper-0.13.1-atomic.patch
new file mode 100644
index 000000000000..587d06804a53
--- /dev/null
+++ b/dev-db/mydumper/files/mydumper-0.13.1-atomic.patch
@@ -0,0 +1,26 @@
+diff --git a/cmake/modules/FindMySQL.cmake b/cmake/modules/FindMySQL.cmake
+index 2908251..109f0da 100644
+--- a/cmake/modules/FindMySQL.cmake
++++ b/cmake/modules/FindMySQL.cmake
+@@ -85,20 +85,7 @@ find_path(MYSQL_INCLUDE_DIR mysql.h
+
+ set(TMP_MYSQL_LIBRARIES "")
+ set(CMAKE_FIND_LIBRARY_SUFFIXES .so .lib .so.1 .dylib .a .tbd)
+-foreach(MY_LIB ${MYSQL_ADD_LIBRARIES})
+- find_library("MYSQL_LIBRARIES_${MY_LIB}" NAMES ${MY_LIB}
+- HINTS
+- ${MYSQL_ADD_LIBRARY_PATH}
+- /usr/lib/mysql
+- /usr/lib
+- /usr/local/lib
+- /usr/local/lib/mysql
+- /usr/local/mysql/lib
+- )
+- list(APPEND TMP_MYSQL_LIBRARIES "${MYSQL_LIBRARIES_${MY_LIB}}")
+-endforeach(MY_LIB ${MYSQL_ADD_LIBRARIES})
+-
+-set(MYSQL_LIBRARIES ${TMP_MYSQL_LIBRARIES} CACHE FILEPATH INTERNAL)
++set(MYSQL_LIBRARIES ${MYSQL_ADD_LIBRARIES} CACHE FILEPATH INTERNAL)
+
+ if(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
+ set(MYSQL_FOUND TRUE CACHE INTERNAL "MySQL found")
diff --git a/dev-db/mydumper/mydumper-0.13.1.2.ebuild b/dev-db/mydumper/mydumper-0.13.1.2.ebuild
new file mode 100644
index 000000000000..bcf83752cc30
--- /dev/null
+++ b/dev-db/mydumper/mydumper-0.13.1.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+inherit cmake
+
+MY_PV="$(ver_rs 3 -)"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="A high-performance multi-threaded backup (and restore) toolset for MySQL"
+HOMEPAGE="https://github.com/maxbube/mydumper"
+SRC_URI="https://github.com/maxbube/mydumper/archive/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+RDEPEND="app-arch/zstd
+ dev-db/mysql-connector-c:=
+ dev-libs/glib:2
+ dev-libs/libpcre
+ dev-libs/openssl:=
+ sys-libs/zlib:="
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig
+ doc? ( dev-python/sphinx )"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.13.1-atomic.patch" #654314
+)
+
+src_prepare() {
+ # respect user cflags; do not expand ${CMAKE_C_FLAGS} (!)
+ sed -i -e 's|-O3 -g -Werror|${CMAKE_C_FLAGS}|' CMakeLists.txt || die
+
+ # fix doc install path
+ sed -i -e "s|share/doc/mydumper|share/doc/${PF}|" docs/CMakeLists.txt || die
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(-DBUILD_DOCS=$(usex doc))
+
+ cmake_src_configure
+}