mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* mpfr => 4.2.2 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add built packages for linux/386 to gcc15 * Add built packages for linux/amd64 to gcc15 * Add built packages for linux/arm/v7 to gcc15 * update dejagnu Signed-off-by: Satadru Pramanik <satadru@gmail.com> * change binary_compression Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add built packages for linux/386 to gcc15 * Add built packages for linux/amd64 to gcc15 * Add built packages for linux/arm/v7 to gcc15 * ccache => 4.11.2 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add built packages for linux/386 to gcc15 * Add built packages for linux/amd64 to gcc15 * Add built packages for linux/arm/v7 to gcc15 --------- 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>
55 lines
1.8 KiB
Ruby
55 lines
1.8 KiB
Ruby
require 'buildsystems/cmake'
|
|
|
|
class Ccache < CMake
|
|
description 'Compiler cache that speeds up recompilation by caching previous compilations'
|
|
homepage 'https://ccache.dev/'
|
|
version '4.11.2'
|
|
license 'GPL-3 and LGPL-3'
|
|
compatibility 'all'
|
|
source_url "https://github.com/ccache/ccache/releases/download/v#{version}/ccache-#{version}.tar.xz"
|
|
source_sha256 '4c03bc840699127d16c3f0e6112e3f40ce6a230d5873daa78c60a59c7ef59d25'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: 'cac900b71fb8354f7e8adc6e36420401aae243e279a3e8ab17819060ad108fc7',
|
|
armv7l: 'cac900b71fb8354f7e8adc6e36420401aae243e279a3e8ab17819060ad108fc7',
|
|
i686: 'ddf610925c50eafff18c135d39a258a39e3e18b71ea05409a2fa1b1b3bcab3fa',
|
|
x86_64: 'b552cf0369392abef457ee8327e0f12889e1103f226227e5af0c6232505343e5'
|
|
})
|
|
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'ruby_asciidoctor' => :build
|
|
depends_on 'xdg_base'
|
|
depends_on 'xxhash' # R
|
|
depends_on 'zstd' # R
|
|
|
|
print_source_bashrc
|
|
|
|
cmake_options "-DCMAKE_INSTALL_SYSCONFDIR=#{CREW_PREFIX}/etc \
|
|
-DENABLE_IPO=ON \
|
|
-DENABLE_TESTING=OFF \
|
|
-DZSTD_FROM_INTERNET=OFF \
|
|
-DHIREDIS_FROM_INTERNET=ON"
|
|
|
|
def self.install
|
|
system "DESTDIR=#{CREW_DEST_DIR} #{CREW_NINJA} -C builddir install"
|
|
FileUtils.mkdir_p "#{CREW_DEST_LIB_PREFIX}/ccache/bin"
|
|
Dir.chdir "#{CREW_DEST_LIB_PREFIX}/ccache/bin" do
|
|
%w[gcc g++ c++].each do |bin|
|
|
FileUtils.ln_s '../../../bin/ccache', bin
|
|
end
|
|
%w[cc clang clang++].each do |bin|
|
|
FileUtils.ln_s '../../../bin/ccache', bin
|
|
end
|
|
end
|
|
File.write 'ccache_env', <<~CCACHEEOF
|
|
# ccache configuration
|
|
if [[ $PATH != *"ccache/bin"* ]]; then
|
|
PATH="#{CREW_LIB_PREFIX}/ccache/bin:$PATH"
|
|
fi
|
|
CCACHEEOF
|
|
FileUtils.install 'ccache_env', "#{CREW_DEST_PREFIX}/etc/env.d/00-ccache", mode: 0o644
|
|
end
|
|
end
|