diff options
author | 2011-05-29 15:34:24 +0300 | |
---|---|---|
committer | 2011-05-29 15:34:24 +0300 | |
commit | 0d152a8fdc5e346a07980e61163e114a9f92f9ac (patch) | |
tree | 083fabe3de9cee2be210a69e8d598613fb694ad0 | |
parent | new ebuild: antlr-c (diff) | |
download | betelgeuse-0d152a8fdc5e346a07980e61163e114a9f92f9ac.tar.gz betelgeuse-0d152a8fdc5e346a07980e61163e114a9f92f9ac.tar.bz2 betelgeuse-0d152a8fdc5e346a07980e61163e114a9f92f9ac.zip |
Live ebuild for libcxx
-rw-r--r-- | sys-libs/libcxx/Manifest | 2 | ||||
-rw-r--r-- | sys-libs/libcxx/files/buildit.patch | 29 | ||||
-rw-r--r-- | sys-libs/libcxx/libcxx-9999.ebuild | 42 |
3 files changed, 73 insertions, 0 deletions
diff --git a/sys-libs/libcxx/Manifest b/sys-libs/libcxx/Manifest new file mode 100644 index 0000000..0aa3bf0 --- /dev/null +++ b/sys-libs/libcxx/Manifest @@ -0,0 +1,2 @@ +AUX buildit.patch 748 RMD160 ce8f22f66d56c6d7543f9c7751c4a91641b6aa90 SHA1 7e9f622b89cb5555c60204f51d38cd11a0da6fc7 SHA256 6288025791ece70898e55a3bbbe868b90ffbeafd2f60ca63447c88b077b78bde +EBUILD libcxx-9999.ebuild 846 RMD160 bb9e55907e66b25f0abeb55b271a6da3cd7b9517 SHA1 cdda602409e5069f0fd01eddeedc289617b2167f SHA256 4f1ff6d164b2ed0f8a7f21f46d7adc2f439772f25ac3e45c4592b75197736143 diff --git a/sys-libs/libcxx/files/buildit.patch b/sys-libs/libcxx/files/buildit.patch new file mode 100644 index 0000000..0d94cbb --- /dev/null +++ b/sys-libs/libcxx/files/buildit.patch @@ -0,0 +1,29 @@ +diff -ur libcxx-9999.old//lib/buildit libcxx-9999/lib/buildit +--- libcxx-9999.old//lib/buildit 2011-05-29 15:29:51.179000188 +0300 ++++ libcxx-9999/lib/buildit 2011-05-29 15:30:45.546000188 +0300 +@@ -35,6 +35,8 @@ + RC_ProjectSourceVersion=1 + fi + ++EXTRA_FLAGS="-std=c++0x " ++ + case $TRIPLE in + *-apple-*) + if [ -z $RC_XBS ] +@@ -53,7 +55,6 @@ + -Wl,-unexported_symbols_list,libc++unexp.exp \ + /usr/lib/libSystem.B.dylib" + else +- EXTRA_FLAGS="-std=c++0x " + RE_EXPORT_FILE="libc++abi.exp" + if [ -n "$SDKROOT" ] + then +@@ -81,7 +82,7 @@ + SOEXT=so + LDSHARED_FLAGS="-o libc++.so.1.0 \ + -shared -nodefaultlibs -Wl,-soname,libc++.so.1 \ +- -lpthread -lrt -lc" ++ -lpthread -lrt -lc -lstdc++" + ;; + esac + diff --git a/sys-libs/libcxx/libcxx-9999.ebuild b/sys-libs/libcxx/libcxx-9999.ebuild new file mode 100644 index 0000000..67b0ff9 --- /dev/null +++ b/sys-libs/libcxx/libcxx-9999.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +ESVN_REPO_URI="http://llvm.org/svn/llvm-project/libcxx/trunk" +ESVN_PATCHES="*.patch" + +inherit subversion + +DESCRIPTION="libc++ is a new implementation of the C++ standard library, targeting C++0X" +HOMEPAGE="http://libcxx.llvm.org/" +SRC_URI="" + +LICENSE="|| ( UoI-NCSA MIT )" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="sys-devel/clang" +RDEPEND="" + +src_compile() { + cd lib || die + ./buildit || die "compiling failed" +} + +src_install() { + dolib lib/libc++.so.1.0 + dosym libc++.so.1.0 /usr/lib/libc++.so.1 + dosym libc++.so.1 /usr/lib/libc++.so + insinto /usr/include/c++/v1 + doins -r include/* +} + +# they seem to rely on it being already installed +RESTRICT="test" + +src_test() { + cd test || die + ./testit || die "tests failed" +} |