[libtins] Fix bug in portfile.cmake (#23150)

* replace string LIBTINS_CMAKE_DIR with CMAKE_CURRENT_LIST_DIR

* bump port version

* Update versions/l-/libtins.json

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
This commit is contained in:
yonatanbk 2022-02-19 00:42:04 +02:00 committed by GitHub
parent 4c998fb475
commit 2934628a0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 2 deletions

View File

@ -34,6 +34,8 @@ get_filename_component(LIBTINS_CMAKE_DIR "${LIBTINS_CMAKE_DIR}" PATH)
set(LIBTINS_INCLUDE_DIRS "${LIBTINS_CMAKE_DIR}/include") set(LIBTINS_INCLUDE_DIRS "${LIBTINS_CMAKE_DIR}/include")
]]) ]])
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/libtins/libtinsConfig.cmake" "\${LIBTINS_CMAKE_DIR}/libtinsTargets.cmake" "\${CMAKE_CURRENT_LIST_DIR}/libtinsTargets.cmake")
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/tins/macros.h" "!defined(TINS_STATIC)" "1") vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/tins/macros.h" "!defined(TINS_STATIC)" "1")
else() else()

View File

@ -1,7 +1,7 @@
{ {
"name": "libtins", "name": "libtins",
"version": "4.3", "version": "4.3",
"port-version": 5, "port-version": 6,
"description": "High-level, multiplatform C++ network packet sniffing and crafting library", "description": "High-level, multiplatform C++ network packet sniffing and crafting library",
"license": "BSD-2-Clause", "license": "BSD-2-Clause",
"supports": "!uwp", "supports": "!uwp",

View File

@ -4006,7 +4006,7 @@
}, },
"libtins": { "libtins": {
"baseline": "4.3", "baseline": "4.3",
"port-version": 5 "port-version": 6
}, },
"libtomcrypt": { "libtomcrypt": {
"baseline": "1.18.2", "baseline": "1.18.2",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "4a1470befea5c6b5c7418f9b85f37d6f8733d7d5",
"version": "4.3",
"port-version": 6
},
{ {
"git-tree": "9abc8b1a535ffaf99a680412cfd8f0c743c3fc6d", "git-tree": "9abc8b1a535ffaf99a680412cfd8f0c743c3fc6d",
"version": "4.3", "version": "4.3",