Gentoo Archives: gentoo-commits

From: "Christoph Junghans (ottxor)" <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/ccache: ccache-3.1.9-r2.ebuild ChangeLog ccache-3.1.9-r1.ebuild
Date: Sat, 28 Sep 2013 22:44:52
Message-Id: 20130928224447.DDF6A2004E@flycatcher.gentoo.org
1 ottxor 13/09/28 22:44:47
2
3 Modified: ChangeLog
4 Added: ccache-3.1.9-r2.ebuild
5 Removed: ccache-3.1.9-r1.ebuild
6 Log:
7 add icc/clang support (bug #484772)
8
9 (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key C2000586)
10
11 Revision Changes Path
12 1.125 dev-util/ccache/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ccache/ChangeLog?rev=1.125&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ccache/ChangeLog?rev=1.125&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ccache/ChangeLog?r1=1.124&r2=1.125
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-util/ccache/ChangeLog,v
21 retrieving revision 1.124
22 retrieving revision 1.125
23 diff -u -r1.124 -r1.125
24 --- ChangeLog 13 Sep 2013 14:25:31 -0000 1.124
25 +++ ChangeLog 28 Sep 2013 22:44:47 -0000 1.125
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-util/ccache
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-util/ccache/ChangeLog,v 1.124 2013/09/13 14:25:31 ottxor Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-util/ccache/ChangeLog,v 1.125 2013/09/28 22:44:47 ottxor Exp $
31 +
32 +*ccache-3.1.9-r2 (28 Sep 2013)
33 +
34 + 28 Sep 2013; Christoph Junghans <ottxor@g.o> +ccache-3.1.9-r2.ebuild,
35 + -ccache-3.1.9-r1.ebuild, files/ccache-config-2:
36 + add icc/clang support (bug #484772)
37
38 *ccache-3.1.9-r1 (13 Sep 2013)
39
40
41
42
43 1.1 dev-util/ccache/ccache-3.1.9-r2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ccache/ccache-3.1.9-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ccache/ccache-3.1.9-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: ccache-3.1.9-r2.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-util/ccache/ccache-3.1.9-r2.ebuild,v 1.1 2013/09/28 22:44:47 ottxor Exp $
53
54 EAPI="4"
55
56 inherit multilib eutils
57
58 DESCRIPTION="fast compiler cache"
59 HOMEPAGE="http://ccache.samba.org/"
60 SRC_URI="http://samba.org/ftp/ccache/${P}.tar.xz"
61
62 LICENSE="GPL-3"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
65 IUSE=""
66
67 RDEPEND="sys-libs/zlib"
68 DEPEND="${RDEPEND}
69 app-arch/xz-utils"
70
71 src_prepare() {
72 # make sure we always use system zlib
73 rm -rf zlib
74 epatch "${FILESDIR}"/${PN}-3.1.7-no-perl.patch #421609
75 epatch "${FILESDIR}"/${P}-test-gcc-4.8.patch #461966
76 sed \
77 -e "/^LIBDIR=/s:lib:$(get_libdir):" \
78 -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
79 "${FILESDIR}"/ccache-config-2 > ccache-config || die
80 }
81
82 src_install() {
83 default
84 dodoc AUTHORS.txt MANUAL.txt NEWS.txt README.txt
85
86 dobin ccache-config
87 }
88
89 pkg_prerm() {
90 if [[ -z ${REPLACED_BY_VERSION} ]] ; then
91 "${EROOT}"/usr/bin/ccache-config --remove-links
92 "${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
93 fi
94 }
95
96 pkg_postinst() {
97 "${EROOT}"/usr/bin/ccache-config --install-links
98 "${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
99
100 # nuke broken symlinks from previous versions that shouldn't exist
101 rm -f "${EROOT}/usr/$(get_libdir)/ccache/bin/${CHOST}-cc"
102 [[ -d "${EROOT}/usr/$(get_libdir)/ccache.backup" ]] && \
103 rm -rf "${EROOT}/usr/$(get_libdir)/ccache.backup"
104
105 if [[ -z ${REPLACING_VERSIONS} ]] ; then
106 elog "To use ccache with **non-Portage** C compiling, add"
107 elog "${EPREFIX}/usr/$(get_libdir)/ccache/bin to the beginning of your path, before ${EPREFIX}/usr/bin."
108 elog "Portage 2.0.46-r11+ will automatically take advantage of ccache with"
109 elog "no additional steps."
110 elog
111 elog "You might want to set a maximum cache size:"
112 elog "# ccache -M 2G"
113 fi
114 if has_version "<${CATEGORY}/${PN}-3" ; then
115 elog "If you are upgrading from an older version than 3.x you should clear"
116 elog "all of your caches like so:"
117 elog "# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C"
118 fi
119 if has_version "<${CATEGORY}/${PN}-3.1.9-r2" ; then
120 elog "ccache now supports sys-devel/clang and dev-lang/icc, too!"
121 fi
122 }