-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move libzmq patching outside of configure
- Loading branch information
Showing
3 changed files
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
^doc$ | ||
^configure.backup$ | ||
^patch_libzmq.sh$ | ||
^Meta$ | ||
^doc(s)?$ | ||
\.gitignore | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
cd src/libzmq | ||
|
||
if [ ! -f src/Makefile.am.orig ]; then | ||
# remove code format helper and valgrind support that CRAN complains about | ||
# sed -i does not work on macOS | ||
mv Makefile.am Makefile.am.orig | ||
sed '/WITH_CLANG_FORMAT/,/VALGRIND_SUPPRESSIONS_FILES/d' Makefile.am.orig > Makefile.am | ||
fi | ||
|
||
if [ ! -f src/curve_client_tools.hpp.orig ]; then | ||
# remove disabled gcc check that cran complains about | ||
mv src/curve_client_tools.hpp src/curve_client_tools.hpp.orig | ||
sed '/^#pragma/s|^|//|' src/curve_client_tools.hpp.orig > src/curve_client_tools.hpp | ||
fi | ||
if [ ! -f include/zmq_utils.h.orig ]; then | ||
mv include/zmq_utils.h src/zmq_utils.h.orig | ||
sed '/^#pragma/s|^|//|' include/zmq_utils.h.orig > include/zmq_utils.h | ||
fi | ||
|
||
cd - |