From 45f26a1bf1fb5acb15a14cf10fa717667126ad2f Mon Sep 17 00:00:00 2001 From: Buck Yeh Date: Sat, 11 Jun 2022 01:22:57 +0800 Subject: [PATCH] [buck-yeh-bux-sqlite] New port (#25144) * [bux] Add new port * Corrections according to Create Pull Request suggested questions * SHA512 * Mark fails into .\scripts\ci.baseline.txt * Mark fails into .\scripts\ci.baseline.txt * No need of "port-version": 1 in vcpkg.json * Update version database * Update ports/bux/portfile.cmake Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update ports/bux/portfile.cmake Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update ports/bux/portfile.cmake Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update ports/bux/vcpkg.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update bux.json * Update ports/bux/vcpkg.json * update version * Update scripts/ci.baseline.txt Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * update bux support * update version * update version * Rename bux to buck-yeh-bux * Update version database * [buck-yeh-bux] upgrade to v1.5.0 1. [New] `bux::C_ParaLog` is ready for a variety of parallel logging configurations, filtered or unfiltered. 2. [New] Necessary helper classes for implementation _s.t_ logger users no longer need to declare child source instances explicitly. 3. [New] Add methods to `ParaLog.h` & `SyncLog.h` to support testability. 4. [New] Add unit test cases to `ParaLog.h` & `SyncLog.h` (test_paralog & test_logger) 5. [New] Update what are found in `test/` to `test/archlinux/aur_poc/` 6. [Bug] `std::uniform_int_distribution` no longer allowed. 7. [Change] `CUR_FUNC_` for Windows (MSVC) 8. [Change] `tbb` is no longer implicitly needed by C++ standard library. 9. [Change] `smoke_filtlog.cpp` verifies 2-level log filters ok. * Missing comma in versions/b-/buck-yeh-bux.json * buck-yeh-bux 1.6.0 * Corrections made according to NancyLi1013's requests in PR #20813 * Fix SHA key in versions/b-/buck-yeh-bux.json * Update to buxk-yeh-bux v1.6.2 * [buck-yeh-bux-mariadb-client] The first release * Add dependency to libmariadb * Inccorect git-tree value in versions/b-/buck-yeh-bux-mariadb-client.json * linux build is enabled * [buck-yeh-bux] Upgrade to 1.6.3 to allow u64-linux * linux build is disabled again for not recognizing C++20 header yet * Mark vcpkg.json to support Linux but ci.baseline.txt to fail the CI build * Repair buck-buck-yeh-bux in version database. * [buck-yeh-bux] Upgrade to 1.6.5 * [buck-yeh-bux] Upgrade to 1.6.5 * Add "license" field * Correction nade by `./vcpkg format-manifest ports/buck-yeh-bux/vcpkg.json` * Update according to `git rev-parse HEAD:ports/buck-yeh-bux` * [buck-yeh-bux-mariadb-client] Upgrade to 1.0.3 * [buck-yeh-bux-sqlite] New port * `vcpkg.json`/"supports" changed to "!(arm | uwp | osx | linux)" for all my ports And remove the corresponding lines from `ci.baseline.txt` * Update "port-version" & "git-tree" * Update "port-version" * Update "git-tree" but revert "port-version" * Update ports/buck-yeh-bux-mariadb-client/vcpkg.json Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * Update ports/buck-yeh-bux/vcpkg.json Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * Run `./vcpkg x-add-version ...` to update port-version * Update buck-yeh-bux-mariadb-client.json * Update buck-yeh-bux.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Jonliu1993 <13720414433@163.com> Co-authored-by: Billy Robert O'Neal III Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> --- ports/buck-yeh-bux-mariadb-client/vcpkg.json | 3 ++- ports/buck-yeh-bux-sqlite/portfile.cmake | 15 +++++++++++++++ ports/buck-yeh-bux-sqlite/vcpkg.json | 17 +++++++++++++++++ ports/buck-yeh-bux/vcpkg.json | 3 ++- scripts/ci.baseline.txt | 2 -- versions/b-/buck-yeh-bux-mariadb-client.json | 5 +++++ versions/b-/buck-yeh-bux-sqlite.json | 9 +++++++++ versions/b-/buck-yeh-bux.json | 5 +++++ versions/baseline.json | 6 +++++- 9 files changed, 60 insertions(+), 5 deletions(-) create mode 100644 ports/buck-yeh-bux-sqlite/portfile.cmake create mode 100644 ports/buck-yeh-bux-sqlite/vcpkg.json create mode 100644 versions/b-/buck-yeh-bux-sqlite.json diff --git a/ports/buck-yeh-bux-mariadb-client/vcpkg.json b/ports/buck-yeh-bux-mariadb-client/vcpkg.json index 331ab5bb02..4c20b9246d 100644 --- a/ports/buck-yeh-bux-mariadb-client/vcpkg.json +++ b/ports/buck-yeh-bux-mariadb-client/vcpkg.json @@ -1,10 +1,11 @@ { "name": "buck-yeh-bux-mariadb-client", "version": "1.0.3", + "port-version": 1, "description": "Loose-coupled throw-on-error C++20 wrapper classes and utilities over mysql/mariadb Connector/C API", "homepage": "https://github.com/buck-yeh/bux-mariadb-client", "license": "MIT", - "supports": "!(arm | uwp | osx)", + "supports": "!(arm | uwp | osx | linux)", "dependencies": [ "buck-yeh-bux", "fmt", diff --git a/ports/buck-yeh-bux-sqlite/portfile.cmake b/ports/buck-yeh-bux-sqlite/portfile.cmake new file mode 100644 index 0000000000..6846f46018 --- /dev/null +++ b/ports/buck-yeh-bux-sqlite/portfile.cmake @@ -0,0 +1,15 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO buck-yeh/bux-sqlite + REF e8ab90da9586f61024b59aa1a4900efb94f1d3f4 # v1.0.1 + SHA512 27acefdb32dd00dbbef91479b5e682cf6a9281e13a596128d5050fe44ed4b8669d5e7279b4db30efbd4d016d268c6f2ce893f91bbdddff17f2a227ba3a292d01 + HEAD_REF main +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/buck-yeh-bux-sqlite/vcpkg.json b/ports/buck-yeh-bux-sqlite/vcpkg.json new file mode 100644 index 0000000000..17dae253fd --- /dev/null +++ b/ports/buck-yeh-bux-sqlite/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "buck-yeh-bux-sqlite", + "version": "1.0.1", + "description": "Modern C++ wrapper classes and utilities of the original sqlite3 API", + "homepage": "https://github.com/buck-yeh/bux-sqlite", + "license": "MIT", + "supports": "!(arm | uwp | osx | linux)", + "dependencies": [ + "buck-yeh-bux", + "fmt", + "sqlite3", + { + "name": "vcpkg-cmake", + "host": true + } + ] +} diff --git a/ports/buck-yeh-bux/vcpkg.json b/ports/buck-yeh-bux/vcpkg.json index 7465a14d78..a5bf5cd599 100644 --- a/ports/buck-yeh-bux/vcpkg.json +++ b/ports/buck-yeh-bux/vcpkg.json @@ -1,10 +1,11 @@ { "name": "buck-yeh-bux", "version": "1.6.5", + "port-version": 1, "description": "A supplemental C++ library with functionalities not directly supported from Modern C++ standard.", "homepage": "https://github.com/buck-yeh/bux", "license": "MIT", - "supports": "!(arm | uwp | osx)", + "supports": "!(arm | uwp | osx | linux)", "dependencies": [ "fmt", { diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index 6f547e9338..11fe1ca062 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -59,8 +59,6 @@ bond:x64-osx=fail bond:x64-uwp=fail botan:x64-uwp=fail breakpad:arm64-windows=fail -buck-yeh-bux:x64-linux=fail -buck-yeh-bux-mariadb-client:x64-linux=fail caf:arm-uwp=fail caf:x64-uwp=fail caffe2:x86-windows=fail diff --git a/versions/b-/buck-yeh-bux-mariadb-client.json b/versions/b-/buck-yeh-bux-mariadb-client.json index 898eabdce8..c29277d61f 100644 --- a/versions/b-/buck-yeh-bux-mariadb-client.json +++ b/versions/b-/buck-yeh-bux-mariadb-client.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "f0ad91f620ffdc0ad8b2618c79f38aefa00accf4", + "version": "1.0.3", + "port-version": 1 + }, { "git-tree": "9c48d5f05cfc1910b874b0d5510ab332c108ab86", "version": "1.0.3", diff --git a/versions/b-/buck-yeh-bux-sqlite.json b/versions/b-/buck-yeh-bux-sqlite.json new file mode 100644 index 0000000000..3b3be9e279 --- /dev/null +++ b/versions/b-/buck-yeh-bux-sqlite.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "70a2bfdaeafb4f4193be712ad81e0f9d16ce6294", + "version": "1.0.1", + "port-version": 0 + } + ] +} diff --git a/versions/b-/buck-yeh-bux.json b/versions/b-/buck-yeh-bux.json index e7822aabe4..1b235fcab2 100644 --- a/versions/b-/buck-yeh-bux.json +++ b/versions/b-/buck-yeh-bux.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "70c9bddf07b6b1bf2bed8f994f13d1d5703ed105", + "version": "1.6.5", + "port-version": 1 + }, { "git-tree": "1fd8af12a04b806faa041b8631ac34dc8c535b41", "version": "1.6.5", diff --git a/versions/baseline.json b/versions/baseline.json index 8864629a6f..1f6882a1da 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1178,10 +1178,14 @@ }, "buck-yeh-bux": { "baseline": "1.6.5", - "port-version": 0 + "port-version": 1 }, "buck-yeh-bux-mariadb-client": { "baseline": "1.0.3", + "port-version": 1 + }, + "buck-yeh-bux-sqlite": { + "baseline": "1.0.1", "port-version": 0 }, "bullet3": {