mirror of https://github.com/microsoft/vcpkg.git
[graphite2] Update to 1.3.15 (#52717)
This commit is contained in:
parent
be208bbd19
commit
069341ac32
|
|
@ -1,48 +0,0 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 496712d..3df05c7 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -82,10 +82,12 @@ if (BUILD_SHARED_LIBS)
|
||||
endif()
|
||||
|
||||
add_subdirectory(src)
|
||||
-add_subdirectory(tests)
|
||||
-add_subdirectory(doc)
|
||||
-if (NOT GRAPHITE2_NFILEFACE)
|
||||
- add_subdirectory(gr2fonttest)
|
||||
+if(NOT DISABLE_TESTS)
|
||||
+ add_subdirectory(tests)
|
||||
+ add_subdirectory(doc)
|
||||
+ if (NOT GRAPHITE2_NFILEFACE)
|
||||
+ add_subdirectory(gr2fonttest)
|
||||
+ endif()
|
||||
endif()
|
||||
|
||||
set(version 3.0.1)
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index b6ac26b..851a97f 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -127,9 +127,9 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||
endif ()
|
||||
endif()
|
||||
include(Graphite)
|
||||
- if (BUILD_SHARED_LIBS)
|
||||
+ if (NOT DISABLE_TESTS)
|
||||
nolib_test(stdc++ $<TARGET_SONAME_FILE:graphite2>)
|
||||
- endif ()
|
||||
+ endif()
|
||||
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "")
|
||||
CREATE_LIBTOOL_FILE(graphite2 "/lib${LIB_SUFFIX}")
|
||||
endif()
|
||||
@@ -144,7 +144,9 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
||||
endif()
|
||||
target_link_libraries(graphite2 c)
|
||||
include(Graphite)
|
||||
- nolib_test(stdc++ $<TARGET_SONAME_FILE:graphite2>)
|
||||
+ if (NOT DISABLE_TESTS)
|
||||
+ nolib_test(stdc++ $<TARGET_SONAME_FILE:graphite2>)
|
||||
+ endif()
|
||||
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "")
|
||||
CREATE_LIBTOOL_FILE(graphite2 "/lib${LIB_SUFFIX}")
|
||||
endif()
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index bbbc3005..051ce80b 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -86,10 +86,6 @@ add_subdirectory(src)
|
||||
if (BUILD_TESTING)
|
||||
add_subdirectory(tests)
|
||||
endif()
|
||||
-add_subdirectory(doc)
|
||||
-if (NOT GRAPHITE2_NFILEFACE)
|
||||
- add_subdirectory(gr2fonttest)
|
||||
-endif()
|
||||
|
||||
get_property(version DIRECTORY src PROPERTY lib_so_version)
|
||||
set(libdir ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
|
||||
|
|
@ -1,16 +1,17 @@
|
|||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO silnrsi/graphite
|
||||
REF 92f59dcc52f73ce747f1cdc831579ed2546884aa # 1.3.14
|
||||
SHA512 011855576124b2f9ae9d7d3a0dfc5489794cf82b81bebc02c11c9cca350feb9fbb411844558811dff1ebbacac58a24a7cf56a374fc2c27e97a5fb4795a01486e
|
||||
REF "${VERSION}"
|
||||
SHA512 eb1f1772bfc4457d9aa68e99236b8cd6a01c7d93e97ac97f4d93d26db363bc785d71bb780dfdbced28e6e10d3e24eb281e0ff2b678bf57eca722a61f08020dfb
|
||||
HEAD_REF master
|
||||
PATCHES disable-tests.patch
|
||||
PATCHES
|
||||
disable_features.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DDISABLE_TESTS=ON
|
||||
-DBUILD_TESTING=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
|
@ -22,9 +23,12 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/graphite2/Types.h" "defined GRAPHITE2_STATIC" "1")
|
||||
endif()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/libgraphite2.la" "${CURRENT_PACKAGES_DIR}/debug/lib/libgraphite2.la")
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
||||
"${CURRENT_PACKAGES_DIR}/lib/libgraphite2.la"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/lib/libgraphite2.la"
|
||||
)
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING" "${SOURCE_PATH}/LICENSE")
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "graphite2",
|
||||
"version": "1.3.14",
|
||||
"port-version": 4,
|
||||
"version": "1.3.15",
|
||||
"description": [
|
||||
"Graphite is a \"smart font\" system developed specifically to handle the complexities of lesser-known languages of the world.",
|
||||
"Graphite2 is a rework of the original Graphite engine that is faster, smaller, and uses an API that is better suited to the layout architecture of most text-processing applications."
|
||||
],
|
||||
"homepage": "https://github.com/silnrsi/graphite",
|
||||
"license": "MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
||||
|
||||
vcpkg_cmake_configure(SOURCE_PATH "${CURRENT_PORT_DIR}/project")
|
||||
vcpkg_cmake_build()
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
project(graphite2-test)
|
||||
|
||||
find_path(GRAPHITE2_INCLUDE_DIR NAMES graphite2/Font.h REQUIRED)
|
||||
find_library(GRAPHITE2_LIBRARY NAMES graphite2 REQUIRED)
|
||||
|
||||
add_executable(main main.cpp)
|
||||
target_include_directories(main PRIVATE "${GRAPHITE2_INCLUDE_DIR}")
|
||||
target_link_libraries(main PRIVATE "${GRAPHITE2_LIBRARY}")
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
#include <graphite2/Font.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
gr_face* face = gr_make_file_face("does-not-exist.ttf", gr_face_default);
|
||||
if (face) {
|
||||
gr_face_destroy(face);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"name": "vcpkg-ci-graphite2",
|
||||
"version-string": "ci",
|
||||
"description": "Validates graphite2",
|
||||
"dependencies": [
|
||||
"graphite2",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -3585,8 +3585,8 @@
|
|||
"port-version": 1
|
||||
},
|
||||
"graphite2": {
|
||||
"baseline": "1.3.14",
|
||||
"port-version": 4
|
||||
"baseline": "1.3.15",
|
||||
"port-version": 0
|
||||
},
|
||||
"graphviz": {
|
||||
"baseline": "15.0.0",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "412465df8ab105ebd7942aa8f6e74975813581bd",
|
||||
"version": "1.3.15",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "7d9a7404bf9dece906b2f6d8d8a70d7139d5e998",
|
||||
"version": "1.3.14",
|
||||
|
|
|
|||
Loading…
Reference in New Issue