1 |
voyageur 10/04/27 11:49:22 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: llvm-2.7.ebuild |
5 |
Removed: llvm-2.6-r1.ebuild |
6 |
Log: |
7 |
2.7 official release version bump |
8 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.12 sys-devel/llvm/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/llvm/ChangeLog?rev=1.12&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/llvm/ChangeLog?rev=1.12&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/llvm/ChangeLog?r1=1.11&r2=1.12 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-devel/llvm/ChangeLog,v |
20 |
retrieving revision 1.11 |
21 |
retrieving revision 1.12 |
22 |
diff -u -r1.11 -r1.12 |
23 |
--- ChangeLog 26 Apr 2010 13:14:11 -0000 1.11 |
24 |
+++ ChangeLog 27 Apr 2010 11:49:22 -0000 1.12 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for sys-devel/llvm |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/ChangeLog,v 1.11 2010/04/26 13:14:11 voyageur Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/ChangeLog,v 1.12 2010/04/27 11:49:22 voyageur Exp $ |
30 |
+ |
31 |
+*llvm-2.7 (27 Apr 2010) |
32 |
+ |
33 |
+ 27 Apr 2010; Bernard Cafarelli <voyageur@g.o> -llvm-2.6-r1.ebuild, |
34 |
+ +llvm-2.7.ebuild, +files/llvm-2.7-nodoctargz.patch: |
35 |
+ 2.7 official release version bump |
36 |
|
37 |
26 Apr 2010; Bernard Cafarelli <voyageur@g.o> llvm-2.6-r2.ebuild: |
38 |
--without-udis86 is broken in configure script |
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-devel/llvm/llvm-2.7.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/llvm/llvm-2.7.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/llvm/llvm-2.7.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: llvm-2.7.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-2.7.ebuild,v 1.1 2010/04/27 11:49:22 voyageur Exp $ |
52 |
|
53 |
EAPI="2" |
54 |
inherit eutils multilib toolchain-funcs |
55 |
|
56 |
DESCRIPTION="Low Level Virtual Machine" |
57 |
HOMEPAGE="http://llvm.org/" |
58 |
SRC_URI="http://llvm.org/releases/${PV}/${P}.tgz" |
59 |
|
60 |
LICENSE="UoI-NCSA" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~ppc ~x86" |
63 |
IUSE="alltargets debug +libffi llvm-gcc ocaml test udis86" |
64 |
|
65 |
DEPEND="dev-lang/perl |
66 |
>=sys-devel/make-3.79 |
67 |
>=sys-devel/flex-2.5.4 |
68 |
>=sys-devel/bison-1.28 |
69 |
!~sys-devel/bison-1.85 |
70 |
!~sys-devel/bison-1.875 |
71 |
>=sys-devel/gcc-3.0 |
72 |
>=sys-devel/binutils-2.18 |
73 |
libffi? ( virtual/libffi ) |
74 |
llvm-gcc? ( sys-devel/llvm-gcc ) |
75 |
ocaml? ( dev-lang/ocaml ) |
76 |
test? ( dev-util/dejagnu ) |
77 |
udis86? ( dev-libs/udis86 )" |
78 |
RDEPEND="dev-lang/perl" |
79 |
|
80 |
S=${WORKDIR}/${PN}-${PV/_pre*} |
81 |
|
82 |
pkg_setup() { |
83 |
# need to check if the active compiler is ok |
84 |
|
85 |
broken_gcc=" 3.2.2 3.2.3 3.3.2 4.1.1 " |
86 |
broken_gcc_x86=" 3.4.0 3.4.2 " |
87 |
broken_gcc_amd64=" 3.4.6 " |
88 |
|
89 |
gcc_vers=$(gcc-fullversion) |
90 |
|
91 |
if [[ ${broken_gcc} == *" ${version} "* ]] ; then |
92 |
elog "Your version of gcc is known to miscompile llvm." |
93 |
elog "Check http://www.llvm.org/docs/GettingStarted.html for" |
94 |
elog "possible solutions." |
95 |
die "Your currently active version of gcc is known to miscompile llvm" |
96 |
fi |
97 |
|
98 |
if [[ ${CHOST} == i*86-* && ${broken_gcc_x86} == *" ${version} "* ]] ; then |
99 |
elog "Your version of gcc is known to miscompile llvm on x86" |
100 |
elog "architectures. Check" |
101 |
elog "http://www.llvm.org/docs/GettingStarted.html for possible" |
102 |
elog "solutions." |
103 |
die "Your currently active version of gcc is known to miscompile llvm" |
104 |
fi |
105 |
|
106 |
if [[ ${CHOST} == x86_64-* && ${broken_gcc_amd64} == *" ${version} "* ]]; |
107 |
then |
108 |
elog "Your version of gcc is known to miscompile llvm in amd64" |
109 |
elog "architectures. Check" |
110 |
elog "http://www.llvm.org/docs/GettingStarted.html for possible" |
111 |
elog "solutions." |
112 |
die "Your currently active version of gcc is known to miscompile llvm" |
113 |
fi |
114 |
} |
115 |
|
116 |
src_prepare() { |
117 |
# unfortunately ./configure won't listen to --mandir and the-like, so take |
118 |
# care of this. |
119 |
einfo "Fixing install dirs" |
120 |
sed -e 's,^PROJ_docsdir.*,PROJ_docsdir := $(PROJ_prefix)/share/doc/'${PF}, \ |
121 |
-e 's,^PROJ_etcdir.*,PROJ_etcdir := /etc/llvm,' \ |
122 |
-e 's,^PROJ_libdir.*,PROJ_libdir := $(PROJ_prefix)/'$(get_libdir), \ |
123 |
-i Makefile.config.in || die "Makefile.config sed failed" |
124 |
|
125 |
einfo "Fixing rpath" |
126 |
sed -e 's/\$(RPATH) -Wl,\$(\(ToolDir\|LibDir\))//g' -i Makefile.rules || die "sed failed" |
127 |
|
128 |
epatch "${FILESDIR}"/${PN}-2.7-nodoctargz.patch |
129 |
epatch "${FILESDIR}"/${PN}-2.6-commandguide-nops.patch |
130 |
} |
131 |
|
132 |
src_configure() { |
133 |
local CONF_FLAGS="" |
134 |
|
135 |
if use debug; then |
136 |
CONF_FLAGS="${CONF_FLAGS} --disable-optimized" |
137 |
einfo "Note: Compiling LLVM in debug mode will create huge and slow binaries" |
138 |
# ...and you probably shouldn't use tmpfs, unless it can hold 900MB |
139 |
else |
140 |
CONF_FLAGS="${CONF_FLAGS} \ |
141 |
--enable-optimized \ |
142 |
--disable-assertions \ |
143 |
--disable-expensive-checks" |
144 |
fi |
145 |
|
146 |
if use alltargets; then |
147 |
CONF_FLAGS="${CONF_FLAGS} --enable-targets=all" |
148 |
else |
149 |
CONF_FLAGS="${CONF_FLAGS} --enable-targets=host-only" |
150 |
fi |
151 |
|
152 |
if use amd64; then |
153 |
CONF_FLAGS="${CONF_FLAGS} --enable-pic" |
154 |
fi |
155 |
|
156 |
# things would be built differently depending on whether llvm-gcc is |
157 |
# used or not. |
158 |
local LLVM_GCC_DIR=/dev/null |
159 |
local LLVM_GCC_DRIVER=nope ; local LLVM_GPP_DRIVER=nope |
160 |
if use llvm-gcc ; then |
161 |
if has_version sys-devel/llvm-gcc; then |
162 |
LLVM_GCC_DIR=$(ls -d ${ROOT}/usr/$(get_libdir)/llvm-gcc* 2> /dev/null) |
163 |
LLVM_GCC_DRIVER=$(find ${LLVM_GCC_DIR} -name 'llvm*-gcc' 2> /dev/null) |
164 |
if [[ -z ${LLVM_GCC_DRIVER} ]] ; then |
165 |
die "failed to find installed llvm-gcc, LLVM_GCC_DIR=${LLVM_GCC_DIR}" |
166 |
fi |
167 |
einfo "Using $LLVM_GCC_DRIVER" |
168 |
LLVM_GPP_DRIVER=${LLVM_GCC_DRIVER/%-gcc/-g++} |
169 |
else |
170 |
eerror "llvm-gcc USE flag enabled, but sys-devel/llvm-gcc was not found" |
171 |
eerror "Building with standard gcc, re-merge this package after installing" |
172 |
eerror "llvm-gcc to build with it" |
173 |
eerror "This is normal behavior on first LLVM merge" |
174 |
fi |
175 |
fi |
176 |
|
177 |
CONF_FLAGS="${CONF_FLAGS} \ |
178 |
--with-llvmgccdir=${LLVM_GCC_DIR} \ |
179 |
--with-llvmgcc=${LLVM_GCC_DRIVER} \ |
180 |
--with-llvmgxx=${LLVM_GPP_DRIVER}" |
181 |
|
182 |
if use ocaml; then |
183 |
CONF_FLAGS="${CONF_FLAGS} --enable-bindings=ocaml" |
184 |
else |
185 |
CONF_FLAGS="${CONF_FLAGS} --enable-bindings=none" |
186 |
fi |
187 |
|
188 |
if use udis86; then |
189 |
CONF_FLAGS="${CONF_FLAGS} --with-udis86" |
190 |
fi |
191 |
CONF_FLAGS="${CONF_FLAGS} $(use_enable libffi)" |
192 |
econf ${CONF_FLAGS} || die "econf failed" |
193 |
} |
194 |
|
195 |
src_compile() { |
196 |
emake VERBOSE=1 KEEP_SYMBOLS=1 REQUIRES_RTTI=1 || die "emake failed" |
197 |
} |
198 |
|
199 |
src_install() { |
200 |
emake KEEP_SYMBOLS=1 DESTDIR="${D}" install || die "install failed" |
201 |
} |