aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2017-11-16 01:47:45 -0800
committerGitHub <noreply@github.com>2017-11-16 01:47:45 -0800
commit52ef8c72804f70681e4ec7c9deaee171222d0fea (patch)
tree0b843ea56a6b7877f184dcf1c49bdcd417675310
parent2abdcc1eec62fa7bd6af7abe0d7884966bd65b59 (diff)
parent2e726781461f163c9dcfa9c9070fddf3681d0e45 (diff)
downloadvcpkg-52ef8c72804f70681e4ec7c9deaee171222d0fea.tar.gz
vcpkg-52ef8c72804f70681e4ec7c9deaee171222d0fea.zip
Merge pull request #2212 from Alisayyy-Yang/disableTestBranch1116
[string-theory]disable the tests
-rw-r--r--ports/string-theory/CONTROL2
-rw-r--r--ports/string-theory/disableTests.patch13
-rw-r--r--ports/string-theory/portfile.cmake6
3 files changed, 19 insertions, 2 deletions
diff --git a/ports/string-theory/CONTROL b/ports/string-theory/CONTROL
index 63bc5b656..26cf23674 100644
--- a/ports/string-theory/CONTROL
+++ b/ports/string-theory/CONTROL
@@ -1,3 +1,3 @@
Source: string-theory
-Version: 1.6
+Version: 1.6-1
Description: Flexible C++11 string library with type-safe formatting.
diff --git a/ports/string-theory/disableTests.patch b/ports/string-theory/disableTests.patch
new file mode 100644
index 000000000..7990385ac
--- /dev/null
+++ b/ports/string-theory/disableTests.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index cf79105..a29c209 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -230,5 +230,6 @@ install(FILES
+ install(EXPORT string_theory-targets
+ DESTINATION "${ST_INSTALL_CMAKE_DIR}/string_theory" COMPONENT devel)
+
+-enable_testing()
+-add_subdirectory(test)
++# Note:we do not mind the tests, which caused our library build failed ,so disable the tests
++#enable_testing()
++#add_subdirectory(test)
diff --git a/ports/string-theory/portfile.cmake b/ports/string-theory/portfile.cmake
index 8a6cb1fd1..e3508b76a 100644
--- a/ports/string-theory/portfile.cmake
+++ b/ports/string-theory/portfile.cmake
@@ -7,7 +7,11 @@ vcpkg_from_github(
SHA512 5bc99b6dfc2ab43d2812ee47dfbbeeb68106da39b2349799ab924f009270166ebb5508f87a37e634fbfa5495dd263697a582404650eedc5393722761c5ce2028
HEAD_REF master
)
-
+vcpkg_apply_patches(
+ SOURCE_PATH ${SOURCE_PATH}
+ PATCHES
+ ${CMAKE_CURRENT_LIST_DIR}/disableTests.patch
+)
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
set(ST_BUILD_STATIC ON)
else()