mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 16:43:02 +08:00
[lunasvg] Add new port (#23867)
* [lunasvg] Add new port * Run x-add-version * Update portfile.cmake * Add license to vcpkg.json * Update lunasvg.json * Replace tabs with spaces * Run x-add-version * Update vcpkg.json * Update lunasvg.json
This commit is contained in:
parent
3f7655c70a
commit
6dff39f134
26
ports/lunasvg/fix-install.patch
Normal file
26
ports/lunasvg/fix-install.patch
Normal file
@ -0,0 +1,26 @@
|
||||
CMakeLists.txt | 15 ++-------------
|
||||
1 file changed, 2 insertions(+), 13 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 9916c67..159f3a6 100755
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -24,16 +24,5 @@ if(LUNASVG_BUILD_EXAMPLES)
|
||||
add_subdirectory(example)
|
||||
endif()
|
||||
|
||||
-set(LUNASVG_LIBDIR ${CMAKE_INSTALL_PREFIX}/lib)
|
||||
-set(LUNASVG_INCDIR ${CMAKE_INSTALL_PREFIX}/include)
|
||||
-
|
||||
-install(FILES
|
||||
- include/lunasvg.h
|
||||
- DESTINATION ${LUNASVG_INCDIR}
|
||||
-)
|
||||
-
|
||||
-install(TARGETS lunasvg
|
||||
- LIBRARY DESTINATION ${LUNASVG_LIBDIR}
|
||||
- ARCHIVE DESTINATION ${LUNASVG_LIBDIR}
|
||||
- INCLUDES DESTINATION ${LUNASVG_INCDIR}
|
||||
-)
|
||||
+set_target_properties(lunasvg PROPERTIES PUBLIC_HEADER "include/lunasvg.h")
|
||||
+install(TARGETS lunasvg RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib PUBLIC_HEADER DESTINATION include)
|
24
ports/lunasvg/portfile.cmake
Normal file
24
ports/lunasvg/portfile.cmake
Normal file
@ -0,0 +1,24 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO sammycage/lunasvg
|
||||
REF e612abda858b53160041381a23422cd2b4f42fbd #2.3.1
|
||||
SHA512 44f5d013d918cb5af90114a12857bdd2c204caff761516ef98b12b08d8b6215e91f6d963c281500c386f287b9d0ecd5b3d986d4c8c33423c0c34d539d744e09d
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-install.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DLUNASVG_BUILD_EXAMPLES=OFF
|
||||
-DBUILD_SHARED_LIBS=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
17
ports/lunasvg/vcpkg.json
Normal file
17
ports/lunasvg/vcpkg.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "lunasvg",
|
||||
"version": "2.3.1",
|
||||
"description": "lunasvg is a standalone SVG rendering library in C++",
|
||||
"homepage": "https://github.com/sammycage/lunasvg",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -4288,6 +4288,10 @@
|
||||
"baseline": "2020-09-14",
|
||||
"port-version": 2
|
||||
},
|
||||
"lunasvg": {
|
||||
"baseline": "2.3.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"lv2": {
|
||||
"baseline": "1.18.2",
|
||||
"port-version": 1
|
||||
|
9
versions/l-/lunasvg.json
Normal file
9
versions/l-/lunasvg.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "bf20380ca537151f7d1e02a6ca5b19c302db18c7",
|
||||
"version": "2.3.1",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user