2018-07-03 16:06:23 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO taocpp/pegtl
|
2023-05-02 06:15:37 +08:00
|
|
|
REF cf639f7f4ee125f68e1ccfba8d99ebc0de57b9fe
|
|
|
|
SHA512 174148310e9d2fd37c67c3e5f4fd84c66847647732ebed29878e967b44aa87bcf91c304b2193ebf11b8586e458cd13f12d6ceec2fbf33a1aaeb552a100a6307f
|
2022-05-18 08:25:56 +08:00
|
|
|
HEAD_REF 3.x
|
2018-07-03 16:06:23 +08:00
|
|
|
)
|
|
|
|
|
2021-09-29 23:39:07 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-07-03 16:06:23 +08:00
|
|
|
OPTIONS
|
|
|
|
-DPEGTL_BUILD_TESTS=OFF
|
|
|
|
-DPEGTL_BUILD_EXAMPLES=OFF
|
2019-04-24 06:19:51 +08:00
|
|
|
-DPEGTL_INSTALL_DOC_DIR=share/pegtl
|
|
|
|
-DPEGTL_INSTALL_CMAKE_DIR=share/pegtl/cmake
|
2018-07-03 16:06:23 +08:00
|
|
|
)
|
|
|
|
|
2021-09-29 23:39:07 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-07-03 16:06:23 +08:00
|
|
|
|
2021-09-29 23:39:07 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/pegtl/cmake)
|
2018-07-03 16:06:23 +08:00
|
|
|
|
2021-09-29 23:39:07 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
2018-07-03 16:06:23 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-03-03 06:50:51 +08:00
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
|