Files
chromebrew/packages/libxml2.rb
Satadru Pramanik 22bb47bd45 add missing runtime deps to ALL core packages, add getrealdeps script (#7472)
* gcc: add missing zlibpkg dep

* add getrealdeps script

* add color

* suggested changes from @supechicken

* suggested changes

* fix verbiage

* add NOCOLORS option

* use read in lieu of head, and do not check nonexistent files

* Exit early if wrong package name is given.

* Add some quick exit code

* Allow for pkg.rb in getrealdeps and also add deps to all core packages

* fix lint error

* fix zlibpkg

* cleanup gcc deps

* move filecmd to be a ruby dependency

* fix llvm deps

* lint fix

* update more deps

* make sure package is installed before checking for deps

* add more deps

* change verbiage

* add more deps

* more dep updates
2022-10-10 18:39:48 -05:00

67 lines
2.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 'package'
class Libxml2 < Package
description 'Libxml2 is the XML C parser and toolkit developed for the Gnome project.'
homepage 'http://xmlsoft.org/'
version '2.10.2'
license 'MIT'
compatibility 'all'
source_url 'https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.10.2/libxml2-v2.10.2.tar.bz2'
source_sha256 'd50e8a55b2797501929d3411b81d5d37ec44e9a4aa58eae9052572977c632d7a'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libxml2/2.10.2_armv7l/libxml2-2.10.2-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libxml2/2.10.2_armv7l/libxml2-2.10.2-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libxml2/2.10.2_i686/libxml2-2.10.2-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libxml2/2.10.2_x86_64/libxml2-2.10.2-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: 'd71f1920d9c2db027f1dabf735038ef8bbcfca33d714773ae6d1049879ac9889',
armv7l: 'd71f1920d9c2db027f1dabf735038ef8bbcfca33d714773ae6d1049879ac9889',
i686: 'e1c1c121adb611590f66062919e5a15cfdd62a9da89b37105af5789660db416a',
x86_64: '0d463712429ba8c0d01f58ac772db9e5e1e88d47ae57f88c7e9a06e87dc8788b'
})
depends_on 'gcc' # R
depends_on 'glibc' # R
depends_on 'icu4c' # R
depends_on 'ncurses'
depends_on 'readline' # R
depends_on 'zlibpkg' # R
no_patchelf
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"
end
def self.build
# libxml2-python built in another package (py3_libxml2)
system "./autogen.sh \
#{CREW_OPTIONS} \
#{CREW_ENV_OPTIONS} \
--enable-shared \
--enable-static \
--with-pic \
--without-python \
--without-lzma \
--with-zlib \
--with-icu \
--with-threads \
--with-history"
system 'make'
end
def self.check
# Remove EBCDIC test since it fails.
# Check https://mail.gnome.org/archives/xml/2010-April/msg00010.html for details.
system 'rm', 'test/ebcdic_566012.xml'
system 'make', 'check'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end