Skip to content

Commit

Permalink
[openscap] no absolute paths (#25838)
Browse files Browse the repository at this point in the history
* [openscap] no absolute paths

* format

* x-add-version

* format

* x-add-version

Co-authored-by: LilyWangLL <v-lilywang@microsoft.com>
  • Loading branch information
autoantwort and LilyWangLL committed Jul 20, 2022
1 parent 84541b3 commit 7fe8b4a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
21 changes: 11 additions & 10 deletions ports/openscap/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
7 changes: 6 additions & 1 deletion ports/openscap/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -14,6 +15,10 @@
"openssl",
"pcre2",
"pthread",
{
"name": "vcpkg-cmake",
"host": true
},
"zlib"
],
"features": {
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5246,7 +5246,7 @@
},
"openscap": {
"baseline": "1.3.1",
"port-version": 2
"port-version": 3
},
"openssl": {
"baseline": "3.0.5",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/openscap.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6f96365cae0ee049b58b5863a0d59ca32782a9fa",
"version": "1.3.1",
"port-version": 3
},
{
"git-tree": "cbc6ed45cdfd68efd53ee939bed2440e2971730f",
"version": "1.3.1",
Expand Down

0 comments on commit 7fe8b4a

Please sign in to comment.