[bext-ut] create a new port (#16822)

* [ut] create a new port

* [ut] update baseline and port SHA

* [bext-ut] change port name

* [bext-ut] unique name for downloaded license

* Update ports/bext-ut/portfile.cmake

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* [bext-ut] comment for copyright install

* [bext-ut] Lift license download up. Copy, don't move.

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
This commit is contained in:
Park DongHa 2021-04-08 05:25:51 +09:00 committed by GitHub
parent 2e35636a96
commit b3aaa1c3b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,31 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO boost-ext/ut
REF v1.1.8
SHA512 0df2f8ce784dc69c3cca5554a8b2be7c1664dd66bf52e83f305db5fae84d416a851e9282e9a8cfe50fbcada85b17da00fb25c1228d9cca32226a18bae18acb83
HEAD_REF master
)
vcpkg_download_distfile(LICENSE_FILE
URLS https://www.boost.org/LICENSE_1_0.txt
FILENAME d6078467835dba893231.txt
SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBOOST_UT_BUILD_BENCHMARKS=OFF
-DBOOST_UT_BUILD_EXAMPLES=OFF
-DBOOST_UT_BUILD_TESTS=OFF
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/ut TARGET_PATH share/ut)
configure_file("${LICENSE_FILE}" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug
${CURRENT_PACKAGES_DIR}/lib
)

6
ports/bext-ut/vcpkg.json Normal file
View File

@ -0,0 +1,6 @@
{
"name": "bext-ut",
"version": "1.1.8",
"description": "UT: C++20 μ(micro)/Unit Testing Framework",
"homepage": "https://boost-ext.github.io/ut/"
}

9
versions/b-/bext-ut.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "b08fed0b83c26aabfdda7db38d43a01b288f6a66",
"version": "1.1.8",
"port-version": 0
}
]
}

View File

@ -332,6 +332,10 @@
"baseline": "4.8.30", "baseline": "4.8.30",
"port-version": 5 "port-version": 5
}, },
"bext-ut": {
"baseline": "1.1.8",
"port-version": 0
},
"bext-di": { "bext-di": {
"baseline": "1.2.0", "baseline": "1.2.0",
"port-version": 0 "port-version": 0