diff options
| author | Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> | 2020-05-26 02:52:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-25 11:52:48 -0700 |
| commit | b271aeffa25c53f3750f58ad6209f3fa7c528716 (patch) | |
| tree | e2d85c56570965e26803b629502e9bcb7efa648d /ports/xmsh | |
| parent | 2ac2b5f3da6b46ff2ae900550bd7c44f39c57dcd (diff) | |
| download | vcpkg-b271aeffa25c53f3750f58ad6209f3fa7c528716.tar.gz vcpkg-b271aeffa25c53f3750f58ad6209f3fa7c528716.zip | |
[VCPKG baseline] Fix many ports (#11559)
Diffstat (limited to 'ports/xmsh')
| -rw-r--r-- | ports/xmsh/CONTROL | 3 | ||||
| -rw-r--r-- | ports/xmsh/portfile.cmake | 28 |
2 files changed, 14 insertions, 17 deletions
diff --git a/ports/xmsh/CONTROL b/ports/xmsh/CONTROL index 771abe76f..758a54ba3 100644 --- a/ports/xmsh/CONTROL +++ b/ports/xmsh/CONTROL @@ -1,4 +1,5 @@ Source: xmsh -Version: 0.5.2 +Version: 0.5.2-1 Description: Reference Implementation of XMSH Library Build-Depends: tl-expected, nlohmann-json +Homepage: https://gitlab.com/libxmsh/xmsh
\ No newline at end of file diff --git a/ports/xmsh/portfile.cmake b/ports/xmsh/portfile.cmake index 615f8fa9a..7d74e7da9 100644 --- a/ports/xmsh/portfile.cmake +++ b/ports/xmsh/portfile.cmake @@ -1,19 +1,15 @@ -include(vcpkg_common_functions) - vcpkg_find_acquire_program(PYTHON3) -if (NOT VCPKG_TARGET_IS_WINDOWS) - message("Building with a gcc version less than 7.1.0 is not supported.") -else() - message(FATAL_ERROR "xmsh only support Linux/OSX.") -endif() +vcpkg_fail_port_install(ON_TARGET "Windows") +message("Building with a gcc version less than 7.1.0 is not supported.") -vcpkg_from_github( - OUT_SOURCE_PATH SOURCE_PATH - REPO libxmsh/xmsh - REF e1900845b796ef977db70519b2ac08eebd788236 #v0.5.2 - SHA512 643c6c94956de9b6fae635b6528e8ba756f4a2bc38de71613c2dd8d47f4a043aee7b6e7fec1870b306be3bea9f5c0c81d1d343bfc27883b3fba986fbc5b15406 - HEAD_REF master +vcpkg_from_gitlab( + GITLAB_URL https://gitlab.com + OUT_SOURCE_PATH SOURCE_PATH + REPO libxmsh/xmsh + REF e1900845b796ef977db70519b2ac08eebd788236 + SHA512 643c6c94956de9b6fae635b6528e8ba756f4a2bc38de71613c2dd8d47f4a043aee7b6e7fec1870b306be3bea9f5c0c81d1d343bfc27883b3fba986fbc5b15406 + HEAD_REF master ) vcpkg_configure_cmake( @@ -29,6 +25,8 @@ set(ENV{PATH} "$ENV{PATH};${PYPATH}") vcpkg_install_cmake() +vcpkg_copy_pdbs() + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) @@ -36,6 +34,4 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL static) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) endif() -file(INSTALL ${SOURCE_PATH}/copyright.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/xmsh RENAME copyright) - -vcpkg_copy_pdbs() +file(INSTALL ${SOURCE_PATH}/copyright.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |
