Files
chromebrew/packages/libxml2.rb
Ed Reel 3c374a0d2a Update libxml2 packages (#10144)
libxml2 2.12.7-icu74.2 => 2.13.2-icu74.2

py3_libxml2 2.12.7-py3.12 => 2.13.2-py3.12
2024-07-15 08:42:39 +10:00

41 lines
1.3 KiB
Ruby
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
require 'buildsystems/cmake'
class Libxml2 < CMake
description 'Libxml2 is the XML C parser and toolkit developed for the Gnome project.'
homepage 'http://xmlsoft.org/'
version '2.13.2-icu74.2'
license 'MIT'
compatibility 'all'
source_url 'https://gitlab.gnome.org/GNOME/libxml2.git'
git_hashtag "v#{version.split('-').first}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: '20bd9b08d782670028526fd10a28b518fe537b0ef7dccc830a160652ac1fc6c4',
armv7l: '20bd9b08d782670028526fd10a28b518fe537b0ef7dccc830a160652ac1fc6c4',
i686: 'c5e24a4b3f79f9f758fe35cc3a0cf035efaf436a722aff47cd9baaec33bc5b4d',
x86_64: 'e9f1a30afb2e77e66d37f5d23d27eb437cb6bfd63647f3b57de567075f36f73f'
})
depends_on 'gcc_lib' # R
depends_on 'glibc' # R
depends_on 'icu4c' # R
depends_on 'ncurses' # R
depends_on 'readline' # R
depends_on 'zlibpkg' # R
gnome
def self.patch
# Fix encoding.c:1961:31: error: TRUE undeclared (first use in this function)
system "for f in $(grep -rl 'TRUE)'); do sed -i 's,TRUE),true),g' $f; done"
# Remove EBCDIC test since it fails.
# Check https://mail.gnome.org/archives/xml/2010-April/msg00010.html for details.
FileUtils.rm 'test/ebcdic_566012.xml'
end
cmake_options '-DLIBXML2_WITH_PYTHON=OFF \
-DLIBXML2_WITH_LZMA=OFF \
-DLIBXML2_WITH_ICU=ON'
end