Xzutils 5.6.4 => 5.8.0 (#11607)

This commit is contained in:
Ed Reel
2025-03-25 18:56:59 -05:00
committed by GitHub
parent 111b0436f1
commit bfb9ad6cc2
4 changed files with 16 additions and 69 deletions

View File

@@ -40,10 +40,9 @@
/usr/local/lib/cmake/liblzma/liblzma-config.cmake
/usr/local/lib/cmake/liblzma/liblzma-targets-release.cmake
/usr/local/lib/cmake/liblzma/liblzma-targets.cmake
/usr/local/lib/liblzma.la
/usr/local/lib/liblzma.so
/usr/local/lib/liblzma.so.5
/usr/local/lib/liblzma.so.5.6.4
/usr/local/lib/liblzma.so.5.8.0
/usr/local/lib/pkgconfig/liblzma.pc
/usr/local/share/doc/xz/AUTHORS
/usr/local/share/doc/xz/COPYING
@@ -74,7 +73,9 @@
/usr/local/share/locale/hr/LC_MESSAGES/xz.mo
/usr/local/share/locale/hu/LC_MESSAGES/xz.mo
/usr/local/share/locale/it/LC_MESSAGES/xz.mo
/usr/local/share/locale/ka/LC_MESSAGES/xz.mo
/usr/local/share/locale/ko/LC_MESSAGES/xz.mo
/usr/local/share/locale/nl/LC_MESSAGES/xz.mo
/usr/local/share/locale/pl/LC_MESSAGES/xz.mo
/usr/local/share/locale/pt/LC_MESSAGES/xz.mo
/usr/local/share/locale/pt_BR/LC_MESSAGES/xz.mo

View File

@@ -42,7 +42,7 @@
/usr/local/lib/cmake/liblzma/liblzma-targets.cmake
/usr/local/lib/liblzma.so
/usr/local/lib/liblzma.so.5
/usr/local/lib/liblzma.so.5.6.4
/usr/local/lib/liblzma.so.5.8.0
/usr/local/lib/pkgconfig/liblzma.pc
/usr/local/share/doc/xz/AUTHORS
/usr/local/share/doc/xz/COPYING
@@ -73,7 +73,9 @@
/usr/local/share/locale/hr/LC_MESSAGES/xz.mo
/usr/local/share/locale/hu/LC_MESSAGES/xz.mo
/usr/local/share/locale/it/LC_MESSAGES/xz.mo
/usr/local/share/locale/ka/LC_MESSAGES/xz.mo
/usr/local/share/locale/ko/LC_MESSAGES/xz.mo
/usr/local/share/locale/nl/LC_MESSAGES/xz.mo
/usr/local/share/locale/pl/LC_MESSAGES/xz.mo
/usr/local/share/locale/pt/LC_MESSAGES/xz.mo
/usr/local/share/locale/pt_BR/LC_MESSAGES/xz.mo

View File

@@ -40,10 +40,9 @@
/usr/local/lib64/cmake/liblzma/liblzma-config.cmake
/usr/local/lib64/cmake/liblzma/liblzma-targets-release.cmake
/usr/local/lib64/cmake/liblzma/liblzma-targets.cmake
/usr/local/lib64/liblzma.la
/usr/local/lib64/liblzma.so
/usr/local/lib64/liblzma.so.5
/usr/local/lib64/liblzma.so.5.6.4
/usr/local/lib64/liblzma.so.5.8.0
/usr/local/lib64/pkgconfig/liblzma.pc
/usr/local/share/doc/xz/AUTHORS
/usr/local/share/doc/xz/COPYING
@@ -74,7 +73,9 @@
/usr/local/share/locale/hr/LC_MESSAGES/xz.mo
/usr/local/share/locale/hu/LC_MESSAGES/xz.mo
/usr/local/share/locale/it/LC_MESSAGES/xz.mo
/usr/local/share/locale/ka/LC_MESSAGES/xz.mo
/usr/local/share/locale/ko/LC_MESSAGES/xz.mo
/usr/local/share/locale/nl/LC_MESSAGES/xz.mo
/usr/local/share/locale/pl/LC_MESSAGES/xz.mo
/usr/local/share/locale/pt/LC_MESSAGES/xz.mo
/usr/local/share/locale/pt_BR/LC_MESSAGES/xz.mo

View File

@@ -3,7 +3,7 @@ require 'buildsystems/cmake'
class Xzutils < CMake
description 'XZ Utils is free general-purpose data compression software with a high compression ratio.'
homepage 'https://tukaani.org/xz/'
version '5.6.4'
version '5.8.0'
license 'GPL-3'
compatibility 'all'
source_url 'https://github.com/tukaani-project/xz.git'
@@ -11,10 +11,10 @@ class Xzutils < CMake
binary_compression 'tar.xz'
binary_sha256({
aarch64: '811264926a82c3d3c35bea0eea363a2557e463491b3b693e228a6b6180f870c1',
armv7l: '811264926a82c3d3c35bea0eea363a2557e463491b3b693e228a6b6180f870c1',
i686: '496b3aba380ab7dc456d2757f27515a7f8c4ed95239e1e2dcb04981379b5ae7d',
x86_64: 'e4684e249214f2d2b021b80f836d2ccbbd937154cfcfb26531c3f2d83c22776c'
aarch64: 'cd847a50db158b318521ac6a45cb4b582f2f4b942c14d1b661c5d9021dc08c59',
armv7l: 'cd847a50db158b318521ac6a45cb4b582f2f4b942c14d1b661c5d9021dc08c59',
i686: '74ee3967f67c75c56f59fc947df096aa52e9e2fe4d4a7a3251381e542098e04d',
x86_64: '504e74934a72987f2db56dd5dc2fb344c09ca538ff574fe409b38daed3d03010'
})
depends_on 'glibc' # R
@@ -22,65 +22,8 @@ class Xzutils < CMake
cmake_options '-DBUILD_SHARED_LIBS=ON'
def self.install
system "DESTDIR=#{CREW_DEST_DIR} #{CREW_NINJA} -C builddir install"
return if ARCH == 'i686'
cmake_install_extras do
# Imagemagick wants a libtool file.
@libname = 'liblzma'
@libnames = Dir["#{CREW_DEST_LIB_PREFIX}/#{@libname}.so*"]
@libnames = Dir["#{CREW_DEST_LIB_PREFIX}/#{@libname}-*.so*"] if @libnames.empty?
@libnames.each do |s|
s.gsub!("#{CREW_DEST_LIB_PREFIX}/", '')
end
@dlname = @libnames.grep(/.so./).first
@dlname = @libnames.grep(/.so/).first if @dlname.nil?
@libname = @dlname.gsub(/.so.\d+/, '')
@longest_libname = @libnames.max_by(&:length)
@libvars = @longest_libname.rpartition('.so.')[2].split('.')
@libtool_file = <<~LIBTOOLEOF
# #{@libname}.la - a libtool library file
# Generated by libtool (GNU libtool) (Created by Chromebrew)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='#{@dlname}'
# Names of this library.
library_names='#{@libnames.reverse.join(' ')}'
# The name of the static archive.
old_library='#{@libname}.a'
# Linker flags that cannot go in dependency_libs.
inherited_linker_flags=''
# Libraries that this one depends upon.
dependency_libs=''
# Names of additional weak libraries provided by this library
weak_library_names=''
# Version information for #{name}.
current=#{@libvars[1]}
age=#{@libvars[1]}
revision=#{@libvars[2]}
# Is this an already installed library?
installed=yes
# Should we warn about portability when linking against -modules?
shouldnotlink=no
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='#{CREW_LIB_PREFIX}'
LIBTOOLEOF
File.write("#{CREW_DEST_LIB_PREFIX}/#{@libname}.la", @libtool_file)
ConvenienceFunctions.libtoolize('liblzma') unless ARCH.include?('i686')
end
end