Commit 4219f819 authored by Casey Strouse's avatar Casey Strouse Committed by GitHub

Merge pull request #4101 from uberhacker/update-libxml2-package

Update libxml2 and libxml2_python from 2.9.9 to 2.9.10
parents 8c21a828 851a595c
...@@ -3,51 +3,42 @@ require 'package' ...@@ -3,51 +3,42 @@ require 'package'
class Libxml2 < Package class Libxml2 < Package
description 'Libxml2 is the XML C parser and toolkit developed for the Gnome project.' description 'Libxml2 is the XML C parser and toolkit developed for the Gnome project.'
homepage 'http://xmlsoft.org/' homepage 'http://xmlsoft.org/'
version '2.9.9' version '2.9.10'
source_url 'https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.9.9/libxml2-v2.9.9.tar.bz2' source_url 'https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.9.10/libxml2-v2.9.10.tar.bz2'
source_sha256 'd598e907b5f3efa992b65094f7113d9d8cc87238f32e4e1ddf8beff01b60a653' source_sha256 '5f1cc19c849cccabb983881cf1ebf833f42db5d7b8afba7a7763a2ac3101715c'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2-2.9.9-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2-2.9.10-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2-2.9.9-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2-2.9.10-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2-2.9.9-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2-2.9.10-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2-2.9.9-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2-2.9.10-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: '8f7a474b5d0f8f800faa8e585662561dc4a0db3a494b2a949e96e63becf84262', aarch64: '6c7da2f6074adc4022ade9e72a070037657a1c708150404c5b9c7d07634c5390',
armv7l: '8f7a474b5d0f8f800faa8e585662561dc4a0db3a494b2a949e96e63becf84262', armv7l: '6c7da2f6074adc4022ade9e72a070037657a1c708150404c5b9c7d07634c5390',
i686: 'b248be959d940cb499e4692973865770a74fe1e10dfd7706cca36cc3ef3a0067', i686: '9baf9a41ad01e2b6d09f09c9a65a74b37ac839e53ce00c0ebf048bc1d1d7b01f',
x86_64: 'd2a31a3c95de67b23488340deea7025cdf953700e141a629de11711d17d3794a', x86_64: '4c1305434bbac822e6d08234d3058e94bca0ab95591ca25a0ccc8675cd16c48e',
}) })
depends_on 'zlibpkg' depends_on 'zlibpkg'
def self.build def self.build
system './autogen.sh' system './autogen.sh'
system "./configure", # libxml2-python built in another package (libxml2_python)
"--prefix=#{CREW_PREFIX}", system "./configure #{CREW_OPTIONS} --enable-shared --disable-static --with-pic \
"--libdir=#{CREW_LIB_PREFIX}", --without-python --without-lzma --with-zlib --with-icu --with-threads --with-history"
"--enable-shared", system 'make'
"--disable-static",
"--with-pic",
"--without-python", # libxml2-python built in another package (libxml2_python)
"--without-lzma",
"--with-zlib",
"--with-icu",
"--with-threads",
"--with-history"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end end
def self.check def self.check
# Remove EBCDIC test since it fails. # Remove EBCDIC test since it fails.
# Check https://mail.gnome.org/archives/xml/2010-April/msg00010.html for details. # Check https://mail.gnome.org/archives/xml/2010-April/msg00010.html for details.
system "rm", "test/ebcdic_566012.xml" system 'rm', 'test/ebcdic_566012.xml'
system "make", "check" system 'make', 'check'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
end end
...@@ -3,26 +3,23 @@ require 'package' ...@@ -3,26 +3,23 @@ require 'package'
class Libxml2_python < Package class Libxml2_python < Package
description 'Libxml2 (python module) is the XML C parser and toolkit developed for the Gnome project.' description 'Libxml2 (python module) is the XML C parser and toolkit developed for the Gnome project.'
homepage 'http://xmlsoft.org/' homepage 'http://xmlsoft.org/'
version '2.9.9' version '2.9.10'
source_url 'ftp://xmlsoft.org/libxml2/libxml2-2.9.9.tar.gz' source_url 'ftp://xmlsoft.org/libxml2/libxml2-2.9.10.tar.gz'
source_sha256 '94fb70890143e3c6549f265cee93ec064c80a84c42ad0f23e85ee1fd6540a871' source_sha256 'aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2_python-2.9.9-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2_python-2.9.10-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2_python-2.9.9-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2_python-2.9.10-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2_python-2.9.9-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2_python-2.9.10-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2_python-2.9.9-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2_python-2.9.10-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: '05b9616edf2809cea4bfaa2a0f9b21e8455871e04f9a76f08c5472e25ab655c6', aarch64: 'e4e0785991911d9a84fc6023345fb5bf1195b14ecff7ab32e2f5fc7e03301569',
armv7l: '05b9616edf2809cea4bfaa2a0f9b21e8455871e04f9a76f08c5472e25ab655c6', armv7l: 'e4e0785991911d9a84fc6023345fb5bf1195b14ecff7ab32e2f5fc7e03301569',
i686: '9676158d3071ecd96bd3fc3cb0619dd137efc39b23a8c1d0c4d38990d58223ad', i686: 'cd4f6ebe11023d88de1e9809fbfd4f1e85d4513cb34450dd9d67fa2f55d96f45',
x86_64: '54261947d04449bdeb3af3fd9c60b450fc8237defdee0076d23122786eb05934', x86_64: 'a4e7d5428a898c545a2f97d41454d711224341b93782cc7e1a435c442b952ade',
}) })
depends_on 'python27'
depends_on 'libxml2'
def self.build def self.build
Dir.chdir("python") do Dir.chdir("python") do
system "LDFLAGS=-L#{CREW_LIB_PREFIX} python2 setup.py build" system "LDFLAGS=-L#{CREW_LIB_PREFIX} python2 setup.py build"
...@@ -31,8 +28,7 @@ class Libxml2_python < Package ...@@ -31,8 +28,7 @@ class Libxml2_python < Package
def self.install def self.install
Dir.chdir("python") do Dir.chdir("python") do
system "python2 setup.py install --root=#{CREW_DEST_DIR}" system "python2 setup.py install --prefix=#{CREW_PREFIX} --root=#{CREW_DEST_DIR}"
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment