Gentoo Archives: gentoo-commits

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