[ponder] fix post build check (#21165)

This commit is contained in:
autoantwort 2021-11-04 18:41:45 +01:00 committed by GitHub
parent cb95046f09
commit b51014eb6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 31 additions and 17 deletions

View File

@ -9,9 +9,8 @@ vcpkg_from_github(
github-121.patch github-121.patch
) )
vcpkg_configure_cmake( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH "${SOURCE_PATH}"
PREFER_NINJA
DISABLE_PARALLEL_CONFIGURE DISABLE_PARALLEL_CONFIGURE
OPTIONS OPTIONS
-DUSES_RAPIDJSON=OFF -DUSES_RAPIDJSON=OFF
@ -19,22 +18,22 @@ vcpkg_configure_cmake(
-DBUILD_TEST=OFF -DBUILD_TEST=OFF
) )
vcpkg_install_cmake() vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/${PORT}/cmake) vcpkg_cmake_config_fixup(CONFIG_PATH lib/${PORT}/cmake)
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/include "${CURRENT_PACKAGES_DIR}/debug/include"
${CURRENT_PACKAGES_DIR}/debug/lib/${PORT} "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}"
${CURRENT_PACKAGES_DIR}/lib/${PORT}) "${CURRENT_PACKAGES_DIR}/debug/share"
"${CURRENT_PACKAGES_DIR}/lib/${PORT}"
)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(READ ${CURRENT_PACKAGES_DIR}/include/${PORT}/config.hpp _contents) vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/${PORT}/config.hpp" "ifndef PONDER_STATIC" "if 0 //ifndef PONDER_STATIC")
string(REPLACE "ifndef PONDER_STATIC" "if 0 //ifndef PONDER_STATIC" _contents "${_contents}")
file(WRITE ${CURRENT_PACKAGES_DIR}/include/${PORT}/config.hpp "${_contents}")
endif() endif()
# Handle copyright # Handle copyright
configure_file(${SOURCE_PATH}/COPYING.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY) configure_file("${SOURCE_PATH}/COPYING.txt" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
vcpkg_fixup_pkgconfig()

View File

@ -1,7 +1,17 @@
{ {
"name": "ponder", "name": "ponder",
"version-string": "3.0.0", "version-string": "3.0.0",
"port-version": 3, "port-version": 4,
"description": "A C++ multi-purpose reflection library.", "description": "A C++ multi-purpose reflection library.",
"homepage": "https://github.com/billyquith/ponder" "homepage": "https://github.com/billyquith/ponder",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
} }

View File

@ -5282,7 +5282,7 @@
}, },
"ponder": { "ponder": {
"baseline": "3.0.0", "baseline": "3.0.0",
"port-version": 3 "port-version": 4
}, },
"poppler": { "poppler": {
"baseline": "20.12.1", "baseline": "20.12.1",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "82147bc05cb5c080baabe1085f8ab690f71ba6e2",
"version-string": "3.0.0",
"port-version": 4
},
{ {
"git-tree": "84acf8367d19d188309207790cc07c149e0464f3", "git-tree": "84acf8367d19d188309207790cc07c149e0464f3",
"version-string": "3.0.0", "version-string": "3.0.0",