diff --git a/ports/vili/portfile.cmake b/ports/vili/portfile.cmake new file mode 100644 index 0000000000..d21baa9a18 --- /dev/null +++ b/ports/vili/portfile.cmake @@ -0,0 +1,25 @@ + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO "ViliOrg/Vili" + REF "6e97dde7ef7cfe95ef715640524210b6477ecfa1" + SHA512 "a3c198df442a870f4075136d7eeb4f5241728cdd737ee002f7040e8f3c74e7216a0ebe0aab95ce4dc6e56ba84d3f43f4af2b9ec1116efb13d2b6f3977fcb1f33" + HEAF_REF "master" +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + "-DBUILD_TESTS=OFF" +) + +vcpkg_cmake_install() + +vcpkg_install_copyright( + FILE_LIST "${SOURCE_PATH}/LICENSE" +) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/ports/vili/usage b/ports/vili/usage new file mode 100644 index 0000000000..75a7be3588 --- /dev/null +++ b/ports/vili/usage @@ -0,0 +1,5 @@ + +The package vili provides CMake targets: + + find_package("vili" CONFIG REQUIRED) + target_link_libraries("main" PRIVATE "vili::vili") diff --git a/ports/vili/vcpkg.json b/ports/vili/vcpkg.json new file mode 100644 index 0000000000..2c0a4253be --- /dev/null +++ b/ports/vili/vcpkg.json @@ -0,0 +1,21 @@ +{ + "name": "vili", + "version": "1.0.0+20221123", + "maintainers": "Sygmei", + "description": "A nice and readable data format !", + "homepage": "https://github.com/ViliOrg/Vili", + "license": "MIT", + "dependencies": [ + "fmt", + "nlohmann-fifo-map", + "pegtl", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 0f7340d9ec..b275830399 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -7844,6 +7844,10 @@ "baseline": "2.02.00", "port-version": 0 }, + "vili": { + "baseline": "1.0.0+20221123", + "port-version": 0 + }, "visit-struct": { "baseline": "1.0", "port-version": 2 diff --git a/versions/v-/vili.json b/versions/v-/vili.json new file mode 100644 index 0000000000..5cb2495225 --- /dev/null +++ b/versions/v-/vili.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "b72194e61d1a2725cbb85912b25bc3e8b986e503", + "version": "1.0.0+20221123", + "port-version": 0 + } + ] +}