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

[minio-cpp] add new port #22242

Merged
merged 14 commits into from
Jan 4, 2022
12 changes: 12 additions & 0 deletions ports/minio-cpp/fix_cmake_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6df202c..98eeeb0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -114,6 +114,6 @@ else (DOXYGEN_FOUND)
message("Doxygen need to be installed to generate the doxygen documentation")
endif (DOXYGEN_FOUND)

configure_file(miniocpp.pc.in miniocpp.pc @ONLY)
-install(FILES ${CMAKE_BINARY_DIR}/miniocpp.pc DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig)
+install(FILES ${CMAKE_BINARY_DIR}/miniocpp.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)

21 changes: 21 additions & 0 deletions ports/minio-cpp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO minio/minio-cpp
REF 0847e56f31e13d32c924029d5ffaa865f8396462
SHA512 47817c8acc92060afca5ebd7c9bc7c9a9e09a50046180d7d3d67993f207d295c90e491417702ebb1ab2b0a6e85a5fcc334054ce4f6d542cb42c3675b5aed1c3f
HEAD_REF main
PATCHES
fix_cmake_file.patch
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_EXAMPLES=OFF
kkzi marked this conversation as resolved.
Show resolved Hide resolved
)

vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
19 changes: 19 additions & 0 deletions ports/minio-cpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "minio-cpp",
"version-date": "2022-01-03",
"description": "MinIO C++ Client SDK for Amazon S3 Compatible Cloud Storage",
"supports": "!uwp",
"dependencies": [
"curlpp",
"openssl",
"pugixml",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4412,6 +4412,10 @@
"baseline": "2020-12-25",
"port-version": 1
},
"minio-cpp": {
"baseline": "2022-01-03",
"port-version": 0
},
"minisat-master-keying": {
"baseline": "2.3.6",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/m-/minio-cpp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "0b0fe1b9353fd016b3f2e3212ae30a7a82b71ceb",
"version-date": "2022-01-03",
"port-version": 0
}
]
}