diff options
| author | myd7349 <myd7349@gmail.com> | 2019-05-27 19:15:06 +0800 |
|---|---|---|
| committer | myd7349 <myd7349@gmail.com> | 2019-05-27 19:15:06 +0800 |
| commit | 8999734b401bb8bac9fa20ce831b2ad2a9a67add (patch) | |
| tree | 3f5cf1d5abbbc4295b556ea6e27882950bdd81f3 /ports/cppitertools | |
| parent | a7ac12c90afed0a13e3b24d509927d2fca506115 (diff) | |
| parent | 9ffac4d56eed774419fbb628ea89417a6399db58 (diff) | |
| download | vcpkg-8999734b401bb8bac9fa20ce831b2ad2a9a67add.tar.gz vcpkg-8999734b401bb8bac9fa20ce831b2ad2a9a67add.zip | |
Merge branch 'master' into rdkafka-init
Diffstat (limited to 'ports/cppitertools')
| -rw-r--r-- | ports/cppitertools/CONTROL | 4 | ||||
| -rw-r--r-- | ports/cppitertools/portfile.cmake | 20 |
2 files changed, 24 insertions, 0 deletions
diff --git a/ports/cppitertools/CONTROL b/ports/cppitertools/CONTROL new file mode 100644 index 000000000..8c5f387ec --- /dev/null +++ b/ports/cppitertools/CONTROL @@ -0,0 +1,4 @@ +Source: cppitertools
+Version: 2019-04-14-2
+Description: Range-based for loop add-ons inspired by the Python builtins and itertools library
+Build-Depends: boost-optional
diff --git a/ports/cppitertools/portfile.cmake b/ports/cppitertools/portfile.cmake new file mode 100644 index 000000000..f19069a3b --- /dev/null +++ b/ports/cppitertools/portfile.cmake @@ -0,0 +1,20 @@ +# header-only library
+
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ryanhaining/cppitertools
+ REF 97bfd33cdc268426b20f189c13d3ed88f5e1f4c2
+ SHA512 7b8926cf00b5be17fa89a1d1aea883e60848187bb00d637c40a20f6e11811add4785f2f461e530a6cd557d3be16490799ffcd7ea90bd7b58fdca549c3df03e8c
+ HEAD_REF master
+)
+
+file(GLOB INCLUDE_FILES ${SOURCE_PATH}/*.hpp)
+file(GLOB INCLUDE_INTERNAL_FILES ${SOURCE_PATH}/internal/*.hpp)
+
+file(COPY ${INCLUDE_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+file(COPY ${INCLUDE_INTERNAL_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/internal)
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
