Gentoo Archives: gentoo-commits

From: "Peter Alfredsen (loki_val)" <loki_val@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/mono: ChangeLog mono-2.4.2.3.ebuild mono-2.4.ebuild mono-2.4-r3.ebuild
Date: Sun, 23 Aug 2009 00:59:25
Message-Id: E1Mf1QZ-0006DL-Fc@stork.gentoo.org
1 loki_val 09/08/23 00:59:23
2
3 Modified: ChangeLog
4 Added: mono-2.4.2.3.ebuild
5 Removed: mono-2.4.ebuild mono-2.4-r3.ebuild
6 Log:
7 Bump to 2.4.2.3, remove 2.4, 2.4-r3. Fixes bug 282012. Contains fix for 277878.
8 (Portage version: 2.2_rc39/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.178 dev-lang/mono/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/ChangeLog?rev=1.178&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/ChangeLog?rev=1.178&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/ChangeLog?r1=1.177&r2=1.178
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v
20 retrieving revision 1.177
21 retrieving revision 1.178
22 diff -u -r1.177 -r1.178
23 --- ChangeLog 30 Jun 2009 06:01:03 -0000 1.177
24 +++ ChangeLog 23 Aug 2009 00:59:23 -0000 1.178
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-lang/mono
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.177 2009/06/30 06:01:03 loki_val Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.178 2009/08/23 00:59:23 loki_val Exp $
30 +
31 +*mono-2.4.2.3 (23 Aug 2009)
32 +
33 + 23 Aug 2009; Peter Alfredsen <loki_val@g.o> -mono-2.4.ebuild,
34 + -mono-2.4-r3.ebuild, +mono-2.4.2.3.ebuild:
35 + Bump to 2.4.2.3, remove 2.4, 2.4-r3. Fixes bug 282012. Contains fix for
36 + 277878.
37
38 *mono-2.4.2 (30 Jun 2009)
39
40
41
42
43 1.1 dev-lang/mono/mono-2.4.2.3.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/mono-2.4.2.3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/mono-2.4.2.3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mono-2.4.2.3.ebuild
49 ===================================================================
50 # Copyright 1999-2009 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.4.2.3.ebuild,v 1.1 2009/08/23 00:59:23 loki_val Exp $
53
54 EAPI=2
55
56 inherit linux-info mono eutils flag-o-matic multilib go-mono
57
58 DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter"
59 HOMEPAGE="http://www.go-mono.com"
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="~x86 ~ppc ~amd64"
64 IUSE="xen moonlight minimal"
65
66 #Bash requirement is for += operator
67 COMMONDEPEND="!<dev-dotnet/pnet-0.6.12
68 !dev-util/monodoc
69 dev-libs/glib:2
70 !minimal? ( =dev-dotnet/libgdiplus-${GO_MONO_REL_PV}* )
71 ia64? (
72 sys-libs/libunwind
73 )"
74 RDEPEND="${COMMONDEPEND}
75 || ( www-client/links www-client/lynx )"
76
77 DEPEND="${COMMONDEPEND}
78 sys-devel/bc
79 >=app-shells/bash-3.2"
80 PDEPEND="dev-dotnet/pe-format"
81
82 MAKEOPTS="${MAKEOPTS} -j1"
83
84 RESTRICT="test"
85
86 PATCHES=(
87 "${WORKDIR}/mono-2.2-libdir126.patch"
88 "${FILESDIR}/mono-2.2-ppc-threading.patch"
89 "${FILESDIR}/mono-2.2-uselibdir.patch"
90 )
91
92 pkg_setup() {
93 if use kernel_linux
94 then
95 get_version
96 if linux_config_exists
97 then
98 if linux_chkconfig_present SYSVIPC
99 then
100 einfo "CONFIG_SYSVIPC is set, looking good."
101 else
102 eerror "If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling."
103 eerror "See http://bugs.gentoo.org/261869 for more info."
104 die "Please set CONFIG_SYSVIPC in your kernel .config"
105 fi
106 else
107 ewarn "Was unable to determine your kernel .config"
108 ewarn "Please note that if CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling."
109 ewarn "See http://bugs.gentoo.org/261869 for more info."
110 fi
111 fi
112 }
113
114 src_prepare() {
115 sed -e "s:@MONOLIBDIR@:$(get_libdir):" \
116 < "${FILESDIR}"/mono-2.2-libdir126.patch \
117 > "${WORKDIR}"/mono-2.2-libdir126.patch ||
118 die "Sedding patch file failed"
119 go-mono_src_prepare
120 }
121
122 src_configure() {
123 # mono's build system is finiky, strip the flags
124 strip-flags
125
126 #Remove this at your own peril. Mono will barf in unexpected ways.
127 append-flags -fno-strict-aliasing
128
129 #NOTE: We need the static libs for now so mono-debugger works.
130 #See http://bugs.gentoo.org/show_bug.cgi?id=256264 for details
131 go-mono_src_configure \
132 --enable-static \
133 --disable-quiet-build \
134 --with-preview \
135 --with-glib=system \
136 $(use_with moonlight) \
137 --with-libgdiplus=$(use minimal && printf "no" || printf "installed" ) \
138 $(use_with xen xen_opt) \
139 --without-ikvm-native \
140 --with-jit \
141 --disable-dtrace
142
143 }
144
145 src_test() {
146 vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
147
148 export MONO_REGISTRY_PATH="${T}/registry"
149 export XDG_DATA_HOME="${T}/data"
150 export MONO_SHARED_DIR="${T}/shared"
151 export XDG_CONFIG_HOME="${T}/config"
152 export HOME="${T}/home"
153
154 emake -j1 check
155 }
156
157 src_install() {
158 go-mono_src_install
159
160 #Bug 255610
161 sed -i -e "s:mono/2.0/mod.exe:mono/1.0/mod.exe:" \
162 "${D}"/usr/bin/mod || die "Failed to fix mod."
163
164 find "${D}"/usr/ -name '*nunit-docs*' -exec rm -rf '{}' '+' || die "Removing nunit .docs failed"
165
166 # Remove Jay to avoid colliding with dev-util/jay, the internal
167 # version is only used to build mcs.
168 rm -r "${D}"/usr/share/jay "${D}"/usr/bin/jay "${D}"/usr/share/man/man1/jay.1*
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 " Mono.Data.SqliteClient"
240 elog "Also read:"
241 elog "http://www.mono-project.com/SQLite"
242 elog ""
243 elog ">=dev-db/oracle-instantclient-basic-10.2"
244 elog " System.Data.OracleClient"
245 elog "Also read:"
246 elog "http://www.mono-project.com/Oracle"
247 elog ""
248 elog "Mono also has support for packages that are not included in portage:"
249 elog ""
250 elog "No ebuild available:"
251 elog " IBM.Data.DB2"
252 elog "Also read: http://www.mono-project.com/IBM_DB2"
253 elog ""
254 elog "No ebuild needed:"
255 elog " Mono.Data.SybaseClient"
256 elog "Also read: http://www.mono-project.com/Sybase"
257 }
258
259 # NOTICE: THE COPYRIGHT FILES IN THE TARBALL ARE UNCLEAR!
260 # WHENEVER YOU THINK SOMETHING IS GPL-2+, IT'S ONLY GPL-2
261 # UNLESS MIGUEL DE ICAZA HIMSELF SAYS OTHERWISE.
262
263 # mono
264 # The code we use is LGPL, but contributions must be made under the MIT/X11
265 # license, so Novell can serve its paying customers. Exception is mono/man.
266 # LICENSE="LGPL-2.1"
267
268 # mono/man
269 # LICENSE="MIT"
270
271 # mcs/mcs
272 # mcs/gmcs
273 # LICENSE="GPL-2 MIT"
274
275 # tests
276 # LICENSE="MIT"
277
278 # mcs/class
279 # Except the listed exceptions:
280 # LICENSE="MIT"
281
282 # mcs/class/ByteFX.Data
283 # mcs/class/Npgsql
284 # LICENSE="LGPL-2.1"
285
286 # mcs/class/FirebirdSql.Data.Firebird
287 # LICENSE="IDPL"
288
289 # mcs/class/ICSharpCode.SharpZipLib
290 # LICENSE="GPL-2-with-linking-exception"
291
292 # mcs/class/MicrosoftAjaxLibrary
293 # LICENSE="Ms-Pl"
294
295 # mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs
296 # mcs/class/Microsoft.JScript/Microsoft.JScript/Token.cs
297 # mcs/class/Microsoft.JScript/Microsoft.JScript/Parser.cs
298 # mcs/class/Microsoft.JScript/Microsoft.JScript/Decompiler.cs
299 # LICENSE="|| ( NPL-1.1 GPL-2 )"
300
301 # mcs/jay
302 # LICENSE="BSD-4"
303
304 # mcs/tools
305 # Except the listed exceptions:
306 # LICENSE="MIT"
307
308 # mcs/tools/mdoc/Mono.Documentation/monodocs2html.cs
309 # LICENSE="GPL-2"
310
311 # mcs/tools/sqlsharp/SqlSharpCli.cs
312 # LICENSE="GPL-2"
313
314 # mcs/tools/csharp/repl.cs
315 # LICENSE="|| ( MIT GPL-2 )"
316
317 # mcs/tools/mono-win32-setup.nsi
318 # LICENSE="GPL-2"
319
320 # samples
321 # LICENSE="MIT"