aboutsummaryrefslogtreecommitdiff
path: root/ports/libbson
diff options
context:
space:
mode:
authorras0219 <533828+ras0219@users.noreply.github.com>2020-12-07 18:17:19 -0800
committerGitHub <noreply@github.com>2020-12-07 18:17:19 -0800
commitdd4421808cc9131a0a68e71d9c41b0b6b9ce06d3 (patch)
treedea4a8afd788b8e21d3c2a5a02b2a62ba54bb08a /ports/libbson
parentced334b24dfc992ab0d1fd3af803dbf20481be25 (diff)
downloadvcpkg-dd4421808cc9131a0a68e71d9c41b0b6b9ce06d3.tar.gz
vcpkg-dd4421808cc9131a0a68e71d9c41b0b6b9ce06d3.zip
[vcpkg_fixup_pkgconfig] Handle spaces in path, do not validate individual libraries (#13126)
Diffstat (limited to 'ports/libbson')
-rw-r--r--ports/libbson/CONTROL2
-rw-r--r--ports/libbson/portfile.cmake4
2 files changed, 5 insertions, 1 deletions
diff --git a/ports/libbson/CONTROL b/ports/libbson/CONTROL
index 6c929c883..c74336ee5 100644
--- a/ports/libbson/CONTROL
+++ b/ports/libbson/CONTROL
@@ -1,5 +1,5 @@
Source: libbson
Version: 1.16.1
-Port-Version: 1
+Port-Version: 2
Description: libbson is a library providing useful routines related to building, parsing, and iterating BSON documents.
Homepage: https://github.com/mongodb/libbson
diff --git a/ports/libbson/portfile.cmake b/ports/libbson/portfile.cmake
index 8430b3ef6..477f2eb67 100644
--- a/ports/libbson/portfile.cmake
+++ b/ports/libbson/portfile.cmake
@@ -20,6 +20,8 @@ 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}")
+file(WRITE "${BUILD_VERSION}" ${SOURCE_PATH}/VERSION_CURRENT)
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
@@ -31,6 +33,7 @@ vcpkg_configure_cmake(
-DENABLE_EXAMPLES=OFF
-DENABLE_STATIC=${ENABLE_STATIC}
-DBUILD_VERSION=${BUILD_VERSION}
+ -DCMAKE_DISABLE_FIND_PACKAGE_PythonInterp=ON
)
vcpkg_install_cmake()
@@ -44,6 +47,7 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
else()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/libbson-${PORT_POSTFIX} TARGET_PATH share/bson-${PORT_POSTFIX})
endif()
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/mongo-c-driver)