aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2016-10-27 14:45:51 -0700
committerRobert Schumacher <roschuma@microsoft.com>2016-10-27 14:45:51 -0700
commit01ae1e172053c9e41464d7d3238a54e4c74f39b1 (patch)
treebe914223df6c422574281fd4f9daeeb517e0b3aa
parent20f18f604f394c480b2177fd0b627cd5925aa63c (diff)
parent1510af081a8c318952c995aa9f2196da990ebc22 (diff)
downloadvcpkg-01ae1e172053c9e41464d7d3238a54e4c74f39b1.tar.gz
vcpkg-01ae1e172053c9e41464d7d3238a54e4c74f39b1.zip
Merge pull request #202 from frederich/tc-range
[think-cell-range] Adding think-cell's range library
-rw-r--r--ports/boost/CONTROL2
-rw-r--r--ports/boost/portfile.cmake14
-rw-r--r--ports/think-cell-range/CONTROL5
-rw-r--r--ports/think-cell-range/portfile.cmake16
4 files changed, 35 insertions, 2 deletions
diff --git a/ports/boost/CONTROL b/ports/boost/CONTROL
index fc0f3cef7..4c4942752 100644
--- a/ports/boost/CONTROL
+++ b/ports/boost/CONTROL
@@ -1,3 +1,3 @@
Source: boost
-Version: 1.62
+Version: 1.62-1
Description: Peer-reviewed portable C++ source libraries
diff --git a/ports/boost/portfile.cmake b/ports/boost/portfile.cmake
index 43dde456a..71fc8ba99 100644
--- a/ports/boost/portfile.cmake
+++ b/ports/boost/portfile.cmake
@@ -9,6 +9,18 @@ vcpkg_download_distfile(ARCHIVE_FILE
)
vcpkg_extract_source_archive(${ARCHIVE_FILE})
+# apply boost range hotfix
+vcpkg_download_distfile(DIFF
+ URLS "https://github.com/boostorg/range/commit/e7ebe14707130cda7b72e0ae5e93b17157fdb6a2.diff"
+ FILENAME "boost-range-has_range_interator-hotfix_e7ebe14707130cda7b72e0ae5e93b17157fdb6a2.diff"
+ SHA512 77dad42bfd9bbab2bbddf361d5b7ad3dd6f812f4294c6dd1a677bb4d0191a4fff43bca32fdd4fce05d428562abb6e38afd0fd33ca6a8b5f28481d70cd2f3dd67
+)
+FILE(READ "${DIFF}" content)
+STRING(REGEX REPLACE "include/" "" content "${content}")
+set(DIFF2 ${CURRENT_BUILDTREES_DIR}/src/boost-range-has_range_interator-hotfix_e7ebe14707130cda7b72e0ae5e93b17157fdb6a2.diff.fixed)
+FILE(WRITE ${DIFF2} "${content}")
+vcpkg_apply_patches(SOURCE_PATH ${SOURCE_PATH} PATCHES ${DIFF2})
+
if(NOT EXISTS ${SOURCE_PATH}/b2.exe)
message(STATUS "Bootstrapping")
vcpkg_execute_required_process(
@@ -116,4 +128,4 @@ elseif()
endif()
message(STATUS "Packaging ${TARGET_TRIPLET}-dbg done")
-vcpkg_copy_pdbs() \ No newline at end of file
+vcpkg_copy_pdbs()
diff --git a/ports/think-cell-range/CONTROL b/ports/think-cell-range/CONTROL
new file mode 100644
index 000000000..0311dd1ae
--- /dev/null
+++ b/ports/think-cell-range/CONTROL
@@ -0,0 +1,5 @@
+Source: think-cell-range
+Maintainer: jfrederich@gmail.com
+Version: 61e184a
+Description: think-cell's range library <https://think-cell.com>, <https://github.com/think-cell/range>, <https://www.think-cell.com/en/career/talks/ranges/#1>
+Build-Depends: boost
diff --git a/ports/think-cell-range/portfile.cmake b/ports/think-cell-range/portfile.cmake
new file mode 100644
index 000000000..81dc0eea4
--- /dev/null
+++ b/ports/think-cell-range/portfile.cmake
@@ -0,0 +1,16 @@
+include(vcpkg_common_functions)
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/range-61e184a102d7818fd18f293c9ef99e6ebb59c222)
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://github.com/think-cell/range/archive/61e184a102d7818fd18f293c9ef99e6ebb59c222.zip"
+ FILENAME "think-cell_range-61e184a.zip"
+ SHA512 1d27039918954624f98638636d107b4f8a997bee264552437f6229da4bce7fda31e67ac6f7b3b92a6dfa8d466b4ca6c05c1e516f3e7b37e0853d7d4153ef9587
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+file(INSTALL ${SOURCE_PATH}/range DESTINATION ${CURRENT_PACKAGES_DIR}/include/think-cell FILES_MATCHING PATTERN "*.h")
+
+file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/think-cell-range)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/think-cell-range/COPYING ${CURRENT_PACKAGES_DIR}/share/think-cell-range/copyright)
+file(COPY ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/think-cell-range)
+
+file(COPY ${SOURCE_PATH}/range/range.example.cpp DESTINATION ${CURRENT_PACKAGES_DIR}/share/think-cell-range)