mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[maddy] New port (#30397)
* [maddy] New port * format manifest * update version database
This commit is contained in:
parent
6f5aab9bad
commit
36b16d365b
22
ports/maddy/CMakeLists.txt
Normal file
22
ports/maddy/CMakeLists.txt
Normal 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}"
|
||||
)
|
22
ports/maddy/portfile.cmake
Normal file
22
ports/maddy/portfile.cmake
Normal 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
4
ports/maddy/usage
Normal 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
17
ports/maddy/vcpkg.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
@ -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
9
versions/m-/maddy.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "469c585ac08f057d3716d962b9d048fe0b851e83",
|
||||
"version": "1.1.2+20210419",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user