mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-07 22:54:11 -05:00
* crew; Include file size in file list Signed-off-by: SupeChicken666 <supechicken666@gmail.com> * Bump version Signed-off-by: SupeChicken666 <supechicken666@gmail.com> * Use `.grep` instead of `.reject` Signed-off-by: SupeChicken666 <supechicken666@gmail.com> * Bump version Signed-off-by: SupeChicken666 <supechicken666@gmail.com> --------- Signed-off-by: SupeChicken666 <supechicken666@gmail.com> Co-authored-by: Satadru Pramanik, DO, MPH, MEng <satadru@gmail.com>
50 lines
1.7 KiB
Ruby
50 lines
1.7 KiB
Ruby
require 'package'
|
|
Package.load_package("#{__dir__}/llvm17_build.rb")
|
|
|
|
class Llvm17_lib < Package
|
|
description 'LibLLVM and llvm-strip'
|
|
homepage Llvm17_build.homepage
|
|
version '17.0.6'
|
|
# When upgrading llvm_build*, be sure to upgrade llvm_lib* and llvm_dev* in tandem.
|
|
puts "#{self} version differs from llvm version #{Llvm17_build.version}".orange if version != Llvm17_build.version
|
|
license Llvm17_build.license
|
|
compatibility 'all'
|
|
source_url 'SKIP'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '1b851977336e8c48ca985aad78b3e71d514d6eef75195da0bd1eae614678655e',
|
|
armv7l: '1b851977336e8c48ca985aad78b3e71d514d6eef75195da0bd1eae614678655e',
|
|
i686: 'f47a87bcc8a967588ac58f3a1cb8dd04cf99a87609c25f89b37c36e175d88935',
|
|
x86_64: '044eda04df56f53738d5dbd22aadbc4d22d2d06e3efa0dea6bb86e1887a913b5'
|
|
})
|
|
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'libedit' # R
|
|
depends_on 'libffi' # R
|
|
depends_on 'libxml2' # R
|
|
depends_on 'llvm17_build' => :build
|
|
depends_on 'ncurses' # R
|
|
depends_on 'zlib' # R
|
|
depends_on 'zstd' # R
|
|
|
|
no_shrink
|
|
no_strip
|
|
|
|
def self.install
|
|
puts 'Installing llvm17_build to pull files for build...'.lightblue
|
|
@filelist_path = File.join(CREW_META_PATH, 'llvm17_build.filelist')
|
|
abort 'File list for llvm17_build does not exist!'.lightred unless File.file?(@filelist_path)
|
|
@filelist = File.readlines(@filelist_path, chomp: true).grep(/^(?!#)/)
|
|
|
|
@filelist.each do |filename|
|
|
next unless (filename.include?('.so') && filename.include?('libLLVM')) || filename.include?('llvm-strip')
|
|
|
|
@destpath = File.join(CREW_DEST_DIR, filename)
|
|
@filename_target = File.realpath(filename)
|
|
FileUtils.install @filename_target, @destpath
|
|
end
|
|
end
|
|
end
|