Skip to content

Commit

Permalink
[teemo] Fix string replace error. (microsoft#22244)
Browse files Browse the repository at this point in the history
* [cpp-ipc] Update 1.0.1

* [cpp-ipc] Update version and ci.baseline

* [cpp-ipc] Remove cpp-ipc from ci.baseline.txt

* [teemo] Update to v2.3

* [teemo] Run `vcpkg x-add-version --all`

* [teemo] Update vcpkg.json

* [teemo] Run vcpkg `x-add-version teemo --overwrite-version`

* Remove excess teemo.json

* [teemo] Update to v2.4

* [teemo] run ./vcpkg x-add-version --all

* [teemo] Update to v2.5

* [teemo] Update versions/t-/teemo.json

* [teemo] Fix string replace error.

* [teemo] Update port version.

* [teemo] Use port-version instead of appending #2.

* [teemo] Run 'vcpkg x-add-version --all'

* [teemo] Add maintainers.

* Update versions/t-/teemo.json

* Update versions/t-/teemo.json

* Update ports/teemo/vcpkg.json

* [teemo] Format vcpkg.json

Co-authored-by: Jonliu1993 <13720414433@163.com>
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 30, 2021
1 parent c943da1 commit 4446d54
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ports/teemo/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ elseif(EXISTS "${CURRENT_PACKAGES_DIR}/share/teemo")
vcpkg_cmake_config_fixup(CONFIG_PATH share/teemo)
endif()

vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/teemo/teemo.h" "#ifdef TEEMO_STATIC" "#if $<STREQUAL:${VCPKG_LIBRARY_LINKAGE},static>")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/teemo/teemo.h" "#ifdef TEEMO_STATIC" "#if 1")
else()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/teemo/teemo.h" "#ifdef TEEMO_STATIC" "#if 0")
endif()

file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
Expand Down
2 changes: 2 additions & 0 deletions ports/teemo/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "teemo",
"version": "2.5",
"port-version": 1,
"maintainers": "winsoft666 <winsoft666@outlook.com>",
"description": "C++ File Download Library, support Multithreading, Breakpoint Transmission, Speed Limit, Real-time Speed.",
"homepage": "https://github.com/winsoft666/teemo",
"supports": "!osx & !uwp & !arm",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6710,7 +6710,7 @@
},
"teemo": {
"baseline": "2.5",
"port-version": 0
"port-version": 1
},
"telnetpp": {
"baseline": "2.1.2",
Expand Down
5 changes: 5 additions & 0 deletions versions/t-/teemo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "d92f8edfaa4c8a208cfa6253c6d2ebd8beeaf303",
"version": "2.5",
"port-version": 1
},
{
"git-tree": "272a7ccdbd7429e98513b1d4c9c394406fa70d42",
"version": "2.5",
Expand Down

0 comments on commit 4446d54

Please sign in to comment.