Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions ports/commandline/add-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b4db57c..7ace55c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,3 +22,4 @@ if(BUILD_EXAMPLES)
target_link_libraries(test commandline)
endif()

+install(TARGETS commandline)
Comment thread
Pospelove marked this conversation as resolved.
Outdated
25 changes: 25 additions & 0 deletions ports/commandline/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO lionkor/commandline
REF 4a8000d6b767263a79c589fcc74099a4454e07a9
SHA512 81ee2716b7048e51d26f75033be7a6d3a1aec9bfef833ad067112b26144023dfad8f5f8d145b4162dba2de3ad09de223dbe9143cf9e2f5f5102374d3412aebf7
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(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
Comment thread
Pospelove marked this conversation as resolved.
Outdated

# Handle header
file(INSTALL "${SOURCE_PATH}/commandline.h" DESTINATION ${CURRENT_PACKAGES_DIR}/include)
Comment thread
JackBoosY marked this conversation as resolved.
Outdated

# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
18 changes: 18 additions & 0 deletions ports/commandline/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "commandline",
"version-semver": "1.0.0",
"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": "static",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1472,6 +1472,10 @@
"baseline": "3.7",
"port-version": 0
},
"commandline": {
"baseline": "1.0.0",
"port-version": 0
},
"comms": {
"baseline": "3.4.0",
"port-version": 1
Expand Down
9 changes: 9 additions & 0 deletions versions/c-/commandline.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "0a624b93bb7e086e520b067dfa82a6c50916c2b4",
"version-semver": "1.0.0",
"port-version": 0
}
]
}