summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2015-08-24 17:01:24 +0200
committerBernard Cafarelli <voyageur@gentoo.org>2015-08-24 17:03:05 +0200
commit8c1d91d6f37c6b2ee8db65aeb5c22ebf6f7445a9 (patch)
treeacfb5b043efc9dbc4840a5089dcc68a05712d332 /sys-devel/clang
parentsys-devel/llvm: add rc version for testing (diff)
downloadgentoo-8c1d91d6f37c6b2ee8db65aeb5c22ebf6f7445a9.tar.gz
gentoo-8c1d91d6f37c6b2ee8db65aeb5c22ebf6f7445a9.tar.bz2
gentoo-8c1d91d6f37c6b2ee8db65aeb5c22ebf6f7445a9.zip
sys-devel/clang: add rc version for testing
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'sys-devel/clang')
-rw-r--r--sys-devel/clang/clang-3.7.0_rc2-r100.ebuild36
-rw-r--r--sys-devel/clang/metadata.xml2
2 files changed, 37 insertions, 1 deletions
diff --git a/sys-devel/clang/clang-3.7.0_rc2-r100.ebuild b/sys-devel/clang/clang-3.7.0_rc2-r100.ebuild
new file mode 100644
index 000000000000..145a0f189b21
--- /dev/null
+++ b/sys-devel/clang/clang-3.7.0_rc2-r100.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit multilib-build
+
+DESCRIPTION="C language family frontend for LLVM (meta-ebuild)"
+HOMEPAGE="http://clang.llvm.org/"
+SRC_URI=""
+
+LICENSE="UoI-NCSA"
+SLOT="0/3.6"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="debug multitarget python +static-analyzer"
+
+RDEPEND="~sys-devel/llvm-${PV}[clang(-),debug=,multitarget?,python?,static-analyzer,${MULTILIB_USEDEP}]"
+
+# Please keep this package around since it's quite likely that we'll
+# return to separate LLVM & clang ebuilds when the cmake build system
+# is complete.
+
+pkg_postinst() {
+ if has_version ">=dev-util/ccache-3.1.9-r2" ; then
+ #add ccache links as clang might get installed after ccache
+ "${EROOT}"/usr/bin/ccache-config --install-links
+ fi
+}
+
+pkg_postrm() {
+ if has_version ">=dev-util/ccache-3.1.9-r2" && [[ -z ${REPLACED_BY_VERSION} ]]; then
+ # --remove-links would remove all links, --install-links updates them
+ "${EROOT}"/usr/bin/ccache-config --install-links
+ fi
+}
diff --git a/sys-devel/clang/metadata.xml b/sys-devel/clang/metadata.xml
index 735c9da104df..466ad974778a 100644
--- a/sys-devel/clang/metadata.xml
+++ b/sys-devel/clang/metadata.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>clang@gentoo.org</email>