1 |
commit: 0d152a8fdc5e346a07980e61163e114a9f92f9ac |
2 |
Author: Petteri Räty <betelgeuse <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 29 12:34:24 2011 +0000 |
4 |
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 29 12:34:24 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/betelgeuse.git;a=commit;h=0d152a8f |
7 |
|
8 |
Live ebuild for libcxx |
9 |
|
10 |
--- |
11 |
sys-libs/libcxx/Manifest | 2 + |
12 |
sys-libs/libcxx/files/buildit.patch | 29 ++++++++++++++++++++++++ |
13 |
sys-libs/libcxx/libcxx-9999.ebuild | 42 +++++++++++++++++++++++++++++++++++ |
14 |
3 files changed, 73 insertions(+), 0 deletions(-) |
15 |
|
16 |
diff --git a/sys-libs/libcxx/Manifest b/sys-libs/libcxx/Manifest |
17 |
new file mode 100644 |
18 |
index 0000000..0aa3bf0 |
19 |
--- /dev/null |
20 |
+++ b/sys-libs/libcxx/Manifest |
21 |
@@ -0,0 +1,2 @@ |
22 |
+AUX buildit.patch 748 RMD160 ce8f22f66d56c6d7543f9c7751c4a91641b6aa90 SHA1 7e9f622b89cb5555c60204f51d38cd11a0da6fc7 SHA256 6288025791ece70898e55a3bbbe868b90ffbeafd2f60ca63447c88b077b78bde |
23 |
+EBUILD libcxx-9999.ebuild 846 RMD160 bb9e55907e66b25f0abeb55b271a6da3cd7b9517 SHA1 cdda602409e5069f0fd01eddeedc289617b2167f SHA256 4f1ff6d164b2ed0f8a7f21f46d7adc2f439772f25ac3e45c4592b75197736143 |
24 |
|
25 |
diff --git a/sys-libs/libcxx/files/buildit.patch b/sys-libs/libcxx/files/buildit.patch |
26 |
new file mode 100644 |
27 |
index 0000000..0d94cbb |
28 |
--- /dev/null |
29 |
+++ b/sys-libs/libcxx/files/buildit.patch |
30 |
@@ -0,0 +1,29 @@ |
31 |
+diff -ur libcxx-9999.old//lib/buildit libcxx-9999/lib/buildit |
32 |
+--- libcxx-9999.old//lib/buildit 2011-05-29 15:29:51.179000188 +0300 |
33 |
++++ libcxx-9999/lib/buildit 2011-05-29 15:30:45.546000188 +0300 |
34 |
+@@ -35,6 +35,8 @@ |
35 |
+ RC_ProjectSourceVersion=1 |
36 |
+ fi |
37 |
+ |
38 |
++EXTRA_FLAGS="-std=c++0x " |
39 |
++ |
40 |
+ case $TRIPLE in |
41 |
+ *-apple-*) |
42 |
+ if [ -z $RC_XBS ] |
43 |
+@@ -53,7 +55,6 @@ |
44 |
+ -Wl,-unexported_symbols_list,libc++unexp.exp \ |
45 |
+ /usr/lib/libSystem.B.dylib" |
46 |
+ else |
47 |
+- EXTRA_FLAGS="-std=c++0x " |
48 |
+ RE_EXPORT_FILE="libc++abi.exp" |
49 |
+ if [ -n "$SDKROOT" ] |
50 |
+ then |
51 |
+@@ -81,7 +82,7 @@ |
52 |
+ SOEXT=so |
53 |
+ LDSHARED_FLAGS="-o libc++.so.1.0 \ |
54 |
+ -shared -nodefaultlibs -Wl,-soname,libc++.so.1 \ |
55 |
+- -lpthread -lrt -lc" |
56 |
++ -lpthread -lrt -lc -lstdc++" |
57 |
+ ;; |
58 |
+ esac |
59 |
+ |
60 |
|
61 |
diff --git a/sys-libs/libcxx/libcxx-9999.ebuild b/sys-libs/libcxx/libcxx-9999.ebuild |
62 |
new file mode 100644 |
63 |
index 0000000..67b0ff9 |
64 |
--- /dev/null |
65 |
+++ b/sys-libs/libcxx/libcxx-9999.ebuild |
66 |
@@ -0,0 +1,42 @@ |
67 |
+# Copyright 1999-2011 Gentoo Foundation |
68 |
+# Distributed under the terms of the GNU General Public License v2 |
69 |
+# $Header: $ |
70 |
+ |
71 |
+EAPI=4 |
72 |
+ESVN_REPO_URI="http://llvm.org/svn/llvm-project/libcxx/trunk" |
73 |
+ESVN_PATCHES="*.patch" |
74 |
+ |
75 |
+inherit subversion |
76 |
+ |
77 |
+DESCRIPTION="libc++ is a new implementation of the C++ standard library, targeting C++0X" |
78 |
+HOMEPAGE="http://libcxx.llvm.org/" |
79 |
+SRC_URI="" |
80 |
+ |
81 |
+LICENSE="|| ( UoI-NCSA MIT )" |
82 |
+SLOT="0" |
83 |
+KEYWORDS="~x86" |
84 |
+IUSE="" |
85 |
+ |
86 |
+DEPEND="sys-devel/clang" |
87 |
+RDEPEND="" |
88 |
+ |
89 |
+src_compile() { |
90 |
+ cd lib || die |
91 |
+ ./buildit || die "compiling failed" |
92 |
+} |
93 |
+ |
94 |
+src_install() { |
95 |
+ dolib lib/libc++.so.1.0 |
96 |
+ dosym libc++.so.1.0 /usr/lib/libc++.so.1 |
97 |
+ dosym libc++.so.1 /usr/lib/libc++.so |
98 |
+ insinto /usr/include/c++/v1 |
99 |
+ doins -r include/* |
100 |
+} |
101 |
+ |
102 |
+# they seem to rely on it being already installed |
103 |
+RESTRICT="test" |
104 |
+ |
105 |
+src_test() { |
106 |
+ cd test || die |
107 |
+ ./testit || die "tests failed" |
108 |
+} |