mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* LLVM => 20.1.1 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Disable build checks for llvm20.x. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add built packages for linux/386 to llvm * Add built packages for linux/amd64 to llvm * Add built packages for linux/arm/v7 to llvm * Add llvm 20.1.1 binaries. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * cleanup Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com>
53 lines
1.8 KiB
Ruby
53 lines
1.8 KiB
Ruby
require 'package'
|
|
Package.load_package("#{__dir__}/llvm20_build.rb")
|
|
|
|
class Llvm20_dev < Package
|
|
description 'LLVM: Everything except libLLVM & llvm-strip'
|
|
homepage Llvm20_build.homepage
|
|
version '20.1.1'
|
|
# When upgrading llvm*_build, be sure to upgrade llvm_lib*, llvm_dev*, libclc, and openmp in tandem.
|
|
puts "#{self} version differs from llvm version #{Llvm20_build.version}".orange if version != Llvm20_build.version
|
|
license Llvm20_build.license
|
|
compatibility 'all'
|
|
source_url 'SKIP'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '6995c9f4e42f1ba519d0b0b9b8a952d5aca7e17466a0cf77f052d0146efb1d81',
|
|
armv7l: '6995c9f4e42f1ba519d0b0b9b8a952d5aca7e17466a0cf77f052d0146efb1d81',
|
|
i686: '98fb4a546e7dfe7d1e70d5c1bd4c4bc103340532d2251527472825053bf5cc61',
|
|
x86_64: '15e2076236e799e5ac6ff836a57a13ee2e0ca7c90c413d3ce5849865eb81e4de'
|
|
})
|
|
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'libedit' # R
|
|
depends_on 'libxml2' # R
|
|
depends_on 'llvm20_build' => :build
|
|
depends_on 'llvm20_lib' # R
|
|
depends_on 'xzutils' # R
|
|
depends_on 'zlib' # R
|
|
depends_on 'zstd' # R
|
|
|
|
conflicts_ok
|
|
no_shrink
|
|
no_source_build
|
|
no_strip
|
|
|
|
def self.install
|
|
puts 'Installing llvm20_build to pull files for build...'.lightblue
|
|
@filelist_path = File.join(CREW_META_PATH, 'llvm20_build.filelist')
|
|
abort 'File list for llvm20_build does not exist!'.lightred unless File.file?(@filelist_path)
|
|
@filelist = File.readlines(@filelist_path, chomp: true).sort
|
|
|
|
@filelist.each do |filename|
|
|
next if filename.include?('.so') && filename.include?('libLLVM')
|
|
next if filename.include?('llvm-strip')
|
|
|
|
@destpath = File.join(CREW_DEST_DIR, filename)
|
|
@filename_target = File.realpath(filename)
|
|
FileUtils.install @filename_target, @destpath
|
|
end
|
|
end
|
|
end
|