mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
* Add unbuilt ldc to updater-ldc-1.41.0 * Adjust builder. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * updater-ldc-1.41.0: Package File Update Run on linux/amd64 container. --------- 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>
36 lines
1.2 KiB
Ruby
36 lines
1.2 KiB
Ruby
require 'package'
|
|
|
|
class Ldc < Package
|
|
description 'D language compiler using LLVM.'
|
|
homepage 'https://github.com/ldc-developers/ldc'
|
|
version '1.41.0'
|
|
license 'BSD-3, Boost-1.0, MIT, NCSA and Artistic-1.0 or GPL-2+'
|
|
compatibility 'x86_64'
|
|
min_glibc '2.29'
|
|
source_url "https://github.com/ldc-developers/ldc/releases/download/v#{version}/ldc2-#{version}-linux-x86_64.tar.xz"
|
|
source_sha256 '4a439457f0fe59e69d02fd6b57549fc3c87ad0f55ad9fb9e42507b6f8e327c8f'
|
|
|
|
depends_on 'curl'
|
|
depends_on 'ncurses'
|
|
depends_on 'zlib'
|
|
|
|
no_compile_needed
|
|
no_shrink
|
|
print_source_bashrc
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p CREW_DEST_LIB_PREFIX
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/bash.d"
|
|
FileUtils.rm Dir['lib/*.o', 'lib/*.a']
|
|
Dir['lib/*'].each do |lib|
|
|
FileUtils.install lib, CREW_DEST_LIB_PREFIX, mode: 0o644
|
|
end
|
|
Dir['bin/*'].each do |bin|
|
|
FileUtils.install bin, "#{CREW_DEST_PREFIX}/bin", mode: 0o755
|
|
end
|
|
FileUtils.install 'etc/ldc2.conf', "#{CREW_DEST_PREFIX}/etc", mode: 0o644
|
|
FileUtils.install 'etc/bash_completion.d/ldc2', "#{CREW_DEST_PREFIX}/etc/bash.d", mode: 0o644
|
|
end
|
|
end
|