diff options
| author | Rafael Varago <rafael.varago@gmail.com> | 2020-05-21 20:31:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-21 11:31:33 -0700 |
| commit | bfcc390dcbbaa3299241669c9581981d42452600 (patch) | |
| tree | d4951cae6d76ef60015aa72221eb7138ebe54447 | |
| parent | f075c6b1ee0fd618fb79ba783f9f36530c04d90c (diff) | |
| download | vcpkg-bfcc390dcbbaa3299241669c9581981d42452600.tar.gz vcpkg-bfcc390dcbbaa3299241669c9581981d42452600.zip | |
[absent] Add new port (#11447)
* [absent] Add new port
absent is a small library meant to simplify the composition
of nullable types in a generic, type-safe, and declarative style
for some C++ type-constructors
* [absent] Remove deprecated include(vcpkg_common_functions)
* [absent] Add Homepage
| -rw-r--r-- | ports/absent/CONTROL | 4 | ||||
| -rw-r--r-- | ports/absent/portfile.cmake | 33 |
2 files changed, 37 insertions, 0 deletions
diff --git a/ports/absent/CONTROL b/ports/absent/CONTROL new file mode 100644 index 000000000..03e3d0001 --- /dev/null +++ b/ports/absent/CONTROL @@ -0,0 +1,4 @@ +Source: absent
+Version: 0.3.0
+Homepage: https://github.com/rvarago/absent
+Description: A small library meant to simplify the composition of nullable types in a generic, type-safe, and declarative style for some C++ type constructors
diff --git a/ports/absent/portfile.cmake b/ports/absent/portfile.cmake new file mode 100644 index 000000000..c4d6a8bbc --- /dev/null +++ b/ports/absent/portfile.cmake @@ -0,0 +1,33 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO rvarago/absent
+ REF 0.3.0
+ SHA512 e576a77e7305597ec931c4302a60355241fc8f2bb823d92add1079ea63e8ade39da6f5853135c1e68e3cc4c460dad7a67a76c3c451e645f05a39c2435b048f87
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_TESTS=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(
+ CONFIG_PATH lib/cmake/${PORT}
+)
+
+file(REMOVE_RECURSE
+ ${CURRENT_PACKAGES_DIR}/debug
+ ${CURRENT_PACKAGES_DIR}/lib
+)
+
+file(INSTALL
+ ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
+)
+
+file(INSTALL
+ ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright
+)
+
|
