[minio-cpp] add new port (#22242)

* [new port] minio-cpp v0.0.1

* fix with vcpkg x-add-version --all

* Update version database

* fix deprecated functions

* Update version database

* Update ports/minio-cpp/portfile.cmake

Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>

* minio-cpp:x64-osx=fail

* Update version database

* add patch file

* Update version database

* Revert "minio-cpp:x64-osx=fail"

This reverts commit e296a672f58b586b468f3b1bf4ea0ed48f781490.

* we still want to install pkgconfig file

* fix version

Co-authored-by: xuan.guo@atomdatatech.com <xuan.guo@atomdatatech.com>
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
This commit is contained in:
kkzi 2022-01-05 07:31:36 +08:00 committed by GitHub
parent f596d1656f
commit 044f9b891f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 65 additions and 0 deletions

View File

@ -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)

View File

@ -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
)
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)

View File

@ -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
}
]
}

View File

@ -4416,6 +4416,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

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "0b0fe1b9353fd016b3f2e3212ae30a7a82b71ceb",
"version-date": "2022-01-03",
"port-version": 0
}
]
}