[maddy] New port (#30397)

* [maddy] New port

* format manifest

* update version database
This commit is contained in:
xiaozhuai, Weihang Ding 2023-03-28 02:54:27 +08:00 committed by GitHub
parent 6f5aab9bad
commit 36b16d365b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 78 additions and 0 deletions

View File

@ -0,0 +1,22 @@
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
project(maddy LANGUAGES CXX)
include(GNUInstallDirs)
add_library(maddy INTERFACE)
target_include_directories(maddy INTERFACE $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
install(TARGETS maddy EXPORT unofficial-maddy)
install(
EXPORT unofficial-maddy
FILE unofficial-maddy-config.cmake
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/unofficial-maddy"
NAMESPACE unofficial::maddy::
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/include/maddy"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
)

View File

@ -0,0 +1,22 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO progsource/maddy
REF f3d934d6ec70bd4c077acfb810026d5f15e11001 #1.1.2+20210419
SHA512 7ac4c7e1077f2315c19945d994fa8c13538908f8b477d71c38c245826bff70987eb169eabdd756bfdd240be0f985f047298e0cd0706aaf5bc892bc9b0e804776
HEAD_REF master
)
set(VCPKG_BUILD_TYPE release) # header-only port
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

4
ports/maddy/usage Normal file
View File

@ -0,0 +1,4 @@
maddy provides CMake targets:
find_package(unofficial-maddy CONFIG REQUIRED)
target_link_libraries(main PRIVATE unofficial::maddy::maddy)

17
ports/maddy/vcpkg.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "maddy",
"version": "1.1.2+20210419",
"description": "C++ Markdown to HTML header-only parser library",
"homepage": "https://github.com/progsource/maddy",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -4912,6 +4912,10 @@
"baseline": "2020-07-30",
"port-version": 1
},
"maddy": {
"baseline": "1.1.2+20210419",
"port-version": 0
},
"magic-enum": {
"baseline": "0.8.2",
"port-version": 0

9
versions/m-/maddy.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "469c585ac08f057d3716d962b9d048fe0b851e83",
"version": "1.1.2+20210419",
"port-version": 0
}
]
}