# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later DESCRIPTION="ccache is a fast compiler cache. It is used as a front end to your compiler to safely cache compilation output. When the same code is compiled again the cached output is used giving a significant speedup." SRC_URI="http://ccache.samba.org/ftp/ccache/${P}.tar.gz" HOMEPAGE="http://ccache.samba.org/" src_compile() { ./configure \ --prefix=${D}/usr || die make || die } src_install () { dobin ccache doman ccache.1 dodoc COPYING README } pkg_config () { mkdir /tmp/ccache echo "CCACHE_DIR=/tmp/ccache" > /etc/env.d/99ccache env-update export CCACHE_DIR="/tmp/ccache" ccache -M 1G ln -s /usr/bin/ccache /bin/c++ ln -s /usr/bin/ccache /bin/cc ln -s /usr/bin/ccache /bin/g++ ln -s /usr/bin/ccache /bin/gcc ln -s /usr/bin/ccache /bin/i686-pc-linux-gnu-c++ ln -s /usr/bin/ccache /bin/i686-pc-linux-gnu-g++ ln -s /usr/bin/ccache /bin/i686-pc-linux-gnu-gcc }