/[gentoo-x86]/sys-devel/clang/clang-9999-r100.ebuild
Gentoo

Contents of /sys-devel/clang/clang-9999-r100.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Oct 28 00:25:12 2013 UTC (4 years, 10 months ago) by ottxor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +15 -1 lines
added ccache support (bug #486402)

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key C2000586)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-9999-r100.ebuild,v 1.4 2013/08/14 13:03:23 mgorny Exp $
4
5 EAPI=5
6
7 inherit multilib-build
8
9 DESCRIPTION="C language family frontend for LLVM (meta-ebuild)"
10 HOMEPAGE="http://clang.llvm.org/"
11 SRC_URI=""
12
13 LICENSE="UoI-NCSA"
14 SLOT="0/${PV}"
15 KEYWORDS=""
16 IUSE="debug multitarget python +static-analyzer"
17
18 RDEPEND="~sys-devel/llvm-${PV}[clang(-),debug=,multitarget?,python?,static-analyzer,${MULTILIB_USEDEP}]"
19
20 # Please keep this package around since it's quite likely that we'll
21 # return to separate LLVM & clang ebuilds when the cmake build system
22 # is complete.
23
24 pkg_postinst() {
25 if has_version ">=dev-util/ccache-3.1.9-r2" ; then
26 #add ccache links as clang might get installed after ccache
27 "${EROOT}"/usr/bin/ccache-config --install-links
28 fi
29 }
30
31 pkg_postrm() {
32 if has_version ">=dev-util/ccache-3.1.9-r2" && [[ -z ${REPLACED_BY_VERSION} ]]; then
33 # --remove-links would remove all links, --install-links updates them
34 "${EROOT}"/usr/bin/ccache-config --install-links
35 fi
36 }

  ViewVC Help
Powered by ViewVC 1.1.20