aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-10-03 16:57:09 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-10-03 17:10:15 +0000
commit48c4f4cfcd1946c61ddfeb8071ba4c4cf262d20a (patch)
treed106b1539cd2f6d8e58b7467986efaea04740c16
parent34e96380886b2ae59b25ab4a9553c32b484a6bca (diff)
downloadports-48c4f4cfcd1946c61ddfeb8071ba4c4cf262d20a.tar.gz
ports-48c4f4cfcd1946c61ddfeb8071ba4c4cf262d20a.zip
databases/mydumper: Update to 0.12.7-3
- Convert REINPLACE_CMD to patch file Changes: https://github.com/mydumper/mydumper/releases
-rw-r--r--databases/mydumper/Makefile6
-rw-r--r--databases/mydumper/distinfo6
-rw-r--r--databases/mydumper/files/patch-CMakeLists.txt15
3 files changed, 20 insertions, 7 deletions
diff --git a/databases/mydumper/Makefile b/databases/mydumper/Makefile
index 7d73e3133983..e0daae6b8da7 100644
--- a/databases/mydumper/Makefile
+++ b/databases/mydumper/Makefile
@@ -1,6 +1,6 @@
PORTNAME= mydumper
DISTVERSIONPREFIX= v
-DISTVERSION= 0.12.5-3
+DISTVERSION= 0.12.7-3
CATEGORIES= databases
MAINTAINER= sunpoet@FreeBSD.org
@@ -17,6 +17,7 @@ USE_GNOME= glib20
CMAKE_ARGS= ${CMAKE_ARGS_${CHOSEN_COMPILER_TYPE}}
CMAKE_ARGS_gcc= -DMYSQL_LIBRARIES_atomic:FILEPATH=${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libatomic.so
CMAKE_OFF= BUILD_DOCS WITH_BINLOG
+CMAKE_ON= WITH_GLIB_uuid_string_random
PLIST_FILES= sbin/mydumper sbin/myloader
@@ -24,9 +25,6 @@ USE_GITHUB= yes
PORTSCOUT= skipv:v${DISTVERSION}
-post-patch:
- @${REINPLACE_CMD} -e '/link_libraries(mydumper/ s|)$$| -lm)|; s|-Werror||' ${WRKSRC}/CMakeLists.txt
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mydumper ${WRKSRC}/myloader ${STAGEDIR}${PREFIX}/sbin/
diff --git a/databases/mydumper/distinfo b/databases/mydumper/distinfo
index 64cc0c4debf6..14bdeece212e 100644
--- a/databases/mydumper/distinfo
+++ b/databases/mydumper/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1658506551
-SHA256 (mydumper-mydumper-v0.12.5-3_GH0.tar.gz) = 2fc5af9643a27eaca0a2ab37ba11ccac4d82f20bd8a9c14c886961453aafdf24
-SIZE (mydumper-mydumper-v0.12.5-3_GH0.tar.gz) = 131104
+TIMESTAMP = 1664767816
+SHA256 (mydumper-mydumper-v0.12.7-3_GH0.tar.gz) = 28701956a2d6793290592cab36eb9ca6d5764a62845203fdfde4549c7acaa2f9
+SIZE (mydumper-mydumper-v0.12.7-3_GH0.tar.gz) = 136449
diff --git a/databases/mydumper/files/patch-CMakeLists.txt b/databases/mydumper/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..1c5989370cc8
--- /dev/null
+++ b/databases/mydumper/files/patch-CMakeLists.txt
@@ -0,0 +1,15 @@
+--- CMakeLists.txt.orig 2022-09-21 12:30:41 UTC
++++ CMakeLists.txt
+@@ -43,10 +43,10 @@ if (WITH_ZSTD)
+ endif (WITH_ZSTD)
+
+ if (WITH_ZSTD)
+- set(CMAKE_C_FLAGS "-Wall -Wno-deprecated-declarations -Wunused -Wwrite-strings -Wno-strict-aliasing -Wextra -Wshadow -O3 -g -DZWRAP_USE_ZSTD=1 -Werror -Wno-discarded-qualifiers ${MYSQL_CFLAGS}")
++ set(CMAKE_C_FLAGS "-Wall -Wno-deprecated-declarations -Wunused -Wwrite-strings -Wno-strict-aliasing -Wextra -Wshadow -O3 -g -DZWRAP_USE_ZSTD=1 -Wno-discarded-qualifiers ${MYSQL_CFLAGS}")
+ include_directories(${MYDUMPER_SOURCE_DIR} ${MYSQL_INCLUDE_DIR} ${GLIB2_INCLUDE_DIR} ${PCRE_INCLUDE_DIR} ${ZLIB_INCLUDE_DIRS} ${ZSTD_INCLUDE_DIR} )
+ else (WITH_ZSTD)
+- set(CMAKE_C_FLAGS "-Wall -Wno-deprecated-declarations -Wunused -Wwrite-strings -Wno-strict-aliasing -Wextra -Wshadow -O3 -g -Werror ${MYSQL_CFLAGS}")
++ set(CMAKE_C_FLAGS "-Wall -Wno-deprecated-declarations -Wunused -Wwrite-strings -Wno-strict-aliasing -Wextra -Wshadow -O3 -g ${MYSQL_CFLAGS}")
+ include_directories(${MYDUMPER_SOURCE_DIR} ${MYSQL_INCLUDE_DIR} ${GLIB2_INCLUDE_DIR} ${PCRE_INCLUDE_DIR} ${ZLIB_INCLUDE_DIRS} )
+ endif (WITH_ZSTD)
+