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.ebuild mono-2.4.2_rc1.ebuild
Date: Tue, 30 Jun 2009 06:01:05
Message-Id: E1MLWOt-0005Sl-ES@stork.gentoo.org
1 loki_val 09/06/30 06:01:03
2
3 Modified: ChangeLog
4 Added: mono-2.4.2.ebuild
5 Removed: mono-2.4.2_rc1.ebuild
6 Log:
7 Bump to 2.4.2
8 (Portage version: 2.2_rc33/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.177 dev-lang/mono/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/ChangeLog?rev=1.177&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/ChangeLog?rev=1.177&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/ChangeLog?r1=1.176&r2=1.177
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v
20 retrieving revision 1.176
21 retrieving revision 1.177
22 diff -u -r1.176 -r1.177
23 --- ChangeLog 22 Jun 2009 22:45:35 -0000 1.176
24 +++ ChangeLog 30 Jun 2009 06:01:03 -0000 1.177
25 @@ -1,6 +1,12 @@
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.176 2009/06/22 22:45:35 loki_val Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.177 2009/06/30 06:01:03 loki_val Exp $
30 +
31 +*mono-2.4.2 (30 Jun 2009)
32 +
33 + 30 Jun 2009; Peter Alfredsen <loki_val@g.o> -mono-2.4.2_rc1.ebuild,
34 + +mono-2.4.2.ebuild:
35 + Bump to 2.4.2
36
37 *mono-2.4.2_rc1 (22 Jun 2009)
38
39
40
41
42 1.1 dev-lang/mono/mono-2.4.2.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/mono-2.4.2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/mono-2.4.2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mono-2.4.2.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/mono-2.4.2.ebuild,v 1.1 2009/06/30 06:01:03 loki_val Exp $
52
53 EAPI=2
54
55 inherit linux-info mono eutils flag-o-matic multilib go-mono
56
57 DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter"
58 HOMEPAGE="http://www.go-mono.com"
59
60 LICENSE="MIT LGPL-2.1 GPL-2 BSD-4 NPL-1.1 Ms-PL GPL-2-with-linking-exception IDPL"
61 SLOT="0"
62 KEYWORDS="~x86 ~ppc ~amd64"
63 IUSE="xen moonlight minimal"
64
65 #Bash requirement is for += operator
66 COMMONDEPEND="!<dev-dotnet/pnet-0.6.12
67 !dev-util/monodoc
68 dev-libs/glib:2
69 !minimal? ( =dev-dotnet/libgdiplus-${GO_MONO_REL_PV}* )
70 ia64? (
71 sys-libs/libunwind
72 )"
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 PDEPEND="dev-dotnet/pe-format"
80
81 MAKEOPTS="${MAKEOPTS} -j1"
82
83 RESTRICT="test"
84
85 PATCHES=(
86 "${WORKDIR}/mono-2.2-libdir126.patch"
87 "${FILESDIR}/mono-2.2-ppc-threading.patch"
88 "${FILESDIR}/mono-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}"/mono-2.2-libdir126.patch \
116 > "${WORKDIR}"/mono-2.2-libdir126.patch ||
117 die "Sedding patch file failed"
118 go-mono_src_prepare
119 }
120
121 src_configure() {
122 # mono's build system is finiky, strip the flags
123 strip-flags
124
125 #Remove this at your own peril. Mono will barf in unexpected ways.
126 append-flags -fno-strict-aliasing
127
128 #NOTE: We need the static libs for now so mono-debugger works.
129 #See http://bugs.gentoo.org/show_bug.cgi?id=256264 for details
130 go-mono_src_configure \
131 --enable-static \
132 --disable-quiet-build \
133 --with-preview \
134 --with-glib=system \
135 $(use_with moonlight) \
136 --with-libgdiplus=$(use minimal && printf "no" || printf "installed" ) \
137 $(use_with xen xen_opt) \
138 --without-ikvm-native \
139 --with-jit \
140 --disable-dtrace
141
142 }
143
144 src_test() {
145 vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
146
147 export MONO_REGISTRY_PATH="${T}/registry"
148 export XDG_DATA_HOME="${T}/data"
149 export MONO_SHARED_DIR="${T}/shared"
150 export XDG_CONFIG_HOME="${T}/config"
151 export HOME="${T}/home"
152
153 emake -j1 check
154 }
155
156 src_install() {
157 go-mono_src_install
158
159 #Bug 255610
160 sed -i -e "s:mono/2.0/mod.exe:mono/1.0/mod.exe:" \
161 "${D}"/usr/bin/mod || die "Failed to fix mod."
162
163 find "${D}"/usr/ -name '*nunit-docs*' -exec rm -rf '{}' '+' || die "Removing nunit .docs failed"
164
165 # Remove Jay to avoid colliding with dev-util/jay, the internal
166 # version is only used to build mcs.
167 rm -r "${D}"/usr/share/jay "${D}"/usr/bin/jay "${D}"/usr/share/man/man1/jay.1*
168 }
169
170 #THINK!!!! Before touching postrm and postinst
171 #Reference phase order:
172 #pkg_preinst
173 #pkg_prerm
174 #pkg_postrm
175 #pkg_postinst
176
177 pkg_preinst() {
178 local symlink
179 local NUNIT_DIR="/usr/$(get_libdir)/mono/nunit"
180 local pv_atom
181 if [[ "$(readlink "${ROOT}"/${NUNIT_DIR})" == *"mono-nunit"* ]]
182 then
183 for pv_atom in 2.2{,-r1,-r2,-r3,-r4} '2.4_pre*' '2.4_rc*' 2.4
184 do
185 if has_version "=dev-lang/mono-${pv_atom}"
186 then
187 einfo "If you just received a file collision warning message,"
188 einfo "be advised that this is a known problem, which will now be fixed:"
189 ebegin "Found broken symlinks created by $(best_version dev-lang/mono), fixing"
190 for symlink in \
191 "${ROOT}/${NUNIT_DIR}" \
192 "${ROOT}/usr/$(get_libdir)/pkgconfig/nunit.pc" \
193 "${ROOT}/usr/bin/nunit-console" \
194 "${ROOT}/usr/bin/nunit-console2"
195 do
196 if [[ -L "${symlink}" ]]
197 then
198 rm -f "${symlink}" &> /dev/null
199 fi
200 done
201 eend 0
202 break
203 fi
204 done
205 fi
206 }
207
208 pkg_postinst() {
209 elog "PLEASE TAKE NOTE!"
210 elog ""
211 elog "Some of the namespaces supported by Mono require extra packages to be installed."
212 elog "Below is a list of namespaces and the corresponding package you must install:"
213 elog ""
214 elog ">=x11-libs/cairo-1.6.4"
215 elog " Mono.Cairo"
216 elog "Also read:"
217 elog "http://www.mono-project.com/Mono.Cairo"
218 elog ""
219 elog ">=dev-db/firebird-2.0.4.13130.1"
220 elog " FirebirdSql.Data.Firebird"
221 elog "Also read:"
222 elog "http://www.mono-project.com/Firebird_Interbase"
223 elog ""
224 elog "=dev-dotnet/gluezilla-${GO_MONO_REL_PV}*"
225 elog " Mono.Mozilla"
226 elog " Mono.Mozilla.WebBrowser"
227 elog " Mono.Mozilla.Widget"
228 elog " Interop.SHDocVw"
229 elog " AxInterop.SHDocVw"
230 elog " Interop.mshtml.dll"
231 elog " System.Windows.Forms.WebBrowser"
232 elog " Microsoft.IE"
233 elog "Also read:"
234 elog "http://www.mono-project.com/WebBrowser"
235 elog ""
236 elog "dev-db/sqlite:3"
237 elog " Mono.Data.Sqlite"
238 elog " Mono.Data.SqliteClient"
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"