Skip to content

Commit

Permalink
[minio-cpp] add new port (#22242)
Browse files Browse the repository at this point in the history
* [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 <[email protected]>

* minio-cpp:x64-osx=fail

* Update version database

* add patch file

* Update version database

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

This reverts commit e296a67.

* we still want to install pkgconfig file

* fix version

Co-authored-by: [email protected] <[email protected]>
Co-authored-by: JonLiu1993 <[email protected]>
Co-authored-by: nicole mazzuca <[email protected]>
  • Loading branch information
4 people authored Jan 4, 2022
1 parent f596d16 commit 044f9b8
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 0 deletions.
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
)

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

0 comments on commit 044f9b8

Please sign in to comment.