Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[yalantinglibs] Add a new port #42154

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
26 changes: 26 additions & 0 deletions ports/yalantinglibs/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO 171930433/yalantinglibs
REF "${VERSION}"
SHA512 acde5540f309b7cef2df9b1fc253b9d6b0abedec3a646332599fa83b32284b34a3a970546605e0e6b5e375e4b52e799a990ad962d8f4f271ffee3d4c5b1b1b65
HEAD_REF main
)


vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_BENCHMARK=OFF
-DBUILD_EXAMPLES=OFF
-DBUILD_UNIT_TESTS=OFF
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(PACKAGE_NAME "yalantinglibs" CONFIG_PATH "lib/cmake/yalantinglibs")

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")

file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
4 changes: 4 additions & 0 deletions ports/yalantinglibs/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
yalantinglibs provides CMake targets:

find_package(yalantinglibs CONFIG REQUIRED)
target_link_libraries(main yalantinglibs::yalantinglibs)
17 changes: 17 additions & 0 deletions ports/yalantinglibs/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "yalantinglibs",
"version": "0.3.9",
"homepage": "https://github.com/171930433/yalantinglibs",
"description": "A Collection of C++20 libraries, include struct_pack, struct_json, struct_xml, struct_yaml, struct_pb, easylog, coro_rpc, coro_http and async_simple",
"license": "Apache-2.0",
"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 @@ -9872,6 +9872,10 @@
"baseline": "2.1.0",
"port-version": 4
},
"yalantinglibs": {
"baseline": "0.3.9",
"port-version": 0
},
"yaml-cpp": {
"baseline": "0.8.0",
"port-version": 1
Expand Down
9 changes: 9 additions & 0 deletions versions/y-/yalantinglibs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "6afdffc3a213dfaff6bf724f37581b8e669b9cea",
"version": "0.3.9",
"port-version": 0
}
]
}
Loading