1 |
jurek 08/05/31 12:25:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mono-1.9.ebuild mono-1.9.1.ebuild |
5 |
Log: |
6 |
dev-lang/mono: version bump (bug #213381) |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.139 dev-lang/mono/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/ChangeLog?rev=1.139&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/ChangeLog?rev=1.139&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/ChangeLog?r1=1.138&r2=1.139 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v |
19 |
retrieving revision 1.138 |
20 |
retrieving revision 1.139 |
21 |
diff -u -r1.138 -r1.139 |
22 |
--- ChangeLog 31 May 2008 11:25:25 -0000 1.138 |
23 |
+++ ChangeLog 31 May 2008 12:25:23 -0000 1.139 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for dev-lang/mono |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.138 2008/05/31 11:25:25 jurek Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.139 2008/05/31 12:25:23 jurek Exp $ |
29 |
+ |
30 |
+*mono-1.9.1 (31 May 2008) |
31 |
+*mono-1.9 (31 May 2008) |
32 |
+ |
33 |
+ 31 May 2008; Jurek Bartuszek <jurek@g.o> +mono-1.9.ebuild, |
34 |
+ +mono-1.9.1.ebuild: |
35 |
+ Version bump (bug #213381) |
36 |
|
37 |
*mono-1.2.6-r3 (31 May 2008) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-lang/mono/mono-1.9.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/mono-1.9.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/mono-1.9.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mono-1.9.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/mono-1.9.ebuild,v 1.1 2008/05/31 12:25:23 jurek Exp $ |
52 |
|
53 |
inherit eutils flag-o-matic multilib autotools |
54 |
|
55 |
DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter" |
56 |
HOMEPAGE="http://www.go-mono.com" |
57 |
SRC_URI="http://www.go-mono.com/sources/mono/${P}.tar.bz2" |
58 |
|
59 |
LICENSE="|| ( GPL-2 LGPL-2 X11 )" |
60 |
SLOT="0" |
61 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd" |
62 |
IUSE="X nptl moonlight" |
63 |
|
64 |
RDEPEND="!<dev-dotnet/pnet-0.6.12 |
65 |
>=dev-libs/glib-2.6 |
66 |
nptl? ( >=sys-devel/gcc-3.3.5-r1 ) |
67 |
ppc? ( |
68 |
>=sys-devel/gcc-3.2.3-r4 |
69 |
>=sys-libs/glibc-2.3.3_pre20040420 |
70 |
) |
71 |
X? ( >=dev-dotnet/libgdiplus-1.9 )" |
72 |
DEPEND="${RDEPEND} |
73 |
sys-devel/bc |
74 |
>=dev-util/pkgconfig-0.19" |
75 |
PDEPEND="dev-dotnet/pe-format" |
76 |
|
77 |
# Parallel build unfriendly |
78 |
MAKEOPTS="${MAKEOPTS} -j1" |
79 |
|
80 |
RESTRICT="test" |
81 |
|
82 |
function get-memory-total() { |
83 |
cat /proc/meminfo | grep MemTotal | sed -r "s/[^0-9]*([[0-9]+).*/\1/" |
84 |
} |
85 |
|
86 |
src_unpack() { |
87 |
unpack ${A} |
88 |
cd "${S}" |
89 |
|
90 |
# Fix the install path, install into $(libdir) |
91 |
sed -i -e 's:$(prefix)/lib:$(libdir):' \ |
92 |
-i -e 's:$(exec_prefix)/lib:$(libdir):' \ |
93 |
-i -e "s:'mono_libdir=\${exec_prefix}/lib':\"mono_libdir=\$libdir\":" \ |
94 |
"${S}"/{scripts,mono/metadata}/Makefile.am "${S}"/configure.in \ |
95 |
|| die "sed failed" |
96 |
|
97 |
sed -i -e 's:^libdir.*:libdir=@libdir@:' \ |
98 |
-i -e 's:${prefix}/lib/:${libdir}/:g' \ |
99 |
"${S}"/{scripts,}/*.pc.in \ |
100 |
|| die "sed failed" |
101 |
|
102 |
# Remove dummy ltconfig and let libtool handle it |
103 |
rm -f "${S}"/libgc/ltconfig |
104 |
|
105 |
epatch "${FILESDIR}/${PN}-bigint_overflow.patch" |
106 |
|
107 |
einfo "Regenerating the build files, this will take some time..." |
108 |
eautoreconf |
109 |
} |
110 |
|
111 |
src_compile() { |
112 |
# mono's build system is finiky, strip the flags |
113 |
strip-flags |
114 |
|
115 |
# Enable the 2.0 FX, use the system glib and the gc |
116 |
local myconf="--with-preview=yes --with-glib=system --with-gc=included" |
117 |
|
118 |
# Threading support |
119 |
if use amd64 || use nptl ; then |
120 |
# force __thread on amd64 (bug #83770) |
121 |
myconf="${myconf} --with-tls=__thread" |
122 |
else |
123 |
myconf="${myconf} --with-tls=pthread" |
124 |
fi |
125 |
|
126 |
# Enable large heaps if memory is more than >=3GB |
127 |
if [[ $(get-memory-total) -ge 3145728 ]] ; then |
128 |
myconf="${myconf} --with-large-heap=yes" |
129 |
fi |
130 |
|
131 |
# Force the use of monolite mcs to prevent issues with classlibs (bug #118062) |
132 |
touch "${S}"/mcs/build/deps/use-monolite |
133 |
|
134 |
econf ${myconf} $(use_with moonlight) || die "configure failed" |
135 |
emake EXTERNAL_MCS=false EXTERNAL_MONO=false |
136 |
|
137 |
if [[ "$?" -ne "0" ]]; then |
138 |
ewarn "If you are using any hardening features such as" |
139 |
ewarn "PIE+SSP/SELinux/grsec/PAX then most probably this is the reason" |
140 |
ewarn "why build has failed. In this case turn any active security" |
141 |
ewarn "enhancements off and try emerging the package again" |
142 |
die |
143 |
fi |
144 |
} |
145 |
|
146 |
src_test() { |
147 |
vecho ">>> Test phase [check]: ${CATEGORY}/${PF}" |
148 |
|
149 |
mkdir -p "${T}/home/mono" || die "mkdir home failed" |
150 |
|
151 |
export HOME="${T}/home/mono" |
152 |
export XDG_CONFIG_HOME="${T}/home/mono" |
153 |
export XDG_DATA_HOME="${T}/home/mono" |
154 |
|
155 |
if ! LC_ALL=C emake -j1 check; then |
156 |
hasq test $FEATURES && die "Make check failed. See above for details." |
157 |
hasq test $FEATURES || eerror "Make check failed. See above for details." |
158 |
fi |
159 |
} |
160 |
|
161 |
src_install() { |
162 |
emake DESTDIR="${D}" install || die "install failed" |
163 |
|
164 |
dodoc AUTHORS ChangeLog NEWS README |
165 |
|
166 |
docinto docs |
167 |
dodoc docs/* |
168 |
|
169 |
docinto libgc |
170 |
dodoc libgc/ChangeLog |
171 |
} |
172 |
|
173 |
|
174 |
|
175 |
1.1 dev-lang/mono/mono-1.9.1.ebuild |
176 |
|
177 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/mono-1.9.1.ebuild?rev=1.1&view=markup |
178 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/mono-1.9.1.ebuild?rev=1.1&content-type=text/plain |
179 |
|
180 |
Index: mono-1.9.1.ebuild |
181 |
=================================================================== |
182 |
# Copyright 1999-2008 Gentoo Foundation |
183 |
# Distributed under the terms of the GNU General Public License v2 |
184 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/mono-1.9.1.ebuild,v 1.1 2008/05/31 12:25:23 jurek Exp $ |
185 |
|
186 |
inherit eutils flag-o-matic multilib autotools |
187 |
|
188 |
DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter" |
189 |
HOMEPAGE="http://www.go-mono.com" |
190 |
SRC_URI="http://www.go-mono.com/sources/mono/${P}.tar.bz2" |
191 |
|
192 |
LICENSE="|| ( GPL-2 LGPL-2 X11 )" |
193 |
SLOT="0" |
194 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd" |
195 |
IUSE="X nptl moonlight" |
196 |
|
197 |
RDEPEND="!<dev-dotnet/pnet-0.6.12 |
198 |
>=dev-libs/glib-2.6 |
199 |
nptl? ( >=sys-devel/gcc-3.3.5-r1 ) |
200 |
ppc? ( |
201 |
>=sys-devel/gcc-3.2.3-r4 |
202 |
>=sys-libs/glibc-2.3.3_pre20040420 |
203 |
) |
204 |
X? ( >=dev-dotnet/libgdiplus-1.9 )" |
205 |
DEPEND="${RDEPEND} |
206 |
sys-devel/bc |
207 |
>=dev-util/pkgconfig-0.19" |
208 |
PDEPEND="dev-dotnet/pe-format" |
209 |
|
210 |
# Parallel build unfriendly |
211 |
MAKEOPTS="${MAKEOPTS} -j1" |
212 |
|
213 |
RESTRICT="test" |
214 |
|
215 |
function get-memory-total() { |
216 |
cat /proc/meminfo | grep MemTotal | sed -r "s/[^0-9]*([[0-9]+).*/\1/" |
217 |
} |
218 |
|
219 |
src_unpack() { |
220 |
unpack ${A} |
221 |
cd "${S}" |
222 |
|
223 |
# Fix the install path, install into $(libdir) |
224 |
sed -i -e 's:$(prefix)/lib:$(libdir):' \ |
225 |
-i -e 's:$(exec_prefix)/lib:$(libdir):' \ |
226 |
-i -e "s:'mono_libdir=\${exec_prefix}/lib':\"mono_libdir=\$libdir\":" \ |
227 |
"${S}"/{scripts,mono/metadata}/Makefile.am "${S}"/configure.in \ |
228 |
|| die "sed failed" |
229 |
|
230 |
sed -i -e 's:^libdir.*:libdir=@libdir@:' \ |
231 |
-i -e 's:${prefix}/lib/:${libdir}/:g' \ |
232 |
"${S}"/{scripts,}/*.pc.in \ |
233 |
|| die "sed failed" |
234 |
|
235 |
# Remove dummy ltconfig and let libtool handle it |
236 |
rm -f "${S}"/libgc/ltconfig |
237 |
|
238 |
epatch "${FILESDIR}/${PN}-bigint_overflow.patch" |
239 |
|
240 |
einfo "Regenerating the build files, this will take some time..." |
241 |
eautoreconf |
242 |
} |
243 |
|
244 |
src_compile() { |
245 |
# mono's build system is finiky, strip the flags |
246 |
strip-flags |
247 |
|
248 |
# Enable the 2.0 FX, use the system glib and the gc |
249 |
local myconf="--with-preview=yes --with-glib=system --with-gc=included" |
250 |
|
251 |
# Threading support |
252 |
if use amd64 || use nptl ; then |
253 |
# force __thread on amd64 (bug #83770) |
254 |
myconf="${myconf} --with-tls=__thread" |
255 |
else |
256 |
myconf="${myconf} --with-tls=pthread" |
257 |
fi |
258 |
|
259 |
# Enable large heaps if memory is more than >=3GB |
260 |
if [[ $(get-memory-total) -ge 3145728 ]] ; then |
261 |
myconf="${myconf} --with-large-heap=yes" |
262 |
fi |
263 |
|
264 |
# Force the use of monolite mcs to prevent issues with classlibs (bug #118062) |
265 |
touch "${S}"/mcs/build/deps/use-monolite |
266 |
|
267 |
econf ${myconf} $(use_with moonlight) || die "configure failed" |
268 |
emake EXTERNAL_MCS=false EXTERNAL_MONO=false |
269 |
|
270 |
if [[ "$?" -ne "0" ]]; then |
271 |
ewarn "If you are using any hardening features such as" |
272 |
ewarn "PIE+SSP/SELinux/grsec/PAX then most probably this is the reason" |
273 |
ewarn "why build has failed. In this case turn any active security" |
274 |
ewarn "enhancements off and try emerging the package again" |
275 |
die |
276 |
fi |
277 |
} |
278 |
|
279 |
src_test() { |
280 |
vecho ">>> Test phase [check]: ${CATEGORY}/${PF}" |
281 |
|
282 |
mkdir -p "${T}/home/mono" || die "mkdir home failed" |
283 |
|
284 |
export HOME="${T}/home/mono" |
285 |
export XDG_CONFIG_HOME="${T}/home/mono" |
286 |
export XDG_DATA_HOME="${T}/home/mono" |
287 |
|
288 |
if ! LC_ALL=C emake -j1 check; then |
289 |
hasq test $FEATURES && die "Make check failed. See above for details." |
290 |
hasq test $FEATURES || eerror "Make check failed. See above for details." |
291 |
fi |
292 |
} |
293 |
|
294 |
src_install() { |
295 |
emake DESTDIR="${D}" install || die "install failed" |
296 |
|
297 |
dodoc AUTHORS ChangeLog NEWS README |
298 |
|
299 |
docinto docs |
300 |
dodoc docs/* |
301 |
|
302 |
docinto libgc |
303 |
dodoc libgc/ChangeLog |
304 |
} |
305 |
|
306 |
|
307 |
|
308 |
-- |
309 |
gentoo-commits@l.g.o mailing list |