diff options
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/" +} |
