Gentoo Archives: gentoo-commits

From: "Alistair Bush (ali_bush)" <ali_bush@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/mono: ChangeLog mono-2.10.2.ebuild
Date: Fri, 06 May 2011 08:30:17
Message-Id: 20110506082936.D6B8D20054@flycatcher.gentoo.org
1 ali_bush 11/05/06 08:29:36
2
3 Modified: ChangeLog
4 Added: mono-2.10.2.ebuild
5 Log:
6 Version Bump.
7
8 (Portage version: 2.1.9.46/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.218 dev-lang/mono/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mono/ChangeLog?rev=1.218&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mono/ChangeLog?rev=1.218&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mono/ChangeLog?r1=1.217&r2=1.218
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v
20 retrieving revision 1.217
21 retrieving revision 1.218
22 diff -u -r1.217 -r1.218
23 --- ChangeLog 21 Mar 2011 20:25:55 -0000 1.217
24 +++ ChangeLog 6 May 2011 08:29:36 -0000 1.218
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-lang/mono
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.217 2011/03/21 20:25:55 ranger Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.218 2011/05/06 08:29:36 ali_bush Exp $
30 +
31 +*mono-2.10.2 (06 May 2011)
32 +
33 + 06 May 2011; Alistair Bush <ali_bush@g.o> +mono-2.10.2.ebuild:
34 + Version Bump.
35
36 21 Mar 2011; Brent Baude <ranger@g.o> mono-2.10.1-r2.ebuild:
37 Marking mono-2.10.1-r2 ppc stable for bug 359651
38
39
40
41 1.1 dev-lang/mono/mono-2.10.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mono/mono-2.10.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mono/mono-2.10.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mono-2.10.2.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/mono-2.10.2.ebuild,v 1.1 2011/05/06 08:29:36 ali_bush Exp $
51
52 EAPI="2"
53
54 inherit linux-info mono eutils flag-o-matic multilib go-mono pax-utils
55
56 DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter"
57 HOMEPAGE="http://www.mono-project.com/Main_Page"
58
59 LICENSE="MIT LGPL-2.1 GPL-2 BSD-4 NPL-1.1 Ms-PL GPL-2-with-linking-exception IDPL"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~x86"
62
63 IUSE="hardened minimal xen"
64
65 #Bash requirement is for += operator
66 COMMONDEPEND="!<dev-dotnet/pnet-0.6.12
67 !dev-util/monodoc
68 !minimal? ( =dev-dotnet/libgdiplus-${GO_MONO_REL_PV}* )
69 ia64? ( sys-libs/libunwind )"
70 RDEPEND="${COMMONDEPEND}
71 || ( www-client/links www-client/lynx )"
72
73 DEPEND="${COMMONDEPEND}
74 sys-devel/bc
75 >=app-shells/bash-3.2
76 hardened? ( sys-apps/paxctl )"
77
78 MAKEOPTS="${MAKEOPTS} -j1"
79
80 RESTRICT="test"
81
82 pkg_setup() {
83 if use kernel_linux
84 then
85 get_version
86 if linux_config_exists
87 then
88 if linux_chkconfig_present SYSVIPC
89 then
90 einfo "CONFIG_SYSVIPC is set, looking good."
91 else
92 eerror "If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling."
93 eerror "See http://bugs.gentoo.org/261869 for more info."
94 die "Please set CONFIG_SYSVIPC in your kernel .config"
95 fi
96 else
97 ewarn "Was unable to determine your kernel .config"
98 ewarn "Please note that if CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling."
99 ewarn "See http://bugs.gentoo.org/261869 for more info."
100 fi
101 fi
102 }
103
104 src_prepare() {
105 go-mono_src_prepare
106
107 # we need to sed in the paxctl -mr in the runtime/mono-wrapper.in so it don't
108 # get killed in the build proces when MPROTEC is enable. #286280
109 # RANDMMAP kill the build proces to #347365
110 if use hardened ; then
111 ewarn "We are disabling MPROTECT on the mono binary."
112 sed '/exec/ i\paxctl -mr "$r/@mono_runtime@"' -i "${S}"/runtime/mono-wrapper.in
113 fi
114 }
115
116 src_configure() {
117 # mono's build system is finiky, strip the flags
118 strip-flags
119
120 #Remove this at your own peril. Mono will barf in unexpected ways.
121 append-flags -fno-strict-aliasing
122
123 # NOTE: We need the static libs for now so mono-debugger works.
124 # See http://bugs.gentoo.org/show_bug.cgi?id=256264 for details
125 #
126 # --without-moonlight since www-plugins/moonlight is not the only one
127 # using mono: https://bugzilla.novell.com/show_bug.cgi?id=641005#c3
128 #
129 # --with-profile4 needs to be always enabled since it's used by default
130 # and, otherwise, problems like bug #340641 appear.
131 #
132 # sgen fails on ppc, bug #359515
133
134 local myconf=""
135 use ppc && myconf="${myconf} --with-sgen=no"
136 go-mono_src_configure \
137 --enable-static \
138 --disable-quiet-build \
139 --without-moonlight \
140 --with-libgdiplus=$(use minimal && printf "no" || printf "installed" ) \
141 $(use_with xen xen_opt) \
142 --without-ikvm-native \
143 --with-jit \
144 --disable-dtrace \
145 --with-profile4 \
146 ${myconf}
147 }
148
149 src_test() {
150 echo ">>> Test phase [check]: ${CATEGORY}/${PF}"
151
152 export MONO_REGISTRY_PATH="${T}/registry"
153 export XDG_DATA_HOME="${T}/data"
154 export MONO_SHARED_DIR="${T}/shared"
155 export XDG_CONFIG_HOME="${T}/config"
156 export HOME="${T}/home"
157
158 emake -j1 check
159 }
160
161 src_install() {
162 go-mono_src_install
163
164 # Remove files not respecting LDFLAGS and that we are not supposed to provide, see Fedora
165 # mono.spec and http://www.mail-archive.com/mono-devel-list@××××××××××××.com/msg24870.html
166 # for reference.
167 rm -f "${D}"/usr/$(get_libdir)/mono/2.0/mscorlib.dll.so
168 rm -f "${D}"/usr/$(get_libdir)/mono/2.0/mcs.exe.so
169 }
170
171 #THINK!!!! Before touching postrm and postinst
172 #Reference phase order:
173 #pkg_preinst
174 #pkg_prerm
175 #pkg_postrm
176 #pkg_postinst
177
178 pkg_preinst() {
179 local symlink
180 local NUNIT_DIR="/usr/$(get_libdir)/mono/nunit"
181 local pv_atom
182 if [[ "$(readlink "${ROOT}"/${NUNIT_DIR})" == *"mono-nunit"* ]]
183 then
184 for pv_atom in 2.2{,-r1,-r2,-r3,-r4} '2.4_pre*' '2.4_rc*' 2.4
185 do
186 if has_version "=dev-lang/mono-${pv_atom}"
187 then
188 einfo "If you just received a file collision warning message,"
189 einfo "be advised that this is a known problem, which will now be fixed:"
190 ebegin "Found broken symlinks created by $(best_version dev-lang/mono), fixing"
191 for symlink in \
192 "${ROOT}/${NUNIT_DIR}" \
193 "${ROOT}/usr/$(get_libdir)/pkgconfig/nunit.pc" \
194 "${ROOT}/usr/bin/nunit-console" \
195 "${ROOT}/usr/bin/nunit-console2"
196 do
197 if [[ -L "${symlink}" ]]
198 then
199 rm -f "${symlink}" &> /dev/null
200 fi
201 done
202 eend 0
203 break
204 fi
205 done
206 fi
207 }
208
209 pkg_postinst() {
210 elog "PLEASE TAKE NOTE!"
211 elog ""
212 elog "Some of the namespaces supported by Mono require extra packages to be installed."
213 elog "Below is a list of namespaces and the corresponding package you must install:"
214 elog ""
215 elog ">=x11-libs/cairo-1.6.4"
216 elog " Mono.Cairo"
217 elog "Also read:"
218 elog "http://www.mono-project.com/Mono.Cairo"
219 elog ""
220 elog ">=dev-db/firebird-2.0.4.13130.1"
221 elog " FirebirdSql.Data.Firebird"
222 elog "Also read:"
223 elog "http://www.mono-project.com/Firebird_Interbase"
224 elog ""
225 elog "=dev-dotnet/gluezilla-${GO_MONO_REL_PV}*"
226 elog " Mono.Mozilla"
227 elog " Mono.Mozilla.WebBrowser"
228 elog " Mono.Mozilla.Widget"
229 elog " Interop.SHDocVw"
230 elog " AxInterop.SHDocVw"
231 elog " Interop.mshtml.dll"
232 elog " System.Windows.Forms.WebBrowser"
233 elog " Microsoft.IE"
234 elog "Also read:"
235 elog "http://www.mono-project.com/WebBrowser"
236 elog ""
237 elog "dev-db/sqlite:3"
238 elog " Mono.Data.Sqlite"
239 elog "Also read:"
240 elog "http://www.mono-project.com/SQLite"
241 elog ""
242 elog ">=dev-db/oracle-instantclient-basic-10.2"
243 elog " System.Data.OracleClient"
244 elog "Also read:"
245 elog "http://www.mono-project.com/Oracle"
246 elog ""
247 elog "Mono also has support for packages that are not included in portage:"
248 elog ""
249 elog "No ebuild available:"
250 elog " IBM.Data.DB2"
251 elog "Also read: http://www.mono-project.com/IBM_DB2"
252 elog ""
253 elog "No ebuild needed:"
254 elog " Mono.Data.SybaseClient"
255 elog "Also read: http://www.mono-project.com/Sybase"
256 }
257
258 # NOTICE: THE COPYRIGHT FILES IN THE TARBALL ARE UNCLEAR!
259 # WHENEVER YOU THINK SOMETHING IS GPL-2+, IT'S ONLY GPL-2
260 # UNLESS MIGUEL DE ICAZA HIMSELF SAYS OTHERWISE.
261
262 # mono
263 # The code we use is LGPL, but contributions must be made under the MIT/X11
264 # license, so Novell can serve its paying customers. Exception is mono/man.
265 # LICENSE="LGPL-2.1"
266
267 # mono/man
268 # LICENSE="MIT"
269
270 # mcs/mcs
271 # mcs/gmcs
272 # LICENSE="GPL-2 MIT"
273
274 # tests
275 # LICENSE="MIT"
276
277 # mcs/class
278 # Except the listed exceptions:
279 # LICENSE="MIT"
280
281 # mcs/class/ByteFX.Data
282 # mcs/class/Npgsql
283 # LICENSE="LGPL-2.1"
284
285 # mcs/class/FirebirdSql.Data.Firebird
286 # LICENSE="IDPL"
287
288 # mcs/class/ICSharpCode.SharpZipLib
289 # LICENSE="GPL-2-with-linking-exception"
290
291 # mcs/class/MicrosoftAjaxLibrary
292 # LICENSE="Ms-Pl"
293
294 # mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs
295 # mcs/class/Microsoft.JScript/Microsoft.JScript/Token.cs
296 # mcs/class/Microsoft.JScript/Microsoft.JScript/Parser.cs
297 # mcs/class/Microsoft.JScript/Microsoft.JScript/Decompiler.cs
298 # LICENSE="|| ( NPL-1.1 GPL-2 )"
299
300 # mcs/jay
301 # LICENSE="BSD-4"
302
303 # mcs/tools
304 # Except the listed exceptions:
305 # LICENSE="MIT"
306
307 # mcs/tools/mdoc/Mono.Documentation/monodocs2html.cs
308 # LICENSE="GPL-2"
309
310 # mcs/tools/sqlsharp/SqlSharpCli.cs
311 # LICENSE="GPL-2"
312
313 # mcs/tools/csharp/repl.cs
314 # LICENSE="|| ( MIT GPL-2 )"
315
316 # mcs/tools/mono-win32-setup.nsi
317 # LICENSE="GPL-2"
318
319 # samples
320 # LICENSE="MIT"