diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/lionkor-commandline | |
Diffstat (limited to 'vcpkg/ports/lionkor-commandline')
| -rw-r--r-- | vcpkg/ports/lionkor-commandline/add-install.patch | 10 | ||||
| -rw-r--r-- | vcpkg/ports/lionkor-commandline/portfile.cmake | 24 | ||||
| -rw-r--r-- | vcpkg/ports/lionkor-commandline/vcpkg.json | 18 |
3 files changed, 52 insertions, 0 deletions
diff --git a/vcpkg/ports/lionkor-commandline/add-install.patch b/vcpkg/ports/lionkor-commandline/add-install.patch new file mode 100644 index 0000000..f260cd5 --- /dev/null +++ b/vcpkg/ports/lionkor-commandline/add-install.patch @@ -0,0 +1,10 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 36c7356..d30bde0 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -64,3 +64,5 @@ if (BUILD_EXAMPLES) + set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT commandline_test) + endif () + ++set_target_properties(commandline PROPERTIES PUBLIC_HEADER "src/commandline.h") ++install(TARGETS commandline RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib PUBLIC_HEADER DESTINATION include) diff --git a/vcpkg/ports/lionkor-commandline/portfile.cmake b/vcpkg/ports/lionkor-commandline/portfile.cmake new file mode 100644 index 0000000..f975e13 --- /dev/null +++ b/vcpkg/ports/lionkor-commandline/portfile.cmake @@ -0,0 +1,24 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO lionkor/commandline + REF v${VERSION} + SHA512 c7b4cdafae55d5916e527e39a9186a4d15cbb7f65f39a23b149c5f9466dbf55ee947541c4abeabf6949425b8823076d540209112ec2509cd1e6ab583ce6fcfba + HEAD_REF master + PATCHES + add-install.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_EXAMPLES=OFF +) +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/lionkor-commandline/vcpkg.json b/vcpkg/ports/lionkor-commandline/vcpkg.json new file mode 100644 index 0000000..4ecd7ac --- /dev/null +++ b/vcpkg/ports/lionkor-commandline/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "lionkor-commandline", + "version-semver": "2.4.2", + "description": "A C++ commandline for use in servers and chat software. Provides very simple asynchronous input/output.", + "homepage": "https://github.com/lionkor/commandline/", + "license": "MIT", + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |