[vili] Create a new port (#27839)

This commit is contained in:
nfarid 2022-11-29 00:11:11 +00:00 committed by GitHub
parent 2c26c9aff1
commit c9c5bc2a68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 64 additions and 0 deletions

25
ports/vili/portfile.cmake Normal file
View File

@ -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}")

5
ports/vili/usage Normal file
View File

@ -0,0 +1,5 @@
The package vili provides CMake targets:
find_package("vili" CONFIG REQUIRED)
target_link_libraries("main" PRIVATE "vili::vili")

21
ports/vili/vcpkg.json Normal file
View File

@ -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
}
]
}

View File

@ -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

9
versions/v-/vili.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "b72194e61d1a2725cbb85912b25bc3e8b986e503",
"version": "1.0.0+20221123",
"port-version": 0
}
]
}