Files
chromebrew/packages/yajl.rb
Satadru Pramanik, DO, MPH, MEng 9cb087928e Boost => 1.82, Gimp => 2.99.16 & deps (#8467)
* update gnulib_git and babl

* icu4c => 73.2

* update boost

* rebuild source_highlight

* update mold

* rebuild cppunit

* update libgpgerror

* update taglib

* update libgcrypt

* rebuild librevenge

* update gnupg, rebuild yajl, grive

* update exempi, rebuild libvisio

* update poppler

* rebuild eigen libcdr

* update gegl

* swig rebuild

* update tcpflow, ledger

* update gdb, rebuild libtorrent

* update gimp

* rebuild inkscape

* rebuild binutils with gdb fallback

* gimp rebuild
2023-07-11 21:08:04 -05:00

49 lines
2.0 KiB
Ruby

require 'package'
class Yajl < Package
description 'A fast streaming JSON parsing library in C.'
homepage 'http://lloyd.github.io/yajl/'
version '2.1.0-4'
license 'ISC'
compatibility 'all'
source_url 'https://github.com/lloyd/yajl/archive/refs/tags/2.1.0.tar.gz'
source_sha256 '3fb73364a5a30efe615046d07e6db9d09fd2b41c763c5f7d3bfb121cd5c5ac5a'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/yajl/2.1.0-4_armv7l/yajl-2.1.0-4-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/yajl/2.1.0-4_armv7l/yajl-2.1.0-4-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/yajl/2.1.0-4_i686/yajl-2.1.0-4-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/yajl/2.1.0-4_x86_64/yajl-2.1.0-4-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: 'be4e182188a8f042b65865dae2af1dd1312d6a2c0edfd9cb8da75999927ee174',
armv7l: 'be4e182188a8f042b65865dae2af1dd1312d6a2c0edfd9cb8da75999927ee174',
i686: 'cd4f672d43eba7368b08e4d0a71baf40daa5562ae789e3150ff941293e6fb64e',
x86_64: 'efea10c9cbb546dd9e5877047299b3d76c78ea106a10484bdeb0e062e49222c2'
})
depends_on 'glibc' # R
def self.patch
# Fix CVE-2022-24795
downloader 'https://patch-diff.githubusercontent.com/raw/lloyd/yajl/pull/242.patch',
'28cf573e61ad5d442dc3ea23912e1d1a3a714c6f20a647304fbd5a886b457f29'
system 'patch -Np1 -i 242.patch'
# Fixes incorrect lower bound for integers
downloader 'https://patch-diff.githubusercontent.com/raw/lloyd/yajl/pull/251.patch',
'24b6928e87f388f633b51b98025c15ca6cd40c4cd388278cbb98bd06c64be719'
system 'patch -Np1 -i 251.patch'
end
def self.build
system "cmake -B builddir -G Ninja \
#{CREW_CMAKE_LIBSUFFIX_OPTIONS} \
-Wno-dev"
system "#{CREW_NINJA} -C builddir"
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} #{CREW_NINJA} -C builddir install"
end
end