mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
41 lines
1.3 KiB
Ruby
41 lines
1.3 KiB
Ruby
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
|