updater-vapoursynth-R72 — graphicsmagick → 1.3.45,vapoursynth → R72,xzutils → 5.8.1-3,zimg → 3.0.6 (#12480)

* Add unbuilt vapoursynth to updater-vapoursynth-R72

* Adjust graphicsmagick build.

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

* Update zimg, add graphicsmagick builds, add vapoursynth builds, update libtoolize function.

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

* updater-vim-9.1.1634 — gvim → 9.1.1634,vim → 9.1.1634,vim_runtime → 9.1.1634,xxd_standalone → 9.1.1634 (#12471)

* Add unbuilt vim to updater-vim-9.1.1634

* updater-vim-9.1.1634: Build Run on linux/arm/v7.

* updater-vim-9.1.1634: Build Run on linux/amd64.

* updater-vim-9.1.1634: Build Run on linux/386.

* updater-vim-9.1.1634: Package File Update Run on linux/386 container.

* Add ignore_updater to package.rb, and let version.rb use that to ignore packages during updates.

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

* Rebuild vim packages.

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

* Adjust PR title arrows.

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

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>

* lint

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

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: chromebrew-actions[bot] <220035932+chromebrew-actions[bot]@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
This commit is contained in:
chromebrew-actions[bot]
2025-08-15 15:05:58 -05:00
committed by GitHub
parent be43a62061
commit eb0f7ce583
11 changed files with 71 additions and 140 deletions

View File

@@ -4,7 +4,7 @@ require 'etc'
require 'open3'
OLD_CREW_VERSION ||= defined?(CREW_VERSION) ? CREW_VERSION : '1.0'
CREW_VERSION ||= '1.64.6' unless defined?(CREW_VERSION) && CREW_VERSION == OLD_CREW_VERSION
CREW_VERSION ||= '1.64.7' unless defined?(CREW_VERSION) && CREW_VERSION == OLD_CREW_VERSION
# Kernel architecture.
KERN_ARCH ||= Etc.uname[:machine]
@@ -194,7 +194,8 @@ unless defined?(CREW_ANITYA_PACKAGE_NAME_MAPPINGS)
{ pkg_name: 'signal_desktop', anitya_pkg: 'signal', comments: '' },
{ pkg_name: 'vim_runtime', anitya_pkg: 'vim', comments: '' },
{ pkg_name: 'webkitgtk_6', anitya_pkg: 'webkitgtk~stable', comments: '' },
{ pkg_name: 'xauth', anitya_pkg: 'xorg-x11-xauth', comments: '' }
{ pkg_name: 'xauth', anitya_pkg: 'xorg-x11-xauth', comments: '' },
{ pkg_name: 'zimg', anitya_pkg: 'zimg', comments: 'Prefer to Github' }
].to_h { |h| [h[:pkg_name], h[:anitya_pkg]] }
end

View File

@@ -55,7 +55,8 @@ class ConvenienceFunctions
FileUtils.cp("#{CREW_CONFIG_PATH}/device.json.tmp", File.join(CREW_CONFIG_PATH, 'device.json')) && FileUtils.rm("#{CREW_CONFIG_PATH}/device.json.tmp")
end
def self.libtoolize(library, lib_pkg_name = nil)
def self.libtoolize(library, lib_pkg_name = nil, install_dest = nil)
install_dest = false if install_dest.nil?
lib_pkg_name = library if lib_pkg_name.nil?
libname = library.to_s.start_with?('lib') ? library.downcase : "lib#{library.downcase}"
puts "Generating libtool file for #{lib_pkg_name}".orange
@@ -113,8 +114,11 @@ class ConvenienceFunctions
# Directory that this library needs to be installed in:
libdir='#{CREW_LIB_PREFIX}'
LIBTOOLEOF
File.write("#{CREW_LIB_PREFIX}/#{libname}.la", libtool_file)
puts "Generated #{CREW_LIB_PREFIX}/#{libname}.la..."
File.write("#{libname}.la", libtool_file)
%W[#{CREW_LIB_PREFIX}/#{libname}.la #{"#{CREW_DEST_LIB_PREFIX}/#{libname}.la" if install_dest}].reject(&:blank?).each do |lib|
FileUtils.install "#{libname}.la", lib, mode: 0o755
puts "Generated #{lib}..."
end
end
def self.patch(patch_array = [])

View File

@@ -14,5 +14,5 @@
/usr/local/lib/libvapoursynth.so
/usr/local/lib/pkgconfig/vapoursynth-script.pc
/usr/local/lib/pkgconfig/vapoursynth.pc
/usr/local/lib/python3.12/site-packages/vapoursynth.la
/usr/local/lib/python3.12/site-packages/vapoursynth.so
/usr/local/lib/python3.13/site-packages/vapoursynth.la
/usr/local/lib/python3.13/site-packages/vapoursynth.so

View File

@@ -40,6 +40,7 @@
/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.8.1

View File

@@ -40,6 +40,7 @@
/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.8.1

View File

@@ -14,5 +14,5 @@
/usr/local/lib64/libvapoursynth.so
/usr/local/lib64/pkgconfig/vapoursynth-script.pc
/usr/local/lib64/pkgconfig/vapoursynth.pc
/usr/local/lib64/python3.12/site-packages/vapoursynth.la
/usr/local/lib64/python3.12/site-packages/vapoursynth.so
/usr/local/lib64/python3.13/site-packages/vapoursynth.la
/usr/local/lib64/python3.13/site-packages/vapoursynth.so

View File

@@ -40,6 +40,7 @@
/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.8.1

View File

@@ -1,56 +1,53 @@
require 'package'
require 'buildsystems/autotools'
class Graphicsmagick < Package
class Graphicsmagick < Autotools
description 'GraphicsMagick is the swiss army knife of image processing.'
homepage 'http://www.graphicsmagick.org/'
version "1.3.45-#{CREW_ICU_VER}"
license 'MIT'
compatibility 'all'
min_glibc (%w[x86_64 aarch64 armv7l].include?(ARCH) ? '2.37' : '2.23').to_s
source_url 'https://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/1.3.45/GraphicsMagick-1.3.45.tar.xz'
# min_glibc (%w[x86_64 aarch64 armv7l].include?(ARCH) ? '2.37' : '2.23').to_s
source_url "https://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/#{version.split('-').first}/GraphicsMagick-#{version.split('-').first}.tar.xz"
source_sha256 'dcea5167414f7c805557de2d7a47a9b3147bcbf617b91f5f0f4afe5e6543026b'
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'd43124fbe8d5b9d83baee6a6f414de0cfebf3c8ece98b988bb1e4b15af70bb7d',
armv7l: 'd43124fbe8d5b9d83baee6a6f414de0cfebf3c8ece98b988bb1e4b15af70bb7d',
i686: '3e03732df5107a6c8617b785baae64d477ead57553087fafa31de0822d7f06fc',
x86_64: '36081e952cf6c73855cf4b59770bf5b89ecfed1fe9f4f9a16105d8ebbd5b8113'
aarch64: 'd8948d929ef544c55b419425c1b4a31241dd08158d92d736cc4cfa07df1a3a3d',
armv7l: 'd8948d929ef544c55b419425c1b4a31241dd08158d92d736cc4cfa07df1a3a3d',
i686: '89c7656ef19583db7f87dd2c9720804151f3692f2c45bfc5f8357b642318195e',
x86_64: 'e1613ff13635028ab6c927514f76de9dde3f1fce602c5765b431d6ba2857b43e'
})
if %w[x86_64 aarch64 armv7l].include?(ARCH)
depends_on 'freetype'
depends_on 'ghostscript'
depends_on 'harfbuzz'
depends_on 'jasper'
depends_on 'libde265'
depends_on 'freetype' # R
depends_on 'ghostscript' => :build
depends_on 'harfbuzz' => :build
depends_on 'jasper' # R
depends_on 'libbsd' # R
depends_on 'libde265' => :build
depends_on 'libdeflate' # R
depends_on 'libheif'
depends_on 'libjxl'
depends_on 'libsm'
depends_on 'libwebp'
depends_on 'libwmf'
depends_on 'libx11'
depends_on 'libxext'
depends_on 'libheif' # R
depends_on 'libice' # R
depends_on 'libjxl' # R
depends_on 'libsm' # R
depends_on 'libwebp' # R
depends_on 'libwmf' # R
depends_on 'libx11' # R
depends_on 'libxau' # R
depends_on 'libxcb' # R
depends_on 'libxdmcp' # R
depends_on 'libxext' # R
end
depends_on 'brotli' # R
depends_on 'py3_docutils' => :build
depends_on 'bzip2' # R
depends_on 'gcc_lib' # R
depends_on 'glibc' # R
depends_on 'highway' # R
depends_on 'icu4c' # R
depends_on 'jbigkit' # R
depends_on 'lcms' # R
depends_on 'libbsd' # R
depends_on 'libice' # R
depends_on 'libjpeg_turbo' # R
depends_on 'libmd' # R
depends_on 'libpng' # R
depends_on 'libtiff' # R
depends_on 'libtool' # R
depends_on 'libxau' # R
depends_on 'libxcb' # R
depends_on 'libxdmcp' # R
depends_on 'libxml2' # R
depends_on 'msttcorefonts' # L
depends_on 'py3_docutils' => :build
@@ -61,68 +58,7 @@ class Graphicsmagick < Package
no_env_options
def self.prebuild
# Imagemagick wants a libtool file.
@libname = 'liblzma'
@libnames = Dir["#{CREW_LIB_PREFIX}/#{@libname}.so*"]
@libnames = Dir["#{CREW_LIB_PREFIX}/#{@libname}-*.so*"] if @libnames.empty?
@libnames.each do |s|
s.gsub!("#{CREW_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_LIB_PREFIX}/#{@libname}.la", @libtool_file) unless File.file?("#{CREW_LIB_PREFIX}/#{@libname}.la")
end
def self.build
system "#{CREW_ENV_OPTIONS.gsub('-mfpu=vfpv3-d16', '-mfpu=neon-fp16')} ./configure #{CREW_CONFIGURE_OPTIONS} \
--with-windows-font-dir=#{CREW_PREFIX}/share/fonts/truetype/msttcorefonts \
autotools_configure_options "--with-windows-font-dir=#{CREW_PREFIX}/share/fonts/truetype/msttcorefonts \
--with-perl=#{CREW_PREFIX}/bin/perl \
--disable-maintainer-mode \
--enable-magick-compat \
@@ -132,10 +68,9 @@ class Graphicsmagick < Package
--with-perl \
#{'--with-x' if %w[x86_64 aarch64 armv7l].include?(ARCH)} \
--with-xml"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
def self.prebuild
ConvenienceFunctions.libtoolize('jbig', 'jbigkit')
ConvenienceFunctions.libtoolize('lzma', 'xzutils')
end
end

View File

@@ -6,17 +6,17 @@ require 'buildsystems/autotools'
class Vapoursynth < Autotools
description 'A video processing framework with the future in mind'
homepage 'http://www.vapoursynth.com/'
version 'R65'
license ' LGPL-2.1'
version 'R72'
license 'LGPL-2.1'
compatibility 'aarch64 armv7l x86_64'
source_url 'https://github.com/vapoursynth/vapoursynth.git'
git_hashtag version
binary_compression 'tar.zst'
binary_sha256({
aarch64: '568a8c6a29d77173b9b12e83658589cc828829f9d55d27f313832fd5a99ce55a',
armv7l: '568a8c6a29d77173b9b12e83658589cc828829f9d55d27f313832fd5a99ce55a',
x86_64: '51bf407bc0ec1e0a731fce3f3ade991ec6fb4a13fe00f7b15afda0838dd42a03'
aarch64: 'aa2f7446128d41bedab5a6262f7cb323a8cc2806bda29d810d3193ee3aadc693',
armv7l: 'aa2f7446128d41bedab5a6262f7cb323a8cc2806bda29d810d3193ee3aadc693',
x86_64: '480b057b066c2d79029c756e3294f1416a7af139f65e8abe87cd8986049c6d7d'
})
depends_on 'ffmpeg' => :build

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.8.1-2'
version '5.8.1-3'
license 'GPL-3'
compatibility 'all'
source_url 'https://github.com/tukaani-project/xz.git'
@@ -11,10 +11,10 @@ class Xzutils < CMake
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'cef7b6df2ba1728b248c381f56a4470bc5be92ec2c0157b2a36326cd54e9a3b3',
armv7l: 'cef7b6df2ba1728b248c381f56a4470bc5be92ec2c0157b2a36326cd54e9a3b3',
i686: '6ec959488f90d26917af4febe7cbcd83d45ccff5bf7538039a46e6f2a38a0c10',
x86_64: '179b01283ba1bc429bb8a76ffb291aa0f758dbeb308ad7e6a774211229c49e9a'
aarch64: '704d9231ca3a3aacf710b32049d9e96e5efcd6afc4446c2f7d73ca7efe177f2c',
armv7l: '704d9231ca3a3aacf710b32049d9e96e5efcd6afc4446c2f7d73ca7efe177f2c',
i686: '6135be59adfa169b7517a731ae532841999b26cb44acd77bb153e400c6d574fd',
x86_64: '11efc5d59ab7b1c7acdef3c0bf7f4ebb89129bddef7fd753169d6468c6b07ec7'
})
depends_on 'glibc' # R
@@ -22,7 +22,7 @@ class Xzutils < CMake
cmake_options '-DBUILD_SHARED_LIBS=ON'
cmake_install_extras do
# Imagemagick wants a libtool file.
ConvenienceFunctions.libtoolize('liblzma') unless ARCH.include?('i686')
# Imagemagick & Graphicsmagick want a libtool file.
ConvenienceFunctions.libtoolize('lzma', 'xzutils', true)
end
end

View File

@@ -1,34 +1,22 @@
require 'package'
require 'buildsystems/autotools'
class Zimg < Package
class Zimg < Autotools
description 'Scaling, colorspace conversion, and dithering library'
homepage 'https://github.com/sekrit-twc/zimg'
version '3.0.1'
version '3.0.6'
license 'WTFPL-2'
compatibility 'all'
source_url "https://github.com/sekrit-twc/zimg/archive/release-#{version}.tar.gz"
source_sha256 'c50a0922f4adac4efad77427d13520ed89b8366eef0ef2fa379572951afcc73f'
binary_compression 'tar.xz'
source_url 'https://github.com/sekrit-twc/zimg.git'
git_hashtag "release-#{version}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'c94a5d596cdc50049c842d01603a1facb61eab365f359c260c1ea4a3b19635e6',
armv7l: 'c94a5d596cdc50049c842d01603a1facb61eab365f359c260c1ea4a3b19635e6',
i686: '3fa552e994ef9e26ed7668c90b5f7b6dcfac935530a4d219bb4f43f37e6ab43e',
x86_64: 'b9aac8627b714d48e9d46a63a674e173f53ee4f4e74834b3141fcdfe94cf0f84'
aarch64: '661533557540a229d13509748d50659e94cfd18b372826f99a10a0c939045938',
armv7l: '661533557540a229d13509748d50659e94cfd18b372826f99a10a0c939045938',
i686: '540c06559d4af3a1eedbc10d4e660d6a1b123a1062ab3c57f58da79a0b96fb5f',
x86_64: 'b84d0eee8ecb1b8a3e7c502a7fae47a663dbabbf4709a4515013303d9984be7b'
})
@lto = ARCH == 'i686' || ARCH == 'x86_64' ? '-flto=auto' : ''
def self.build
system '[ -x configure ] || ./autogen.sh'
system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE #{@lto}' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE #{@lto}' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE #{@lto}' \
./configure #{CREW_CONFIGURE_OPTIONS}"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
depends_on 'gcc_lib' # R
depends_on 'glibc' # R
end