early-access version 2853
This commit is contained in:
26
externals/vcpkg/ports/utf8proc/export-cmake-targets.patch
vendored
Executable file
26
externals/vcpkg/ports/utf8proc/export-cmake-targets.patch
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index edf1d80..bf9d982 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -26,7 +26,7 @@ add_library (utf8proc
|
||||
)
|
||||
|
||||
# expose header path, for when this is part of a larger cmake project
|
||||
-target_include_directories(utf8proc PUBLIC .)
|
||||
+target_include_directories(utf8proc PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<INSTALL_INTERFACE:include>)
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
# Building shared library
|
||||
@@ -57,10 +57,12 @@ if (UTF8PROC_INSTALL)
|
||||
include(GNUInstallDirs)
|
||||
install(FILES utf8proc.h DESTINATION "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
|
||||
install(TARGETS utf8proc
|
||||
+ EXPORT unofficial-utf8proc-config
|
||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}"
|
||||
LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}"
|
||||
RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_BINDIR}"
|
||||
)
|
||||
+ install(EXPORT unofficial-utf8proc-config DESTINATION share/unofficial-utf8proc)
|
||||
configure_file(libutf8proc.pc.cmakein libutf8proc.pc @ONLY)
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libutf8proc.pc" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig")
|
||||
endif()
|
||||
33
externals/vcpkg/ports/utf8proc/portfile.cmake
vendored
Executable file
33
externals/vcpkg/ports/utf8proc/portfile.cmake
vendored
Executable file
@@ -0,0 +1,33 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO JuliaLang/utf8proc
|
||||
REF 8ca6144c85c165987cb1c5d8395c7314e13d4cd7 # v2.7.0
|
||||
SHA512 a33e2335e9978e7a49bc0ecf9128abd93466d9daffb052f9db88097e771588547df6ba07b6028c77621e60f3b85eab78a368d9b8266ecb97ad7bdfae2b4866fc
|
||||
PATCHES
|
||||
export-cmake-targets.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DUTF8PROC_ENABLE_TESTING=OFF
|
||||
-DUTF8PROC_INSTALL=ON
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-utf8proc CONFIG_PATH share/unofficial-utf8proc)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
file(READ "${CURRENT_PACKAGES_DIR}/include/utf8proc.h" UTF8PROC_H)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
string(REPLACE "defined UTF8PROC_SHARED" "0" UTF8PROC_H "${UTF8PROC_H}")
|
||||
else()
|
||||
string(REPLACE "defined UTF8PROC_SHARED" "1" UTF8PROC_H "${UTF8PROC_H}")
|
||||
endif()
|
||||
file(WRITE "${CURRENT_PACKAGES_DIR}/include/utf8proc.h" "${UTF8PROC_H}")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
17
externals/vcpkg/ports/utf8proc/vcpkg.json
vendored
Executable file
17
externals/vcpkg/ports/utf8proc/vcpkg.json
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "utf8proc",
|
||||
"version": "2.7.0",
|
||||
"description": "Clean C library for processing UTF-8 Unicode data.",
|
||||
"homepage": "https://github.com/JuliaLang/utf8proc",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user