Files
chromebrew/packages/libxml2.rb
Satadru Pramanik, DO, MPH, MEng 8473668c0d Store perl/python/icu/ruby versions for packages as constants in const.rb (#10528)
* Adjust const.rb and packages to use generated version constants.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Update gem binaries

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Update update scripts.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Libxml2 => 2.13.4

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust install.sh to handle new gem package versioning suffix.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* update openimageio

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* update py3_ruff

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* add pip binaries

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Move activesupport gem behind requre_gem function.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust file path in ruby_pry.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* lint

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
2024-09-26 15:27:10 -05:00

42 lines
1.3 KiB
Ruby
Raw Permalink 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.4-#{CREW_ICU_VER}"
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: 'ce90c88af66d260d38454a520b61ab9453cbeb83c2ca6076cdb2cda508268bd7',
armv7l: 'ce90c88af66d260d38454a520b61ab9453cbeb83c2ca6076cdb2cda508268bd7',
i686: 'f724e242213075de12302b21e6c405d35dbbbe702799a6a71abb9cbedf987d63',
x86_64: '7dc5d2ea9a9c658e6ba439978e5b5049fbe2348801c68f19f67a9cb1cb047eba'
})
depends_on 'gcc_lib' # R
depends_on 'glibc' # R
depends_on 'icu4c' # R
depends_on 'ncurses' # R
depends_on 'readline' # R
depends_on 'zlib' # R
conflicts_ok
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