Skip to content

Commit

Permalink
[libbson][mongo-c-driver] Update to 1.15.1. Parse CONTROL file for ve…
Browse files Browse the repository at this point in the history
…rsion number (#8790)
  • Loading branch information
ras0219-msft committed Nov 19, 2019
1 parent 892f584 commit e916630
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ports/libbson/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Source: libbson
Version: 1.14.0-3
Version: 1.15.1-1
Description: libbson is a library providing useful routines related to building, parsing, and iterating BSON documents.
Homepage: https://github.com/mongodb/libbson
11 changes: 6 additions & 5 deletions ports/libbson/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
include(vcpkg_common_functions)
set(BUILD_VERSION 1.14.0)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mongodb/mongo-c-driver
REF ${BUILD_VERSION}
SHA512 bf2bb835543dd2a445aac6cafa7bbbf90921ec41014534779924a5eb7cbd9fd532acd8146ce81dfcf1bcac33a78d8fce22b962ed7f776449e4357eccab8d6110
REF 541086adcf1eecf88ac09fda47d9a8ec1598015d # debian/1.15.1-1
SHA512 a57438dfae9d0993ae04b7a76677f79331699898f21e7645db5edd2c91014f33b738a0af67b58234d1ee03aab2ae3b58c183bbd043fc2bde5cc1a4e111755b70
HEAD_REF master
PATCHES fix-uwp.patch
)
Expand All @@ -16,6 +13,10 @@ else()
set(ENABLE_STATIC OFF)
endif()

file(READ ${CMAKE_CURRENT_LIST_DIR}/CONTROL _contents)
string(REGEX MATCH "\nVersion:[ ]*[^ \n]+" _contents "${_contents}")
string(REGEX REPLACE ".+Version:[ ]*([\\.0-9]+).*" "\\1" BUILD_VERSION "${_contents}")

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
Expand Down
2 changes: 1 addition & 1 deletion ports/mongo-c-driver/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: mongo-c-driver
Version: 1.14.0-5
Version: 1.15.1-1
Build-Depends: libbson, openssl (!windows), zlib
Description: Client library written in C for MongoDB.
Homepage: https://github.com/mongodb/mongo-c-driver
Expand Down
11 changes: 6 additions & 5 deletions ports/mongo-c-driver/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
include(vcpkg_common_functions)
set(BUILD_VERSION 1.14.0)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mongodb/mongo-c-driver
REF ${BUILD_VERSION}
SHA512 bf2bb835543dd2a445aac6cafa7bbbf90921ec41014534779924a5eb7cbd9fd532acd8146ce81dfcf1bcac33a78d8fce22b962ed7f776449e4357eccab8d6110
REF 541086adcf1eecf88ac09fda47d9a8ec1598015d # debian/1.15.1-1
SHA512 a57438dfae9d0993ae04b7a76677f79331699898f21e7645db5edd2c91014f33b738a0af67b58234d1ee03aab2ae3b58c183bbd043fc2bde5cc1a4e111755b70
HEAD_REF master
)

Expand All @@ -25,6 +22,10 @@ else()
set(ENABLE_SSL "OPENSSL")
endif()

file(READ ${CMAKE_CURRENT_LIST_DIR}/CONTROL _contents)
string(REGEX MATCH "\nVersion:[ ]*[^ \n]+" _contents "${_contents}")
string(REGEX REPLACE ".+Version:[ ]*([\\.0-9]+).*" "\\1" BUILD_VERSION "${_contents}")

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
Expand Down

0 comments on commit e916630

Please sign in to comment.