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

[capstone] update to 5.0.0-rc2 #23979

Merged
merged 6 commits into from
Apr 8, 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
22 changes: 6 additions & 16 deletions ports/capstone/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REF 4.0.2
REPO "aquynh/capstone"
SHA512 7f93534517307b737422a8825b66b2a1f3e1cca2049465d60ab12595940154aaf843ba40ed348fce58de58b990c19a0caef289060eb72898cb008a88c470970e
HEAD_REF v4
REF c57915c8fd281b68ffa373fa646251fda552e38f
REPO "capstone-engine/capstone"
SHA512 9a089faea1771825a7e05a325e6d32998edd2f3b64c3e4435460ea10ee30e7f8ac0432ae6e1bec82bd23f90d5ac57298de7ead57aa59b518dc9765d6a3cd03c9
HEAD_REF next
)

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" CS_BUILD_STATIC)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" CS_BUILD_SHARED)
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
Expand Down Expand Up @@ -36,25 +34,17 @@ endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCAPSTONE_BUILD_STATIC=${CS_BUILD_STATIC}
-DCAPSTONE_BUILD_SHARED=${CS_BUILD_SHARED}
-DCAPSTONE_BUILD_TESTS=OFF
-DCAPSTONE_BUILD_CSTOOL=OFF
-DCAPSTONE_X86_ONLY=OFF
-DCAPSTONE_BUILD_STATIC_RUNTIME=${STATIC_CRT}
${FEATURE_OPTIONS}
)

vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
vcpkg_fixup_pkgconfig()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(GLOB EXES "${CURRENT_PACKAGES_DIR}/bin/*.exe" "${CURRENT_PACKAGES_DIR}/debug/bin/*.exe")
if(EXES)
file(REMOVE ${EXES})
endif()
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()

file(INSTALL "${SOURCE_PATH}/LICENSE.TXT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
9 changes: 4 additions & 5 deletions ports/capstone/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"name": "capstone",
"version": "4.0.2",
"port-version": 3,
"version": "5.0.0-alpha",
"description": "Multi-architecture disassembly framework",
"homepage": "https://github.com/aquynh/capstone",
"homepage": "https://github.com/capstone-engine/capstone",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake",
"name": "vcpkg-cmake-config",
"host": true
}
],
Expand All @@ -37,7 +36,7 @@
"description": "Capstone disassembly support for MIPS"
},
"osxkernel": {
"description": "Support for emedding Capstone into OSX Kernel extensions"
"description": "Support for embedding Capstone into OSX Kernel extensions"
},
"ppc": {
"description": "Capstone disassembly support for PowerPC"
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1237,8 +1237,8 @@
"port-version": 2
},
"capstone": {
"baseline": "4.0.2",
"port-version": 3
"baseline": "5.0.0-alpha",
"port-version": 0
},
"cargs": {
"baseline": "1.0.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/capstone.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "90f4c88e64b40771284fad9c12e3672bb70fc199",
"version": "5.0.0-alpha",
"port-version": 0
},
{
"git-tree": "5250715402bf0c970792dafe6947aa810adde0f1",
"version": "4.0.2",
Expand Down