diff options
| author | myd7349 <myd7349@gmail.com> | 2019-01-26 05:44:47 +0800 |
|---|---|---|
| committer | Codiferous <44823842+Codiferous@users.noreply.github.com> | 2019-01-25 13:44:47 -0800 |
| commit | af4e9288446b1237096d8cb91615fcb1aafaee84 (patch) | |
| tree | 93d6978cd1ab482b6b7b413736e3da6b2135cb84 | |
| parent | bab298c970df72ab4dd202bfe3e163b97f8c9053 (diff) | |
| download | vcpkg-af4e9288446b1237096d8cb91615fcb1aafaee84.tar.gz vcpkg-af4e9288446b1237096d8cb91615fcb1aafaee84.zip | |
[xtl] Add new port (#5145)
* [xtl] Add new port
* [xtl] Update to 0.5.3
| -rw-r--r-- | ports/xtl/CONTROL | 4 | ||||
| -rw-r--r-- | ports/xtl/portfile.cmake | 30 |
2 files changed, 34 insertions, 0 deletions
diff --git a/ports/xtl/CONTROL b/ports/xtl/CONTROL new file mode 100644 index 000000000..f5158ebe5 --- /dev/null +++ b/ports/xtl/CONTROL @@ -0,0 +1,4 @@ +Source: xtl
+Version: 0.5.3
+Build-Depends: nlohmann-json
+Description: The x template library.
diff --git a/ports/xtl/portfile.cmake b/ports/xtl/portfile.cmake new file mode 100644 index 000000000..23a6f9f44 --- /dev/null +++ b/ports/xtl/portfile.cmake @@ -0,0 +1,30 @@ +# header-only library
+
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO QuantStack/xtl
+ REF 0.5.3
+ SHA512 340e10a113d88be81833e8c123835de0fd30bc9b80387cd260edbff5e54ff2d78a72f77ec8803e3031f54f32c7f189a7afc9e0c1b7446fc6340a4482f308ccbf
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DDOWNLOAD_GTEST=OFF
+ -DTF_BUILD_EXAMPLES=OFF
+ -DTF_BUILD_TESTS=OFF
+ -DTF_BUILD_BENCHMARKS=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
