diff --git a/ports/kwsys/portfile.cmake b/ports/kwsys/portfile.cmake new file mode 100644 index 00000000000000..b676a4a13d53e0 --- /dev/null +++ b/ports/kwsys/portfile.cmake @@ -0,0 +1,28 @@ +vcpkg_fail_port_install(ON_TARGET "UWP") + +vcpkg_from_gitlab( + GITLAB_URL https://gitlab.kitware.com + OUT_SOURCE_PATH SOURCE_PATH + REPO utils/kwsys + REF dbc94f37f9821899aad441bcab525ad96a3f30dc #2021-08-06 + SHA512 98441866fd51f2d4d3974d3c37d4456ce9e50c6f6c2ab0691e55b268907611ef061562fc30b1baa42aa195caf2281aa0e1e0799abc545fe6dae70efe2050ea50 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DKWSYS_INSTALL_INCLUDE_DIR=${CURRENT_PACKAGES_DIR}/include + OPTIONS_RELEASE + -DKWSYS_INSTALL_BIN_DIR=${CURRENT_PACKAGES_DIR}/bin + -DKWSYS_INSTALL_LIB_DIR=${CURRENT_PACKAGES_DIR}/lib + OPTIONS_DEBUG + -DKWSYS_INSTALL_BIN_DIR=${CURRENT_PACKAGES_DIR}/debug/bin + -DKWSYS_INSTALL_LIB_DIR=${CURRENT_PACKAGES_DIR}/debug/lib +) + +vcpkg_cmake_install() + + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/Copyright.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/kwsys/vcpkg.json b/ports/kwsys/vcpkg.json new file mode 100644 index 00000000000000..b45350d738d937 --- /dev/null +++ b/ports/kwsys/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "kwsys", + "version-date": "2021-08-06", + "description": "Provides platform-independent APIs to many common system features", + "homepage": "https://gitlab.kitware.com/utils/kwsys", + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index acc43183f30e17..3568f7f13c3997 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3004,6 +3004,10 @@ "baseline": "2019-08-06", "port-version": 0 }, + "kwsys": { + "baseline": "2021-08-06", + "port-version": 0 + }, "lapack": { "baseline": "3", "port-version": 1 diff --git a/versions/k-/kwsys.json b/versions/k-/kwsys.json new file mode 100644 index 00000000000000..fd3fb9fa7a6304 --- /dev/null +++ b/versions/k-/kwsys.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "376ae3a199ad4fdaad235b6e01b92ed217388550", + "version-date": "2021-08-06", + "port-version": 0 + } + ] +}