summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2009-10-26 20:08:58 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2009-10-26 20:08:58 +0000
commit07630e8c27d0523c5368d5f07de87d7e5ff1dabc (patch)
tree673b548dee9716d14dd41d76a8f50c926ae827db /sys-devel
parentwhitespace (diff)
downloadgentoo-2-07630e8c27d0523c5368d5f07de87d7e5ff1dabc.tar.gz
gentoo-2-07630e8c27d0523c5368d5f07de87d7e5ff1dabc.tar.bz2
gentoo-2-07630e8c27d0523c5368d5f07de87d7e5ff1dabc.zip
Add some comments, fix running tests
(Portage version: 2.2_rc46/cvs/Linux x86_64)
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/clang/ChangeLog6
-rw-r--r--sys-devel/clang/clang-2.6.ebuild16
2 files changed, 19 insertions, 3 deletions
diff --git a/sys-devel/clang/ChangeLog b/sys-devel/clang/ChangeLog
index 7edc75dcf372..358dc094486e 100644
--- a/sys-devel/clang/ChangeLog
+++ b/sys-devel/clang/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-devel/clang
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/ChangeLog,v 1.3 2009/10/26 17:26:41 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/ChangeLog,v 1.4 2009/10/26 20:08:58 voyageur Exp $
+
+ 26 Oct 2009; Bernard Cafarelli <voyageur@gentoo.org> clang-2.6.ebuild:
+ Add some comments, fix running tests. Now about 50 of them fail not
+ finding their headers, still looking why
26 Oct 2009; Bernard Cafarelli <voyageur@gentoo.org> clang-2.6.ebuild,
+files/clang-2.6-fixdoc.patch:
diff --git a/sys-devel/clang/clang-2.6.ebuild b/sys-devel/clang/clang-2.6.ebuild
index 69c3bc0ae430..b96bde14ccef 100644
--- a/sys-devel/clang/clang-2.6.ebuild
+++ b/sys-devel/clang/clang-2.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-2.6.ebuild,v 1.2 2009/10/26 17:26:41 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-2.6.ebuild,v 1.3 2009/10/26 20:08:58 voyageur Exp $
EAPI=2
inherit eutils python
@@ -11,7 +11,6 @@ HOMEPAGE="http://clang.llvm.org/"
SRC_URI="http://llvm.org/releases/${PV}/llvm-${PV}.tar.gz
http://llvm.org/releases/${PV}/${P}.tar.gz"
-# See http://www.opensource.org/licenses/UoI-NCSA.php
LICENSE="UoI-NCSA"
SLOT="0"
KEYWORDS="~amd64 ~x86"
@@ -30,9 +29,11 @@ src_prepare() {
# Same as llvm doc patches
epatch "${FILESDIR}"/${PN}-2.6-fixdoc.patch
+ # multilib-strict
sed -e "s#lib/clang/1.0#$(get_libdir)/clang/1.0#" \
-i "${S}"/tools/clang/lib/Headers/Makefile \
|| die "clang Makefile failed"
+ # install python files as module
sed -e 's/import ScanView/from clang \0/' \
-i "${S}"/tools/clang/tools/scan-view/scan-view \
|| die "scan-view sed failed"
@@ -74,6 +75,17 @@ src_compile() {
emake VERBOSE=1 KEEP_SYMBOLS=1 clang-only || die "emake failed"
}
+src_test() {
+ cd "${S}"/tools/clang || die "cd clang failed"
+
+ # 20091026: many tests fail not finding headers?
+ vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
+ if ! emake -j1 VERBOSE=1 test; then
+ hasq test $FEATURES && die "Make test failed. See above for details."
+ hasq test $FEATURES || eerror "Make test failed. See above for details."
+ fi
+}
+
src_install() {
cd "${S}"/tools/clang || die "cd clang failed"
emake KEEP_SYMBOLS=1 DESTDIR="${D}" install || die "install failed"