Skip to content

Commit

Permalink
[linux] update custom librsvg port
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Koshura <[email protected]>
  • Loading branch information
AenBleidd committed Dec 13, 2024
1 parent 318e591 commit f9b10ef
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions 3rdParty/vcpkg_ports/ports/librsvg/fix-libxml2-2.13.5.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/rsvg-css.c b/rsvg-css.c
index 5b359a206..4f59281b6 100644
--- a/rsvg-css.c
+++ b/rsvg-css.c
@@ -839,7 +839,7 @@ rsvg_css_parse_overflow (const char *str, gboolean * inherit)
}

static void
-rsvg_xml_noerror (void *data, xmlErrorPtr error)
+rsvg_xml_noerror (void *data, const xmlError *error)
{
}

3 changes: 2 additions & 1 deletion 3rdParty/vcpkg_ports/ports/librsvg/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ vcpkg_download_distfile(ARCHIVE
URLS "https://download.gnome.org/sources/librsvg/${MAJOR_MINOR}/librsvg-${VERSION}.tar.xz"
"https://www.mirrorservice.org/sites/ftp.gnome.org/pub/GNOME/sources/librsvg/${MAJOR_MINOR}/librsvg-${VERSION}.tar.xz"
FILENAME "librsvg-${VERSION}.tar.xz"
SHA512 cdd8224deb4c3786e29f48ed02c32ed9dff5cb15aba574a5ef845801ad3669cfcc3eedb9d359c22213dc7a29de24c363248825adad5877c40abf73b3688ff12f
SHA512 db0563d8e0edaae642a6b2bcd239cf54191495058ac8c7ff614ebaf88c0e30bd58dbcd41f58d82a9d5ed200ced45fc5bae22f2ed3cf3826e9348a497009e1280
)

vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE "${ARCHIVE}"
PATCHES
fix-libxml2-2.13.5.patch
fix_io_svg_for_static_build.patch
)

Expand Down
3 changes: 1 addition & 2 deletions 3rdParty/vcpkg_ports/ports/librsvg/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "librsvg",
"version": "2.40.20",
"port-version": 11,
"version": "2.40.21",
"description": "A small library to render Scalable Vector Graphics (SVG)",
"homepage": "https://gitlab.gnome.org/GNOME/librsvg",
"license": "LGPL-2.0-or-later",
Expand Down

0 comments on commit f9b10ef

Please sign in to comment.