1 |
--- |
2 |
dev-util/ccache/ccache-3.3.4-r1.ebuild | 68 ++++++++++++++++++++++++++++++++++ |
3 |
1 file changed, 68 insertions(+) |
4 |
create mode 100644 dev-util/ccache/ccache-3.3.4-r1.ebuild |
5 |
|
6 |
diff --git a/dev-util/ccache/ccache-3.3.4-r1.ebuild b/dev-util/ccache/ccache-3.3.4-r1.ebuild |
7 |
new file mode 100644 |
8 |
index 000000000000..1ef1d45179d1 |
9 |
--- /dev/null |
10 |
+++ b/dev-util/ccache/ccache-3.3.4-r1.ebuild |
11 |
@@ -0,0 +1,68 @@ |
12 |
+# Copyright 1999-2017 Gentoo Foundation |
13 |
+# Distributed under the terms of the GNU General Public License v2 |
14 |
+ |
15 |
+EAPI=6 |
16 |
+ |
17 |
+inherit readme.gentoo-r1 |
18 |
+ |
19 |
+DESCRIPTION="fast compiler cache" |
20 |
+HOMEPAGE="http://ccache.samba.org/" |
21 |
+SRC_URI="https://samba.org/ftp/ccache/${P}.tar.xz" |
22 |
+ |
23 |
+LICENSE="GPL-3" |
24 |
+SLOT="0" |
25 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~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" |
26 |
+IUSE="" |
27 |
+ |
28 |
+DEPEND="app-arch/xz-utils |
29 |
+ sys-libs/zlib" |
30 |
+RDEPEND="${DEPEND} |
31 |
+ sys-apps/gentoo-functions" |
32 |
+ |
33 |
+src_prepare() { |
34 |
+ # make sure we always use system zlib |
35 |
+ rm -rf zlib || die |
36 |
+ eapply "${FILESDIR}"/${PN}-3.3-size-on-disk.patch #456178 |
37 |
+ eapply_user |
38 |
+ sed \ |
39 |
+ -e "/^EPREFIX=/s:'':'${EPREFIX}':" \ |
40 |
+ "${FILESDIR}"/ccache-config-3 > ccache-config || die |
41 |
+} |
42 |
+ |
43 |
+src_install() { |
44 |
+ DOCS=( AUTHORS.txt MANUAL.txt NEWS.txt README.md ) |
45 |
+ default |
46 |
+ |
47 |
+ dobin ccache-config |
48 |
+ |
49 |
+ DOC_CONTENTS=" |
50 |
+To use ccache with **non-Portage** C compiling, add |
51 |
+${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}/usr/bin. |
52 |
+Portage 2.0.46-r11+ will automatically take advantage of ccache with |
53 |
+no additional steps. If this is your first install of ccache, type |
54 |
+something like this to set a maximum cache size of 2GB:\\n |
55 |
+# ccache -M 2G\\n |
56 |
+If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n |
57 |
+# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n |
58 |
+ccache now supports sys-devel/clang and dev-lang/icc, too!" |
59 |
+ |
60 |
+ readme.gentoo_create_doc |
61 |
+} |
62 |
+ |
63 |
+pkg_prerm() { |
64 |
+ if [[ -z ${REPLACED_BY_VERSION} ]] ; then |
65 |
+ "${EROOT}"/usr/bin/ccache-config --remove-links |
66 |
+ "${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST} |
67 |
+ fi |
68 |
+} |
69 |
+ |
70 |
+pkg_postinst() { |
71 |
+ "${EROOT}"/usr/bin/ccache-config --install-links |
72 |
+ "${EROOT}"/usr/bin/ccache-config --install-links ${CHOST} |
73 |
+ |
74 |
+ # nuke broken symlinks from previous versions that shouldn't exist |
75 |
+ rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc || die |
76 |
+ rm -rf "${EROOT}"/usr/lib/ccache.backup || die |
77 |
+ |
78 |
+ readme.gentoo_print_elog |
79 |
+} |
80 |
-- |
81 |
2.14.1 |