vcpkg/ports/openscap/portfile.cmake
Jia Yue Hua 27d2b9a4c3
[openscap] update to 1.3.7 (#31917)
* [openscap] update to 1.3.6

* update version

* update evrsion

* Fix conflict

* update evrsion

* CI [skip actions]

* fix xmlsec dependency

* fix deps

* fix deps

* fix deps

* fix deps

* fix deps

* CI

* version 1.3.7

* update to 1.3.7

* world

* CI

* fix deps

* fix deps

* CI

* fix deps

* CI

---------

Co-authored-by: Jonliu1993 <13720414433@163.com>
2023-06-13 19:10:09 -07:00

50 lines
1.4 KiB
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO OpenSCAP/openscap
REF ${VERSION}
SHA512 88d095f350cb1b27f30222c809835ad9f182589a4410ea66f6389d9140804a45767b70176bcd52a0ad6b248ccf63153f09e44f93e70b3002d45cc445642a458f
HEAD_REF dev
PATCHES
fix-build.patch
fix-buildflag-and-install.patch
)
file(REMOVE "${SOURCE_PATH}/cmake/FindThreads.cmake")
if ("python" IN_LIST FEATURES)
vcpkg_find_acquire_program(PYTHON3)
endif()
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
python ENABLE_PYTHON3
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
-DPYTHON_EXECUTABLE=${PYTHON3}
-DENABLE_PERL=OFF
-DENABLE_MITRE=OFF
-DENABLE_VALGRIND=OFF
-DENABLE_OSCAP_UTIL_DOCKER=OFF
-DENABLE_OSCAP_UTIL_AS_RPM=OFF
-DENABLE_OSCAP_UTIL_SSH=OFF
-DENABLE_OSCAP_UTIL_VM=OFF
-DENABLE_OSCAP_UTIL_PODMAN=OFF
-DENABLE_OSCAP_UTIL_CHROOT=OFF
-DENABLE_OSCAP_UTIL=OFF
-DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON
-DENABLE_TESTS=OFF
-DENABLE_DOCS=OFF
)
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
#Handle copyright
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")