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

[libdivide] Update to 5.0 #21388

Merged
merged 2 commits into from
Nov 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
33 changes: 17 additions & 16 deletions ports/libdivide/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ridiculousfish/libdivide
REF v4.0.0
SHA512 662b8f479c3f822563d4f1c85c77c204f47e992391cd5ca3376d6e19e4d2132c28ad59b8e3179edd706fceeabf0d1bc7be5e713eeb669523952155a2d7770326
REF 5.0
SHA512 89581efab63a0668405196d4d8188e03f3b87027e9014ef7238e1d79fe369d8abbca0e44b00cf02b00be29c272feb34c9b9290313596adbef9b46ae0715c29dd
HEAD_REF master
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
test BUILD_TESTS
test BUILD_TESTS
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS ${FEATURE_OPTIONS}
-DLIBDIVIDE_SSE2=OFF
-DLIBDIVIDE_AVX2=OFF
-DLIBDIVIDE_AVX512=OFF
-DENABLE_VECTOR_EXTENSIONS=OFF
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
-DLIBDIVIDE_SSE2=OFF
-DLIBDIVIDE_AVX2=OFF
-DLIBDIVIDE_AVX512=OFF
-DLIBDIVIDE_NEON=OFF
-DENABLE_VECTOR_EXTENSIONS=OFF
)

vcpkg_install_cmake()
vcpkg_cmake_install()

vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")

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

# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
13 changes: 11 additions & 2 deletions ports/libdivide/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
{
"name": "libdivide",
"version-string": "4.0.0",
"port-version": 1,
"version": "5.0",
"description": "libdivide.h is a header-only C/C++ library for optimizing integer division.",
"homepage": "https://github.com/ridiculousfish/libdivide",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"test": {
"description": "Build test"
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3381,8 +3381,8 @@
"port-version": 8
},
"libdivide": {
"baseline": "4.0.0",
"port-version": 1
"baseline": "5.0",
"port-version": 0
},
"libdjinterop": {
"baseline": "0.16.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libdivide.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b13f3b926e61d104e85e04bf192fabe29cd5f05e",
"version": "5.0",
"port-version": 0
},
{
"git-tree": "a632ce1c591ebeff2d020222f9a7cac938d3a623",
"version-string": "4.0.0",
Expand Down