1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

databases/tarantool-c: Convert REINPLACE_CMD to patch files

This commit is contained in:
Po-Chuan Hsieh 2022-02-28 17:32:56 +08:00
parent b83c2b36bc
commit a6f1213504
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
5 changed files with 44 additions and 4 deletions

View File

@ -19,8 +19,4 @@ USE_GITHUB= yes
GH_ACCOUNT= tarantool
GH_TAGNAME= 2aa7937
post-patch:
@${GREP} -lr 'msgpuck/msgpuck.h' ${WRKSRC}/ | ${XARGS} ${REINPLACE_CMD} -e 's|msgpuck/msgpuck.h|msgpuck.h|'
@${REINPLACE_CMD} -e 's|libmsgpuck.a|libmsgpuck.so|' ${WRKSRC}/cmake/FindMsgPuck.cmake
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
--- CMakeLists.txt.orig 2021-11-26 15:16:51 UTC
+++ CMakeLists.txt
@@ -46,7 +46,7 @@ if (NOT ENABLE_BUNDLED_MSGPUCK)
set (MSGPUCK_REQUIRED ON)
include (cmake/FindMsgPuck.cmake)
include_directories(${MSGPUCK_INCLUDE_DIR})
-elseif (NOT EXISTS "${PROJECT_SOURCE_DIR}/third_party/msgpuck/msgpuck.h")
+elseif (NOT EXISTS "${PROJECT_SOURCE_DIR}/third_party/msgpuck.h")
message(FATAL_ERROR "Could not find msgpuck development files")
else (NOT ENABLE_BUNDLED_MSGPUCK)
set (MSGPUCK_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/third_party")

View File

@ -0,0 +1,11 @@
--- cmake/FindMsgPuck.cmake.orig 2021-11-26 15:16:51 UTC
+++ cmake/FindMsgPuck.cmake
@@ -7,7 +7,7 @@
#
find_path(MSGPUCK_INCLUDE_DIR msgpuck.h PATH_SUFFIXES msgpuck)
-find_library(MSGPUCK_LIBRARY NAMES libmsgpuck.a)
+find_library(MSGPUCK_LIBRARY NAMES libmsgpuck.so)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(MsgPuck

View File

@ -0,0 +1,11 @@
--- include/tp.h.orig 2021-11-26 15:16:51 UTC
+++ include/tp.h
@@ -6,7 +6,7 @@
#include <assert.h>
#include <stdarg.h>
-#include <msgpuck/msgpuck.h>
+#include <msgpuck.h>
#include <sha1.h>
#include <base64.h>

View File

@ -0,0 +1,11 @@
--- test/plain_test.c.orig 2021-11-26 15:16:51 UTC
+++ test/plain_test.c
@@ -8,7 +8,7 @@
#include <sys/uio.h>
-#include <msgpuck/msgpuck.h>
+#include <msgpuck.h>
#include <tarantool/tnt_net.h>