Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/ccache: ChangeLog ccache-2.4-r8.ebuild
Date: Tue, 30 Sep 2008 06:39:54
Message-Id: E1KkYti-0007C7-PK@stork.gentoo.org
1 robbat2 08/09/30 06:39:50
2
3 Modified: ChangeLog
4 Added: ccache-2.4-r8.ebuild
5 Log:
6 Exclude any use of -fprofile* from ccache storage, per bug #204810.
7 (Portage version: 2.2_rc11/cvs/Linux 2.6.27-rc1-10246-gca5de40 x86_64)
8
9 Revision Changes Path
10 1.65 dev-util/ccache/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/ccache/ChangeLog?rev=1.65&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/ccache/ChangeLog?rev=1.65&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/ccache/ChangeLog?r1=1.64&r2=1.65
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/ccache/ChangeLog,v
19 retrieving revision 1.64
20 retrieving revision 1.65
21 diff -p -w -b -B -u -u -r1.64 -r1.65
22 --- ChangeLog 12 Jan 2008 21:09:48 -0000 1.64
23 +++ ChangeLog 30 Sep 2008 06:39:50 -0000 1.65
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-util/ccache
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-util/ccache/ChangeLog,v 1.64 2008/01/12 21:09:48 grobian Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/ccache/ChangeLog,v 1.65 2008/09/30 06:39:50 robbat2 Exp $
29 +
30 +*ccache-2.4-r8 (30 Sep 2008)
31 +
32 + 30 Sep 2008; Robin H. Johnson <robbat2@g.o>
33 + +files/ccache-2.4-profile.patch, +ccache-2.4-r8.ebuild:
34 + Exclude any use of -fprofile* from ccache storage, per bug #204810.
35
36 12 Jan 2008; Fabian Groffen <grobian@g.o> ccache-2.4-r6.ebuild,
37 ccache-2.4-r7.ebuild:
38
39
40
41 1.1 dev-util/ccache/ccache-2.4-r8.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/ccache/ccache-2.4-r8.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/ccache/ccache-2.4-r8.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ccache-2.4-r8.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-util/ccache/ccache-2.4-r8.ebuild,v 1.1 2008/09/30 06:39:50 robbat2 Exp $
51
52 inherit eutils autotools multilib
53
54 DESCRIPTION="fast compiler cache"
55 HOMEPAGE="http://ccache.samba.org/"
56 SRC_URI="http://samba.org/ftp/ccache/${P}.tar.gz"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
61 IUSE=""
62
63 # Note: this version is designed to be auto-detected and used if
64 # you happen to have Portage 2.0.X+ installed.
65
66 src_unpack() {
67 unpack ${A}
68 cd "${S}"
69 epatch "${FILESDIR}"/ccache-2.4-profile.patch
70 epatch "${FILESDIR}"/ccache-2.4-respectflags.patch
71 epatch "${FILESDIR}"/ccache-2.4-utimes.patch
72 eautoconf
73 }
74
75 do_links() {
76 insinto /usr/$(get_libdir)/ccache/bin
77 for a in ${CHOST}-{gcc,g++,c++} gcc c++ g++; do
78 dosym /usr/bin/ccache /usr/$(get_libdir)/ccache/bin/${a}
79 done
80 }
81
82 src_install() {
83 dobin ccache || die
84 doman ccache.1
85 dodoc README
86 dohtml web/*.html
87
88 diropts -m0755
89 dodir /usr/$(get_libdir)/ccache/bin
90 keepdir /usr/$(get_libdir)/ccache/bin
91
92 dobin "${FILESDIR}"/ccache-config || die
93
94 diropts -m0700
95 dodir /root/.ccache
96 keepdir /root/.ccache
97 }
98
99 pkg_preinst() {
100 # Do NOT duplicate this in your ebuilds or phear of the wrath!!!
101 if [[ ${ROOT} = "/" ]] ; then
102 einfo "Scanning for compiler front-ends..."
103 do_links
104 else
105 ewarn "Install is incomplete; you must run the following commands:"
106 ewarn " # ccache-config --install-links"
107 ewarn " # ccache-config --install-links ${CHOST}"
108 ewarn "after booting or chrooting to ${ROOT} to complete installation."
109 fi
110 }
111
112 pkg_postinst() {
113 # nuke broken symlinks from previous versions that shouldn't exist
114 for i in cc ${CHOST}-cc ; do
115 [[ -L "${ROOT}/usr/$(get_libdir)/ccache/bin/${i}" ]] && \
116 rm -rf "${ROOT}/usr/$(get_libdir)/ccache/bin/${i}"
117 done
118 [[ -d "${ROOT}/usr/$(get_libdir)/ccache.backup" ]] && \
119 rm -fr "${ROOT}/usr/$(get_libdir)/ccache.backup"
120
121 elog "To use ccache with **non-Portage** C compiling, add"
122 elog "/usr/$(get_libdir)/ccache/bin to the beginning of your path, before /usr/bin."
123 elog "Portage 2.0.46-r11+ will automatically take advantage of ccache with"
124 elog "no additional steps. If this is your first install of ccache, type"
125 elog "something like this to set a maximum cache size of 2GB:"
126 elog "# ccache -M 2G"
127 }