aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Frederich <jfrederich@gmail.com>2016-10-22 21:35:24 +0200
committerJens Frederich <jfrederich@gmail.com>2016-10-22 21:35:24 +0200
commitff10906a4b1f08f813592699c5e2734cda252845 (patch)
tree85b5b83ae71f95f1d9b33bc1561d88ce64f64e3b
parent1c37f9981d7f751d67d377bafc209d007a9be4b4 (diff)
downloadvcpkg-ff10906a4b1f08f813592699c5e2734cda252845.tar.gz
vcpkg-ff10906a4b1f08f813592699c5e2734cda252845.zip
[think-cell-range] Adding think-cell's range library
https://www.think-cell.com/en/career/talks/ranges/#1 Signed-off-by: Jens Frederich <jfrederich@gmail.com>
-rw-r--r--ports/think-cell-range/CONTROL5
-rw-r--r--ports/think-cell-range/portfile.cmake20
2 files changed, 25 insertions, 0 deletions
diff --git a/ports/think-cell-range/CONTROL b/ports/think-cell-range/CONTROL
new file mode 100644
index 000000000..8c7ff0db9
--- /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://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..cc0614e4c
--- /dev/null
+++ b/ports/think-cell-range/portfile.cmake
@@ -0,0 +1,20 @@
+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}/range/range.example.cpp DESTINATION ${CURRENT_PACKAGES_DIR}/share/think-cell-range)
+
+vcpkg_apply_patches(
+ SOURCE_PATH ${CURRENT_INSTALLED_DIR}/include
+ PATCHES "${SOURCE_PATH}/boost_patches/has_range_iterator.patch"
+)