From 7fe8b4a85da849cd5399b3f96acaa3e38b466a4d Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Thu, 21 Jul 2022 00:29:47 +0200 Subject: [PATCH] [openscap] no absolute paths (#25838) * [openscap] no absolute paths * format * x-add-version * format * x-add-version Co-authored-by: LilyWangLL --- ports/openscap/portfile.cmake | 21 +++++++++++---------- ports/openscap/vcpkg.json | 7 ++++++- versions/baseline.json | 2 +- versions/o-/openscap.json | 5 +++++ 4 files changed, 23 insertions(+), 12 deletions(-) diff --git a/ports/openscap/portfile.cmake b/ports/openscap/portfile.cmake index db1d5e448e3296..243e30d414e030 100644 --- a/ports/openscap/portfile.cmake +++ b/ports/openscap/portfile.cmake @@ -14,15 +14,15 @@ if ("python" IN_LIST FEATURES) endif() vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS - docs ENABLE_DOCS - tests ENABLE_TESTS - util ENABLE_OSCAP_UTIL - python ENABLE_PYTHON3 + FEATURES + docs ENABLE_DOCS + tests ENABLE_TESTS + util ENABLE_OSCAP_UTIL + python ENABLE_PYTHON3 ) -vcpkg_configure_cmake( - SOURCE_PATH ${SOURCE_PATH} - PREFER_NINJA +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" OPTIONS ${FEATURE_OPTIONS} -DPYTHON_EXECUTABLE=${PYTHON3} -DENABLE_PERL=OFF @@ -37,11 +37,12 @@ vcpkg_configure_cmake( -DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON ) -vcpkg_install_cmake() +vcpkg_cmake_install() -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share") vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() #Handle copyright -file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file +file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) \ No newline at end of file diff --git a/ports/openscap/vcpkg.json b/ports/openscap/vcpkg.json index c75a5d80ac2fa6..d6ef5c4bf11312 100644 --- a/ports/openscap/vcpkg.json +++ b/ports/openscap/vcpkg.json @@ -1,9 +1,10 @@ { "name": "openscap", "version": "1.3.1", - "port-version": 2, + "port-version": 3, "description": "The oscap program is a command line tool that allows users to load, scan, validate, edit, and export SCAP documents.", "homepage": "https://github.com/OpenSCAP/openscap", + "license": "LGPL-2.1-or-later", "dependencies": [ "curl", "glib", @@ -14,6 +15,10 @@ "openssl", "pcre2", "pthread", + { + "name": "vcpkg-cmake", + "host": true + }, "zlib" ], "features": { diff --git a/versions/baseline.json b/versions/baseline.json index a8c9bb170f75ba..e8d62a5cf2cda9 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5246,7 +5246,7 @@ }, "openscap": { "baseline": "1.3.1", - "port-version": 2 + "port-version": 3 }, "openssl": { "baseline": "3.0.5", diff --git a/versions/o-/openscap.json b/versions/o-/openscap.json index a91fbc8afa3a75..0663f8e3295612 100644 --- a/versions/o-/openscap.json +++ b/versions/o-/openscap.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "6f96365cae0ee049b58b5863a0d59ca32782a9fa", + "version": "1.3.1", + "port-version": 3 + }, { "git-tree": "cbc6ed45cdfd68efd53ee939bed2440e2971730f", "version": "1.3.1",