From eab8812ac5f78fe115f4717beb364b4e1f9cf220 Mon Sep 17 00:00:00 2001 From: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Date: Mon, 6 Jan 2020 14:59:18 -0800 Subject: [PATCH] [libb2] Add new port (#8518) * [libb2] Add new port * Update * Update ci.baseline.txt --- ports/libb2/CONTROL | 4 ++++ ports/libb2/portfile.cmake | 23 +++++++++++++++++++++++ scripts/ci.baseline.txt | 6 ++++++ 3 files changed, 33 insertions(+) create mode 100644 ports/libb2/CONTROL create mode 100644 ports/libb2/portfile.cmake diff --git a/ports/libb2/CONTROL b/ports/libb2/CONTROL new file mode 100644 index 0000000000..0523b60d5d --- /dev/null +++ b/ports/libb2/CONTROL @@ -0,0 +1,4 @@ +Source: libb2 +Version: 0.98.1 +Homepage: https://github.com/BLAKE2/libb2 +Description: C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp \ No newline at end of file diff --git a/ports/libb2/portfile.cmake b/ports/libb2/portfile.cmake new file mode 100644 index 0000000000..88007bdf0d --- /dev/null +++ b/ports/libb2/portfile.cmake @@ -0,0 +1,23 @@ +vcpkg_fail_port_install(MESSAGE "${PORT} currently only supports Linux platform" ON_TARGET "Windows" "OSX") + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO BLAKE2/libb2 + REF 2c5142f12a2cd52f3ee0a43e50a3a76f75badf85 + SHA512 cf29cf9391ae37a978eb6618de6f856f3defa622b8f56c2d5a519ab34fd5e4d91f3bb868601a44e9c9164a2992e80dde188ccc4d1605dffbdf93687336226f8d + HEAD_REF master +) + +vcpkg_configure_make( + SOURCE_PATH ${SOURCE_PATH} + AUTOCONFIG +) + +vcpkg_install_make() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +vcpkg_copy_pdbs() + +# Handle copyright +file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index ca56e3d9da..c45d4bbb78 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -676,6 +676,12 @@ libarchive:arm64-windows=fail libarchive:arm-uwp=fail libarchive:x64-uwp=fail libass:x64-windows-static=fail +libb2:x86-windows=fail +libb2:x64-windows=fail +libb2:x64-windows-static=fail +libb2:x64-uwp=fail +libb2:arm64-windows=fail +libb2:arm-uwp=fail libbf:arm64-windows=fail libbf:arm-uwp=fail libbf:x64-uwp=fail