Files
chromebrew/packages/py3_libxml2.rb
Satadru Pramanik, DO, MPH, MEng fc08f3c26c Do not reinstall from source on gem upgrades when a built gem is available. — py3_libxml2 → 2.15.1 (#13158)
* Do not reinstall from source on gem upgrades when a built gem is available.

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

* Fix py3_libxml2 build.

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

* Document changes in-line.

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

* libxml2: Package File Update Run on linux/386 container.

* Allow def archive to overwrite output file.

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

* libxml2: Package File Update Run on linux/arm/v7 container.

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
2025-10-17 17:37:56 +00:00

35 lines
1.2 KiB
Ruby

require 'buildsystems/meson'
Package.load_package("#{__dir__}/libxml2.rb")
class Py3_libxml2 < Meson
description 'Libxml2-python provides access to libxml2 and libxslt in Python.'
homepage 'https://gitlab.gnome.org/GNOME/libxml2/'
version "#{Libxml2.version}-#{CREW_PY_VER}"
license 'MIT'
compatibility 'all'
source_url Libxml2.source_url
git_hashtag Libxml2.git_hashtag
binary_compression 'tar.zst'
binary_sha256({
aarch64: '895baa31f28448f33d4718a9344f6a6f76f776cbbc61dbfc1cada50c4ecc8f09',
armv7l: '895baa31f28448f33d4718a9344f6a6f76f776cbbc61dbfc1cada50c4ecc8f09',
i686: 'a4f2a5578ede036fb088af2c14b1afcc133e294d45aa3ec16793d232359cddac',
x86_64: '306e60eeebba8b24bb040362608e1479fc25f1ec7c838313280d850915d95e16'
})
depends_on 'glibc' # R
depends_on 'libxml2' # R
depends_on 'py3_setuptools' => :build
depends_on 'python3' # R
no_fhs
meson_options '-Dpython=enabled'
meson_install_extras do
FileUtils.rm(Dir.glob("#{CREW_DEST_PREFIX}/**/*").reject { |f| f.include?(CREW_PY_VER.sub('py', 'python')) || !File.file?(f) })
# Delete remaining empty dirs.
Dir["#{CREW_DEST_PREFIX}**/"].reverse_each { |d| Dir.rmdir d if Dir.empty?(d) }
end
end