Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/ccache: ChangeLog ccache-3.1.5.ebuild
Date: Sun, 29 May 2011 16:32:45
Message-Id: 20110529163227.9314420054@flycatcher.gentoo.org
1 vapier 11/05/29 16:32:27
2
3 Modified: ChangeLog
4 Added: ccache-3.1.5.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha33/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.81 dev-util/ccache/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ccache/ChangeLog?rev=1.81&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ccache/ChangeLog?rev=1.81&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ccache/ChangeLog?r1=1.80&r2=1.81
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/ccache/ChangeLog,v
20 retrieving revision 1.80
21 retrieving revision 1.81
22 diff -u -r1.80 -r1.81
23 --- ChangeLog 6 Mar 2011 09:07:21 -0000 1.80
24 +++ ChangeLog 29 May 2011 16:32:27 -0000 1.81
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-util/ccache
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/ccache/ChangeLog,v 1.80 2011/03/06 09:07:21 xmw Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/ccache/ChangeLog,v 1.81 2011/05/29 16:32:27 vapier Exp $
30 +
31 +*ccache-3.1.5 (29 May 2011)
32 +
33 + 29 May 2011; Mike Frysinger <vapier@g.o> +ccache-3.1.5.ebuild:
34 + Version bump.
35
36 06 Mar 2011; Michael Weber <xmw@g.o> ccache-2.4-r9.ebuild:
37 ppc stable (bug 320687)
38
39
40
41 1.1 dev-util/ccache/ccache-3.1.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ccache/ccache-3.1.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ccache/ccache-3.1.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ccache-3.1.5.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-util/ccache/ccache-3.1.5.ebuild,v 1.1 2011/05/29 16:32:27 vapier Exp $
51
52 inherit 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-3"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
61 IUSE=""
62
63 RDEPEND="sys-libs/zlib"
64 DEPEND="${RDEPEND}"
65
66 src_unpack() {
67 unpack ${A}
68 cd "${S}"
69 # make sure we always use system zlib
70 rm -rf zlib
71 }
72
73 src_install() {
74 emake install DESTDIR="${D}" || die
75 dodoc AUTHORS.txt MANUAL.txt NEWS.txt README.txt
76
77 dobin "${FILESDIR}"/ccache-config || die
78 dosed "/^LIBDIR=/s:lib:$(get_libdir):" /usr/bin/ccache-config
79
80 diropts -m0700
81 dodir /root/.ccache
82 keepdir /root/.ccache
83 }
84
85 pkg_postinst() {
86 "${ROOT}"/usr/bin/ccache-config --install-links
87 "${ROOT}"/usr/bin/ccache-config --install-links ${CHOST}
88
89 # nuke broken symlinks from previous versions that shouldn't exist
90 rm -f "${ROOT}/usr/$(get_libdir)/ccache/bin/${CHOST}-cc"
91 [[ -d "${ROOT}/usr/$(get_libdir)/ccache.backup" ]] && \
92 rm -rf "${ROOT}/usr/$(get_libdir)/ccache.backup"
93
94 elog "To use ccache with **non-Portage** C compiling, add"
95 elog "/usr/$(get_libdir)/ccache/bin to the beginning of your path, before /usr/bin."
96 elog "Portage 2.0.46-r11+ will automatically take advantage of ccache with"
97 elog "no additional steps. If this is your first install of ccache, type"
98 elog "something like this to set a maximum cache size of 2GB:"
99 elog "# ccache -M 2G"
100 elog
101 elog "If you are upgrading from an older version than 3.x you should clear"
102 elog "all of your caches like so:"
103 elog "# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C"
104 }