diff --git a/ports/gherkin-c/fix-include-path.patch b/ports/gherkin-c/fix-include-path.patch new file mode 100644 index 0000000000..ddaf80d310 --- /dev/null +++ b/ports/gherkin-c/fix-include-path.patch @@ -0,0 +1,22 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 74b9ffb..6af4645 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -60,7 +60,7 @@ LIST(APPEND GHERKIN_SRS + ) + + add_library(gherkin ${GHERKIN_SRS}) +-target_include_directories(gherkin PUBLIC "$") ++target_include_directories(gherkin PUBLIC "$" "$") + + if (BUILD_GHERKIN_TESTS) + LIST(APPEND GENERATE_TOKEN +@@ -96,7 +96,7 @@ if (BUILD_GHERKIN_TESTS) + ENDFOREACH() + endif() + +-set(include_install_dir "include") ++set(include_install_dir "include/gherkin-c") + set(lib_install_dir "lib/") + set(bin_install_dir "bin/") + set(config_install_dir "lib/cmake/") diff --git a/ports/gherkin-c/fix-install-error.patch b/ports/gherkin-c/fix-install-error.patch new file mode 100644 index 0000000000..a695e0c7b9 --- /dev/null +++ b/ports/gherkin-c/fix-install-error.patch @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3227bf5..74b9ffb 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -131,7 +131,3 @@ install( + # NAMESPACE "${namespace}" + # DESTINATION "${config_install_dir}") + +-add_custom_target(install_${PROJECT_NAME} +- $(MAKE) install +- DEPENDS gherkin +- COMMENT "Installing ${PROJECT_NAME}") diff --git a/ports/gherkin-c/portfile.cmake b/ports/gherkin-c/portfile.cmake index 68c2049d14..3e4a7ad0a1 100644 --- a/ports/gherkin-c/portfile.cmake +++ b/ports/gherkin-c/portfile.cmake @@ -4,19 +4,20 @@ vcpkg_from_github( REF dd180edc7d092311f2e90a0c4957061156d39dd3 SHA512 c6b38ab0e7a0fd1061d86b0ff9d9140f8c3d6f15cfc1673e947254c6c03a66d3e6aae5b267b074aa10fa30ba2850190c9e9ea7c12e340e4f8c5575b9bf31bab3 HEAD_REF master + PATCHES + fix-install-error.patch + fix-include-path.patch ) -vcpkg_configure_cmake( - SOURCE_PATH ${SOURCE_PATH} - PREFER_NINJA +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" OPTIONS -DBUILD_GHERKIN_TESTS=OFF ) -vcpkg_install_cmake() - -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) - +vcpkg_cmake_install() vcpkg_copy_pdbs() +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + # Handle copyright -file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/gherkin-c RENAME copyright) +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/gherkin-c" RENAME copyright) diff --git a/ports/gherkin-c/vcpkg.json b/ports/gherkin-c/vcpkg.json index 462f19b78e..a91fd90b57 100644 --- a/ports/gherkin-c/vcpkg.json +++ b/ports/gherkin-c/vcpkg.json @@ -1,6 +1,12 @@ { "name": "gherkin-c", - "version-string": "2019-10-07", - "port-version": 2, - "description": "Gherkin parser/compiler in C" + "version-date": "2019-10-07", + "port-version": 3, + "description": "Gherkin parser/compiler in C", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + } + ] } diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index bc3f35c5d4..d8f9c6eeca 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -362,15 +362,15 @@ gflags:arm-uwp=fail gflags:x64-uwp=fail # Conflicts with libevent -gherkin-c:arm64-windows = skip -gherkin-c:arm-uwp = skip -gherkin-c:x64-linux=fail -gherkin-c:x64-osx=fail -gherkin-c:x64-uwp = skip -gherkin-c:x64-windows = skip -gherkin-c:x64-windows-static = skip -gherkin-c:x64-windows-static-md=skip -gherkin-c:x86-windows = skip +gherkin-c:arm64-windows = skip +gherkin-c:arm-uwp = skip +gherkin-c:x64-linux = skip +gherkin-c:x64-osx = skip +gherkin-c:x64-uwp = skip +gherkin-c:x64-windows = skip +gherkin-c:x64-windows-static = skip +gherkin-c:x64-windows-static-md = skip +gherkin-c:x86-windows = skip gl3w:arm64-windows=fail gl3w:arm-uwp=fail glew:arm64-windows=fail diff --git a/versions/baseline.json b/versions/baseline.json index 3982faf26d..c86d280901 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2438,7 +2438,7 @@ }, "gherkin-c": { "baseline": "2019-10-07", - "port-version": 2 + "port-version": 3 }, "giflib": { "baseline": "5.2.1", diff --git a/versions/g-/gherkin-c.json b/versions/g-/gherkin-c.json index a274ee39da..71207c4320 100644 --- a/versions/g-/gherkin-c.json +++ b/versions/g-/gherkin-c.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "cb7cfa3a82651ab27840177189e5dc7938bf1241", + "version-date": "2019-10-07", + "port-version": 3 + }, { "git-tree": "e59a73d00ecbf68ae14b61beec141128d8f94612", "version-string": "2019-10-07",