2019-11-02 07:51:40 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO KDE/syntax-highlighting
|
2021-12-03 11:49:12 +08:00
|
|
|
REF v5.88.0
|
|
|
|
SHA512 0a7a108a3efc48e1aae1b62f9a03629949e82140f9b1f31408ba530310228a81205324e258cf4085358a00e1aa0db3e3e2608dfcfd8880b1cd402b9e796e2ac7
|
2019-11-02 07:51:40 +08: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 23:20:35 +08:00
|
|
|
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
|
|
|
|
file(WRITE ${SOURCE_PATH}/.clang-format "DisableFormat: true\nSortIncludes: false\n")
|
|
|
|
|
2021-11-26 15:36:46 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-04-13 01:15:11 +08:00
|
|
|
OPTIONS
|
2021-07-28 08:02:50 +08:00
|
|
|
-DBUILD_TESTING=OFF
|
2021-11-26 15:36:46 +08:00
|
|
|
-DKDE_INSTALL_QMLDIR=qml
|
2019-11-02 07:51:40 +08:00
|
|
|
)
|
|
|
|
|
2021-11-26 15:36:46 +08:00
|
|
|
vcpkg_cmake_install(ADD_BIN_TO_PATH)
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME KF5SyntaxHighlighting CONFIG_PATH lib/cmake/KF5SyntaxHighlighting)
|
2019-11-02 07:51:40 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-11-26 15:36:46 +08:00
|
|
|
vcpkg_copy_tools(
|
|
|
|
TOOL_NAMES kate-syntax-highlighter
|
|
|
|
AUTO_CLEAN
|
|
|
|
)
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
endif()
|
|
|
|
|
2021-04-13 01:15:11 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-11-02 07:51:40 +08:00
|
|
|
|
2021-11-26 15:36:46 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSES/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
|
2021-12-03 11:49:12 +08:00
|
|
|
|