Magellan Linux

Contents of /branches/magellan-next/extras/ccache/ccache-2.4-r9.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8014 - (show annotations) (download)
Tue Jun 28 21:20:45 2011 UTC (12 years, 10 months ago) by niro
File size: 1757 byte(s)
import
1 # $Id$
2
3 PNAME="ccache"
4 PVER="2.4"
5 PBUILD="r9"
6
7 PCATEGORIE="dev-util"
8 STATE="unstable"
9
10 DESCRIPTION="ccache is a caching pre-processor for C/C++ compilers."
11 HOMEPAGE="http://ccache.samba.org/"
12
13 DEPEND=">= virtual/glibc"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mbuild mtools
19
20 SRC_URI=(
21 http://samba.org/ftp/${PNAME}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/ccache-config
24 )
25
26 UP2DATE="updatecmd ${HOMEPAGE} | grep latest | sed 's/.* \(.*\)\./\1/;q'"
27
28 src_install()
29 {
30 cd ${SRCDIR}
31
32 # special needed directories
33 mkeepdir /usr/$(mlibdir)/ccache/bin || die
34 mkeepdir /root/.ccache || die
35 mchmod 0700 /root/.ccache || die
36
37 # bins
38 minstallexec ccache || die
39 minstallexec -s ccache-config || die
40
41 # fix libdir on 64bit arches
42 if [[ $(mlibdir) != lib ]]
43 then
44 sed -i "s:/usr/lib/ccache:/usr/$(mlibdir)/ccache:g" \
45 ${BINDIR}/usr/bin/ccache-config || die
46 fi
47
48 # man
49 minstallman ccache.1 || die
50
51 # docs
52 minstalldocs README || die
53 minstallhtml web/*.html || die
54 }
55
56 postinstall()
57 {
58 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
59 then
60 echo "Setting up ccache with system compiler ..."
61 /usr/bin/ccache-config --install-links
62 /usr/bin/ccache-config --install-links ${CHOST}
63 else
64 echo "Please enter chroot of ${MROOT} and run:"
65 echo " /usr/bin/ccache-config --install-links"
66 echo " /usr/bin/ccache-config --install-links ${CHOST}"
67 echo "to complete the installation."
68 fi
69
70 echo
71 echo "Please setup your maximum compiler cache."
72 echo "This sets up a cache with 2GB space:"
73 echo " 'ccache -M 2G'"
74 echo
75 echo "To use ccache with smage, edit your /etc/mage.conf"
76 echo "and add 'SMAGE_USE_CCACHE=true'."
77 echo "Be sure that your mage version is not prior >= mage-0.3.6-r6."
78 echo
79 }

Properties

Name Value
svn:keywords Id