diff options
| author | Connor Fitzgerald <connorwadefitzgerald@gmail.com> | 2019-03-05 13:32:10 -0500 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-03-05 10:32:10 -0800 |
| commit | 40a8969d6d6343cbb6a0f6d3e780c465b55a9622 (patch) | |
| tree | e95a14b79469843d2d268a546a16767383ad673f | |
| parent | c041ae2c6f6896a53dbe726a66212a25a7ebb301 (diff) | |
| download | vcpkg-40a8969d6d6343cbb6a0f6d3e780c465b55a9622.tar.gz vcpkg-40a8969d6d6343cbb6a0f6d3e780c465b55a9622.zip | |
[mapbox-variant] Add new port (#5551)
* [mapbox-variant] Add new port
* [mapbox-variant] Use commit hash in version number
| -rw-r--r-- | ports/mapbox-variant/CONTROL | 3 | ||||
| -rw-r--r-- | ports/mapbox-variant/portfile.cmake | 17 |
2 files changed, 20 insertions, 0 deletions
diff --git a/ports/mapbox-variant/CONTROL b/ports/mapbox-variant/CONTROL new file mode 100644 index 000000000..8e31ca856 --- /dev/null +++ b/ports/mapbox-variant/CONTROL @@ -0,0 +1,3 @@ +Source: mapbox-variant
+Version: 1.1.6-0f734f0
+Description: C++11/C++14 Variant
diff --git a/ports/mapbox-variant/portfile.cmake b/ports/mapbox-variant/portfile.cmake new file mode 100644 index 000000000..ec1a443a8 --- /dev/null +++ b/ports/mapbox-variant/portfile.cmake @@ -0,0 +1,17 @@ +# header-only
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mapbox/variant
+ REF 0f734f01e685a298e3756d30044a4164786c58c5
+ SHA512 36b842ffbaa7d466c26b4783d68dff17b0079927aca876bd021f439591a4ee5f184c71a60ca59857c35675b2e27cf650bedea7a3cdf9c3fc959c3c0ec3b135eb
+ HEAD_REF master
+)
+
+# Copy header files
+file(COPY ${SOURCE_PATH}/include/mapbox/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/mapbox-variant FILES_MATCHING PATTERN "*.hpp")
+
+# Handle copyright
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/mapbox-variant)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/mapbox-variant/LICENSE ${CURRENT_PACKAGES_DIR}/share/mapbox-variant/copyright)
|
