2019-11-01 16:51:40 -07:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO KDE/syntax-highlighting
|
2021-07-28 02:02:50 +02:00
|
|
|
REF v5.84.0
|
|
|
|
SHA512 7df25f639504392f15dd55ae33de273ef8a32c3d4b4874dcd52fa5aa85e302acf102e31d249a3dc779d84facba0fca5e2196e83d8b4d439c5da96c2ad7b256cd
|
2019-11-01 16:51:40 -07:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_find_acquire_program(PERL)
|
|
|
|
get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY)
|
|
|
|
vcpkg_add_to_path("${PERL_EXE_PATH}")
|
|
|
|
|
2021-09-17 17:20:35 +02:00
|
|
|
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
|
|
|
|
file(WRITE ${SOURCE_PATH}/.clang-format "DisableFormat: true\nSortIncludes: false\n")
|
|
|
|
|
2019-11-01 16:51:40 -07:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2021-04-12 13:15:11 -04:00
|
|
|
OPTIONS
|
2021-07-28 02:02:50 +02:00
|
|
|
-DBUILD_TESTING=OFF
|
2019-11-01 16:51:40 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake(ADD_BIN_TO_PATH)
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/KF5SyntaxHighlighting)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-04-12 13:15:11 -04:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-11-01 16:51:40 -07:00
|
|
|
|
2021-04-12 13:15:11 -04:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSES/ DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|