Skip to content

Commit

Permalink
[lionkor-commandline] update to 2.4.2 (#43612)
Browse files Browse the repository at this point in the history
  • Loading branch information
toge authored Feb 4, 2025
1 parent 7edc236 commit bea476a
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 37 deletions.
21 changes: 10 additions & 11 deletions ports/lionkor-commandline/add-install.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b04634b..ba08ef4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,3 +44,5 @@ if(BUILD_EXAMPLES)
set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT commandline_test)
endif()

+set_target_properties(commandline PROPERTIES PUBLIC_HEADER "commandline.h")
+install(TARGETS commandline RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib PUBLIC_HEADER DESTINATION include)

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)
48 changes: 24 additions & 24 deletions ports/lionkor-commandline/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO lionkor/commandline
REF v${VERSION}
SHA512 55473defd4e3837497c552511fdf0552a7a51a8510363d58f436b657e149241e23439c23622a42cf377bc94c8da502cf75e3ce70331e295520b427328bc0a140
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)
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)
2 changes: 1 addition & 1 deletion ports/lionkor-commandline/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lionkor-commandline",
"version-semver": "2.2.0",
"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",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5549,7 +5549,7 @@
"port-version": 0
},
"lionkor-commandline": {
"baseline": "2.2.0",
"baseline": "2.4.2",
"port-version": 0
},
"litehtml": {
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/lionkor-commandline.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "5e23a42cc1b8187e32ccc11910bcb8042b8d0fe3",
"version-semver": "2.4.2",
"port-version": 0
},
{
"git-tree": "5588648e1995f79458647db04b18ddf68c6ddcd6",
"version-semver": "2.2.0",
Expand Down

0 comments on commit bea476a

Please sign in to comment.