Contents of /smage/trunk/extras/ccache/ccache-2.4-r7.smage2
Parent Directory
|
Revision Log
Revision 3 -
(show annotations)
(download)
Sun Jan 11 00:48:53 2009 UTC (15 years, 5 months ago) by niro
File size: 1777 byte(s)
Sun Jan 11 00:48:53 2009 UTC (15 years, 5 months ago) by niro
File size: 1777 byte(s)
-import alx-0.9.0
1 | # $Header: /alx-cvs/smage-eglibc/ccache/ccache-2.4-r7.smage2,v 1.1 2008/08/24 13:07:04 niro Exp $ |
2 | |
3 | PNAME="ccache" |
4 | PVER="2.4" |
5 | PBUILD="r7" |
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 alx |
19 | |
20 | SRC_URI=( |
21 | http://samba.org/ftp/${PNAME}/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/ccache-config |
24 | ) |
25 | |
26 | src_install() |
27 | { |
28 | cd ${SRCDIR} |
29 | |
30 | # special needed directories |
31 | mkeepdir /usr/$(mlibdir)/ccache/bin || die |
32 | mkeepdir /root/.ccache || die |
33 | mchmod 0700 /root/.ccache || die |
34 | |
35 | # bins |
36 | minstallexec ccache || die |
37 | minstallexec -s ccache-config || die |
38 | |
39 | # fix libdir on 64bit arches |
40 | if [[ $(mlibdir) != lib ]] |
41 | then |
42 | sed -i "s:/usr/lib/ccache:/usr/$(mlibdir)/ccache:g" \ |
43 | ${BINDIR}/usr/bin/ccache-config || die |
44 | fi |
45 | |
46 | # man |
47 | minstallman ccache.1 || die |
48 | |
49 | # docs |
50 | minstalldocs README || die |
51 | minstallhtml web/*.html || die |
52 | } |
53 | |
54 | postinstall() |
55 | { |
56 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
57 | then |
58 | echo "Setting up ccache with system compiler ..." |
59 | /usr/bin/ccache-config --install-links |
60 | /usr/bin/ccache-config --install-links ${CHOST} |
61 | else |
62 | echo "Please enter chroot of ${MROOT} and run:" |
63 | echo " /usr/bin/ccache-config --install-links" |
64 | echo " /usr/bin/ccache-config --install-links ${CHOST}" |
65 | echo "to complete the installation." |
66 | fi |
67 | |
68 | echo |
69 | echo "Please setup your maximum compiler cache." |
70 | echo "This sets up a cache with 2GB space:" |
71 | echo " 'ccache -M 2G'" |
72 | echo |
73 | echo "To use ccache with smage, edit your /etc/mage.conf" |
74 | echo "and add 'SMAGE_USE_CCACHE=true'." |
75 | echo "Be sure that your mage version is not prior >= mage-0.3.6-r6." |
76 | echo |
77 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |