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:
parent
b83c2b36bc
commit
a6f1213504
@ -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>
|
||||
|
11
databases/tarantool-c/files/patch-CMakeLists.txt
Normal file
11
databases/tarantool-c/files/patch-CMakeLists.txt
Normal 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")
|
11
databases/tarantool-c/files/patch-cmake-FindMsgPuck.cmake
Normal file
11
databases/tarantool-c/files/patch-cmake-FindMsgPuck.cmake
Normal 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
|
11
databases/tarantool-c/files/patch-include_tp.h
Normal file
11
databases/tarantool-c/files/patch-include_tp.h
Normal 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>
|
||||
|
11
databases/tarantool-c/files/patch-test-plain_test.c
Normal file
11
databases/tarantool-c/files/patch-test-plain_test.c
Normal 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>
|
||||
|
Loading…
Reference in New Issue
Block a user