Skip to content

Commit

Permalink
[libtins]Upgrade version to 4.2 and adds dependent ports to new versi…
Browse files Browse the repository at this point in the history
…on. (#7008)
  • Loading branch information
JackBoosY authored and Rastaban committed Jun 24, 2019
1 parent 25f628e commit 4f675ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ports/libtins/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Source: libtins
Version: 4.0-3
Version: 4.2
Description: High-level, multiplatform C++ network packet sniffing and crafting library
Build-Depends: winpcap (windows)
Build-Depends: winpcap (windows), boost-icl, boost-any
12 changes: 8 additions & 4 deletions ports/libtins/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mfontanini/libtins
REF v4.0
SHA512 8a497617ca68f4bad331452778b92c51ce87e42d1ceae493ecd6799cabbe71609214ca962c4a8c83d205f76277f2a82f92d3d17341984caa1592cf237eb3cf3b
REF v4.2
SHA512 46d07712604c780e418135c996f195046fd85a9e1411962c9bcee3c8d0fc64f494aa50164236ffd1e77ff8a398e9617bbf040b3e01a5771c5621c0faa1ce312f
HEAD_REF master
)

Expand All @@ -25,12 +25,16 @@ vcpkg_configure_cmake(

vcpkg_install_cmake()

vcpkg_fixup_cmake_targets(CONFIG_PATH CMake)
if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "windows" OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") #Windows
vcpkg_fixup_cmake_targets(CONFIG_PATH CMake)
else() #Linux/Unix/Darwin
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/libtins)
endif()

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)

# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/libtins/copyright COPYONLY)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libtins RENAME copyright)

# Post-build test for cmake libraries
vcpkg_test_cmake(PACKAGE_NAME libtins)

0 comments on commit 4f675ea

Please sign in to comment.