diff options
| author | Adam Johnson <AdamJohnso@gmail.com> | 2021-02-11 02:53:37 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-10 23:53:37 -0800 |
| commit | d89ed891225d89b1a321d416abf8867ad8fbf5a4 (patch) | |
| tree | 9657c572a45650d232619a4748f986d86d168802 /ports | |
| parent | 8d7cd1d09ee522fc29f02b27fa93808edc66682a (diff) | |
| download | vcpkg-d89ed891225d89b1a321d416abf8867ad8fbf5a4.tar.gz vcpkg-d89ed891225d89b1a321d416abf8867ad8fbf5a4.zip | |
[bfgroup-lyra] Install CMake Targets (#16172)
* [bfgroup-lyra] Install cmake targets.
* [bfgroup-lyra] Update port version.
* x-add-version
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/bfgroup-lyra/CONTROL | 4 | ||||
| -rw-r--r-- | ports/bfgroup-lyra/portfile.cmake | 15 | ||||
| -rw-r--r-- | ports/bfgroup-lyra/vcpkg.json | 7 |
3 files changed, 20 insertions, 6 deletions
diff --git a/ports/bfgroup-lyra/CONTROL b/ports/bfgroup-lyra/CONTROL deleted file mode 100644 index ed2976f25..000000000 --- a/ports/bfgroup-lyra/CONTROL +++ /dev/null @@ -1,4 +0,0 @@ -Source: bfgroup-lyra
-Version: 1.5
-Homepage: https://bfgroup.github.io/Lyra/
-Description: A simple to use, composable, command line parser for C++ 11 and beyond
diff --git a/ports/bfgroup-lyra/portfile.cmake b/ports/bfgroup-lyra/portfile.cmake index cdb4662fe..c7c27bb14 100644 --- a/ports/bfgroup-lyra/portfile.cmake +++ b/ports/bfgroup-lyra/portfile.cmake @@ -6,6 +6,17 @@ vcpkg_from_github( HEAD_REF master
)
-file(COPY ${SOURCE_PATH}/include/lyra DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(
+ CONFIG_PATH share/lyra/cmake
+ TARGET_PATH share/lyra
+)
+
+# Library is header-only, so no debug content.
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
-configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
+file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/bfgroup-lyra/vcpkg.json b/ports/bfgroup-lyra/vcpkg.json new file mode 100644 index 000000000..a7515048b --- /dev/null +++ b/ports/bfgroup-lyra/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "bfgroup-lyra", + "version-string": "1.5", + "port-version": 1, + "description": "A simple to use, composable, command line parser for C++ 11 and beyond", + "homepage": "https://bfgroup.github.io/Lyra/" +} |
