# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 153521 2016-10-03 23:38:06Z ryandesign@macports.org $ PortSystem 1.0 name ccache version 3.3.2 categories devel platforms darwin freebsd license GPL-3+ maintainers ryandesign openmaintainer description object-file caching compiler wrapper long_description \ ccache is a compiler cache. It acts as a caching pre-processor to C/C++ \ compilers, using the -E compiler switch and a hash to detect when a \ compilation can be satisfied from cache. This often results in a 5 to 10 \ times speedup in common compilations. homepage https://ccache.samba.org/ master_sites https://www.samba.org/ftp/ccache/ use_bzip2 yes checksums rmd160 2cd69ff725299cba13b32d1516dd9e047d702c10 \ sha256 d2b2033ac351f24e754b27984fd7250074b9eb776d2f9ef96913f20bd5475877 depends_lib port:zlib set symlinks_dir ${prefix}/libexec/ccache post-destroot { file mkdir ${destroot}${symlinks_dir} foreach {bin} { cc gcc gcc2 gcc3 gcc-3.3 gcc-4.0 gcc-4.2 c++ c++3 c++-3.3 c++-4.0 c++-4.2 g++ g++2 g++3 g++-3.3 g++-4.0 g++-4.2 } { ln -sf ${prefix}/bin/ccache ${destroot}${symlinks_dir}/${bin} } } conflicts ccache-devel notes "The ccache symlinks are installed in ${symlinks_dir}" livecheck.type regex livecheck.url [lindex ${master_sites} 0] livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}