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

[ztd-text] Add port #23662

Merged
merged 3 commits into from
Mar 23, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
37 changes: 37 additions & 0 deletions ports/ztd-text/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
vcpkg_from_github(
OUT_SOURCE_PATH ZTD_CMAKE_PATH
REPO soasis/cmake
REF 4277edaf7bf237de07c4a9833f6546872ab9f151
SHA512 f05143068a1f22bd46aa0d8c250afb04b29ffbc0f32d746093bfb61f274d0e212ff9786a5163608097ed989b5b212d73811179f311a37d2b2eedce89cc75ee94
HEAD_REF main
)

vcpkg_from_github(
OUT_SOURCE_PATH ZTD_IDK_PATH
REPO soasis/idk
REF 6173bb3d433a3dab65e8c356ef69441aa5a86275
SHA512 083711e9fc9b03aac34c5a7e182691a9bc9ee2d7c2d9ed2f55093423e2655f7a3829bd3e3db82bc42a78721795ca2d21a7b64c71f05e3c03ea3198f6228eb6f2
HEAD_REF main
)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO soasis/text
REF a562a6a2cb902e7ba0772419fedb32b3e7e8384c # latest
nickelpro marked this conversation as resolved.
Show resolved Hide resolved
SHA512 8d8750e97210695a8bfb43fb50223323bf6c8c0e1f95cedecd848f1bcf6580967746f03718e5a0e8e5744da020c9392336574764d8348b6e3e70fee34ececc8b
HEAD_REF main
)

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DFETCHCONTENT_FULLY_DISCONNECTED=ON
-DFETCHCONTENT_SOURCE_DIR_ZTD.CMAKE=${ZTD_CMAKE_PATH}
-DFETCHCONTENT_SOURCE_DIR_ZTD.IDK=${ZTD_IDK_PATH}
)
vcpkg_cmake_install()

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

file(INSTALL "${CMAKE_CURRENT_LIST_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/ztd-text/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The package ztd-text is header only and can be used from CMake via:

find_path(ZTD_INCLUDE_DIRS ztd)
target_include_directories(main PRIVATE ${ZTD_INCLUDE_DIRS})
13 changes: 13 additions & 0 deletions ports/ztd-text/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "ztd-text",
"version": "0.0.1",
nickelpro marked this conversation as resolved.
Show resolved Hide resolved
"description": "A spicy text library.",
"homepage": "https://github.com/soasis/text",
"license": "Apache-2.0",
nickelpro marked this conversation as resolved.
Show resolved Hide resolved
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,10 @@ yara:arm-uwp=fail
yara:x64-uwp=fail
z3:arm-uwp=fail
z3:x64-uwp=fail
# upstream issue https://github.com/soasis/idk/issues/3
ztd-text:arm-uwp=fail
ztd-text:x64-uwp=fail


# Official downloading server of CTP library is only guaranteed to be available during trading hours of China futures market
# Skip CI to avoid random failures
Expand Down
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7640,6 +7640,10 @@
"baseline": "1.0.4",
"port-version": 2
},
"ztd-text": {
"baseline": "0.0.1",
"port-version": 0
},
"zug": {
"baseline": "2021-04-23",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/z-/ztd-text.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "806c4d0ec1d0eaaa55c9c4fc59026af1a7bab6a0",
"version": "0.0.1",
"port-version": 0
}
]
}