[libxslt] Update to v1.1.42 (#42484)

This commit is contained in:
Don Olmstead 2024-12-03 18:26:31 -08:00 committed by GitHub
parent 833c6a527a
commit 21692b2960
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 73 additions and 37 deletions

View File

@ -1,8 +1,8 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6dc6501..d36a049 100644
index fb352475..4113fbff 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -317,7 +317,9 @@ target_include_directories(
@@ -319,7 +319,9 @@ target_include_directories(
if(LIBXSLT_WITH_CRYPTO AND NOT WIN32)
target_link_libraries(LibExslt PRIVATE Gcrypt::Gcrypt)
@ -12,9 +12,9 @@ index 6dc6501..d36a049 100644
+ string(APPEND EXSLT_PRIVATE_REQUIRES " libgcrypt")
endif()
target_link_libraries(LibExslt PUBLIC LibXslt LibXml2::LibXml2)
if(UNIX)
diff --git a/FindGcrypt.cmake b/FindGcrypt.cmake
index 781113d..a78fa84 100644
index 781113d5..6f680beb 100644
--- a/FindGcrypt.cmake
+++ b/FindGcrypt.cmake
@@ -1,3 +1,20 @@
@ -38,7 +38,7 @@ index 781113d..a78fa84 100644
include(FindPackageHandleStandardArgs)
include(SelectLibraryConfigurations)
@@ -38,3 +53,4 @@ if(GCRYPT_FOUND AND NOT TARGET Gcrypt::Gcrypt)
@@ -38,3 +55,4 @@ if(GCRYPT_FOUND AND NOT TARGET Gcrypt::Gcrypt)
INTERFACE_INCLUDE_DIRECTORIES "${GCRYPT_INCLUDE_DIRS}"
)
endif()

View File

@ -1,5 +1,5 @@
diff --git a/libexslt.pc.in b/libexslt.pc.in
index 1d60563..50089e8 100644
index f448bb83..791bcdda 100644
--- a/libexslt.pc.in
+++ b/libexslt.pc.in
@@ -7,7 +7,8 @@ includedir=@includedir@
@ -9,6 +9,6 @@ index 1d60563..50089e8 100644
-Requires: libxml-2.0, libxslt
+Requires: libxslt
+Requires.private: @EXSLT_PRIVATE_REQUIRES@
Cflags: @EXSLT_INCLUDEDIR@
Cflags: @EXSLT_INCLUDEDIR@ @LIBEXSLT_CFLAGS@
Libs: @EXSLT_LIBDIR@ -lexslt
Libs.private: @EXSLT_PRIVATE_LIBS@

View File

@ -1,9 +1,9 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8679fb..6dc6501 100644
index fb352475..a4bb094e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -244,7 +249,7 @@ set_target_properties(
VERSION ${PROJECT_VERSION}
@@ -247,7 +247,7 @@ set_target_properties(
SOVERSION ${LIBXSLT_MAJOR_VERSION}
)
-if(MSVC)
@ -11,8 +11,8 @@ index d8679fb..6dc6501 100644
if(BUILD_SHARED_LIBS)
set_target_properties(
LibXslt
@@ -327,7 +332,7 @@ set_target_properties(
VERSION ${LIBEXSLT_VERSION}
@@ -340,7 +340,7 @@ set_target_properties(
SOVERSION ${LIBEXSLT_MAJOR_VERSION}
)
-if(MSVC)

View File

@ -1,8 +1,14 @@
vcpkg_download_distfile(FIX_PACKAGE_VERSION_PATCH
URLS https://github.com/GNOME/libxslt/commit/7504032097712714aafe309d54f2ad57e3364bac.diff?full_index=1
FILENAME Fix-package-version.patch
SHA512 972921decf374fe8a4cad4e09890ce0d5961ee05e3c52d117c09fe8bde1a4540ebe212e767f8a95d281945240f29a90fd15e37104f45d47440032737d41dc8d0
)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO GNOME/libxslt
REF v1.1.37
SHA512 4e7a57cbe02ceea34404213a88bdbb63a756edfab63063ce3979b670816ae3f6fb3637a49508204e6e46b936628e0a3b8b77e9201530a1184225bd68da403b25
REF "v${VERSION}"
SHA512 0974419e0eae3cd4070ca52341b3df2d1b873b30d0ede2143274fcd0ef8653d5ac55b5f0faad56d8cf60443fefb01c5f5ddecff4b7638ba28e450e88f1c3d3c4
HEAD_REF master
PATCHES
python3.patch
@ -10,12 +16,17 @@ vcpkg_from_github(
libexslt-pkgconfig.patch
fix-gcrypt-deps.patch
skip-install-docs.patch
${FIX_PACKAGE_VERSION_PATCH}
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
"python" LIBXSLT_WITH_PYTHON
"crypto" LIBXSLT_WITH_CRYPTO
"plugins" LIBXSLT_WITH_MODULES
"profiler" LIBXSLT_WITH_PROFILER
"thread" LIBXSLT_WITH_THREADS
"tools" LIBXSLT_WITH_PROGRAMS
)
if("python" IN_LIST FEATURES)
vcpkg_find_acquire_program(PYTHON3)
@ -28,16 +39,13 @@ vcpkg_cmake_configure(
OPTIONS
${FEATURE_OPTIONS}
-DLIBXSLT_WITH_TESTS:BOOL=OFF
-DLIBXSLT_WITH_THREADS:BOOL=ON
OPTIONS_RELEASE
${FEATURE_OPTIONS_RELEASE}
-DLIBXSLT_WITH_XSLT_DEBUG:BOOL=OFF
-DLIBXSLT_WITH_MEM_DEBUG:BOOL=OFF
-DLIBXSLT_WITH_DEBUGGER:BOOL=OFF
OPTIONS_DEBUG
${FEATURE_OPTIONS_DEBUG}
-DLIBXSLT_WITH_XSLT_DEBUG:BOOL=ON
-DLIBXSLT_WITH_MEM_DEBUG:BOOL=ON
-DLIBXSLT_WITH_DEBUGGER:BOOL=ON
)
vcpkg_cmake_install()
@ -56,7 +64,9 @@ if(NOT VCPKG_BUILD_TYPE)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/libxslt/debug/xslt-config" [[${prefix}/include]] [[${prefix}/../include]])
endif()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libxslt/xsltconfig.h" "#define LIBXSLT_DEFAULT_PLUGINS_PATH() \"${CURRENT_INSTALLED_DIR}/lib/libxslt-plugins\"" "" IGNORE_UNCHANGED)
vcpkg_copy_tools(TOOL_NAMES xsltproc AUTO_CLEAN)
if("tools" IN_LIST FEATURES)
vcpkg_copy_tools(TOOL_NAMES xsltproc AUTO_CLEAN)
endif()
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()
@ -72,12 +82,17 @@ if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
if(NOT VCPKG_BUILD_TYPE)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libxslt.pc" " -lxslt" " -llibxslt")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libexslt.pc" " -lexslt" " -llibexslt")
endif()
endif()
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libxslt")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${SOURCE_PATH}/Copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/Copyright")

View File

@ -1,10 +1,10 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8679fb..6dc6501 100644
index fb352475..75bd44a5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,6 +35,11 @@ if(LIBXSLT_WITH_PYTHON)
@@ -63,6 +63,11 @@ if(LIBXSLT_WITH_PYTHON)
check_symbol_exists(F_GETFL fcntl.h HAVE_F_GETFL)
if(HAVE_UNISTD_H AND HAVE_F_GETFL)
if(WIN32 OR (HAVE_UNISTD_H AND HAVE_F_GETFL))
find_package(Python COMPONENTS Interpreter Development REQUIRED)
+ elseif(1)
+ find_package(Python3 COMPONENTS Interpreter Development REQUIRED)

View File

@ -1,15 +1,17 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6dc6501..d36a049 100644
index fb352475..23fe90f6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -432,10 +434,12 @@ if(LIBXSLT_WITH_PYTHON)
@@ -474,12 +474,14 @@ if(LIBXSLT_WITH_PYTHON)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libxslt.py DESTINATION ${LIBXSLT_PYTHON_INSTALL_DIR} COMPONENT runtime)
endif()
+if(VCPKG_INSTALL_DOCS)
install(FILES libexslt/libexslt.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3 COMPONENT documentation)
install(FILES libxslt/libxslt.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3 COMPONENT documentation)
install(FILES doc/xsltproc.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation)
if(LIBXSLT_WITH_PROGRAMS)
install(FILES doc/xsltproc.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation)
endif()
install(DIRECTORY doc/ DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/libxslt COMPONENT documentation PATTERN Makefile.* EXCLUDE)
+endif()

View File

@ -1,7 +1,6 @@
{
"name": "libxslt",
"version": "1.1.37",
"port-version": 4,
"version": "1.1.42",
"description": "Libxslt is a XSLT library implemented in C for XSLT 1.0 and most of EXSLT",
"homepage": "https://github.com/GNOME/libxslt",
"license": null,
@ -21,7 +20,7 @@
}
],
"default-features": [
"default-features"
"thread"
],
"features": {
"crypto": {
@ -31,16 +30,22 @@
"libgcrypt"
]
},
"default-features": {
"description": "default features for the current platform"
},
"plugins": {
"description": "(deprecated)",
"supports": "!static"
},
"profiler": {
"description": "Build with profiling support"
},
"python": {
"description": "Builds with python support",
"supports": "!windows"
},
"thread": {
"description": "Enable multi-threading support"
},
"tools": {
"description": "Build the utilities"
}
}
}

View File

@ -1,7 +1,7 @@
{
"name": "xcb",
"version": "1.14",
"port-version": 2,
"port-version": 3,
"description": "C interface to the X Window System protocol, which replaces the traditional Xlib interface.",
"homepage": "https://xcb.freedesktop.org/",
"license": "X11-distribute-modifications-variant",
@ -11,7 +11,11 @@
"libxdmcp",
{
"name": "libxslt",
"host": true
"host": true,
"default-features": false,
"features": [
"tools"
]
},
"pthread",
"pthread-stubs",

View File

@ -5481,8 +5481,8 @@
"port-version": 0
},
"libxslt": {
"baseline": "1.1.37",
"port-version": 4
"baseline": "1.1.42",
"port-version": 0
},
"libxt": {
"baseline": "1.3.0",
@ -9778,7 +9778,7 @@
},
"xcb": {
"baseline": "1.14",
"port-version": 2
"port-version": 3
},
"xcb-image": {
"baseline": "0.4.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "8bd8a88f0bf38f7e3b7dda75aa505d413a496836",
"version": "1.1.42",
"port-version": 0
},
{
"git-tree": "75b0e06db8a91635c6383e8d7be0f96222aa3cbd",
"version": "1.1.37",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c22c4b92b4143d3aeb4d3ecbe82d9c03ca7acece",
"version": "1.14",
"port-version": 3
},
{
"git-tree": "409e8b6e371d2541c6330d13034e44bcaa4e10e8",
"version": "1.14",