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.ebuild
Date: Mon, 30 Mar 2009 21:48:22
Message-Id: E1LoPLA-0007As-AE@stork.gentoo.org
1 loki_val 09/03/30 21:48:20
2
3 Modified: ChangeLog
4 Added: mono-2.4.ebuild
5 Log:
6 Bump to mono-2.4 version.
7 (Portage version: 2.2_rc28/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.158 dev-lang/mono/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/ChangeLog?rev=1.158&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/ChangeLog?rev=1.158&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/ChangeLog?r1=1.157&r2=1.158
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v
19 retrieving revision 1.157
20 retrieving revision 1.158
21 diff -u -r1.157 -r1.158
22 --- ChangeLog 28 Mar 2009 00:53:50 -0000 1.157
23 +++ ChangeLog 30 Mar 2009 21:48:20 -0000 1.158
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-lang/mono
26 # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.157 2009/03/28 00:53:50 loki_val Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.158 2009/03/30 21:48:20 loki_val Exp $
29 +
30 +*mono-2.4 (30 Mar 2009)
31 +
32 + 30 Mar 2009; Peter Alfredsen <loki_val@g.o> +mono-2.4.ebuild:
33 + Bump to mono-2.4 version.
34
35 28 Mar 2009; Peter Alfredsen <loki_val@g.o>
36 +files/mono-2.2-freebsd-elf_common.patch, mono-2.2-r4.ebuild:
37
38
39
40 1.1 dev-lang/mono/mono-2.4.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/mono-2.4.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/mono-2.4.ebuild?rev=1.1&content-type=text/plain
44
45 Index: mono-2.4.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/mono-2.4.ebuild,v 1.1 2009/03/30 21:48:20 loki_val Exp $
50
51 EAPI=2
52
53 inherit mono eutils flag-o-matic multilib go-mono
54
55 DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter"
56 HOMEPAGE="http://www.go-mono.com"
57
58 LICENSE="MIT LGPL-2.1 GPL-2 BSD-4 NPL-1.1 Ms-PL GPL-2-with-linking-exception IDPL"
59 SLOT="0"
60 KEYWORDS="~x86 ~amd64"
61 IUSE="xen moonlight minimal"
62
63 #Bash requirement is for += operator
64 COMMONDEPEND="!<dev-dotnet/pnet-0.6.12
65 !dev-util/monodoc
66 dev-libs/glib:2
67 !minimal? ( =dev-dotnet/libgdiplus-${GO_MONO_REL_PV}* )
68 ia64? (
69 sys-libs/libunwind
70 )"
71 RDEPEND="${COMMONDEPEND}
72 || ( www-client/links www-client/lynx )"
73
74 DEPEND="${COMMONDEPEND}
75 sys-devel/bc
76 >=app-shells/bash-3.2"
77 PDEPEND="dev-dotnet/pe-format"
78
79 MAKEOPTS="${MAKEOPTS} -j1"
80
81 RESTRICT="test"
82
83 PATCHES=(
84 "${WORKDIR}/mono-2.2-libdir126.patch"
85 "${FILESDIR}/mono-2.2-ppc-threading.patch"
86 "${FILESDIR}/mono-2.2-uselibdir.patch"
87 )
88
89 pkg_setup() {
90 MONO_NUNIT_DIR="/usr/$(get_libdir)/mono/mono-nunit"
91 NUNIT_DIR="/usr/$(get_libdir)/mono/nunit"
92 }
93
94 src_prepare() {
95 sed -e "s:@MONOLIBDIR@:$(get_libdir):" \
96 < "${FILESDIR}"/mono-2.2-libdir126.patch \
97 > "${WORKDIR}"/mono-2.2-libdir126.patch ||
98 die "Sedding patch file failed"
99 go-mono_src_prepare
100 }
101
102 src_configure() {
103 # mono's build system is finiky, strip the flags
104 strip-flags
105
106 #Remove this at your own peril. Mono will barf in unexpected ways.
107 append-flags -fno-strict-aliasing
108
109 #NOTE: We need the static libs for now so mono-debugger works.
110 #See http://bugs.gentoo.org/show_bug.cgi?id=256264 for details
111 go-mono_src_configure \
112 --enable-static \
113 --disable-quiet-build \
114 --with-preview \
115 --with-glib=system \
116 $(use_with moonlight) \
117 --with-libgdiplus=$(use minimal && printf "no" || printf "installed" ) \
118 $(use_with xen xen_opt) \
119 --without-ikvm-native \
120 --with-jit \
121 --disable-dtrace
122
123 }
124
125 src_test() {
126 vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
127
128 export MONO_REGISTRY_PATH="${T}/registry"
129 export XDG_DATA_HOME="${T}/data"
130 export MONO_SHARED_DIR="${T}/shared"
131 export XDG_CONFIG_HOME="${T}/config"
132 export HOME="${T}/home"
133
134 emake -j1 check
135 }
136
137 src_install() {
138 go-mono_src_install
139 #Bug 255610
140 sed -i -e "s:mono/2.0/mod.exe:mono/1.0/mod.exe:" \
141 "${D}"/usr/bin/mod || die "Failed to fix mod."
142
143 find "${D}"/usr/ -name '*nunit-docs*' -exec rm -rf '{}' '+' || die "Removing nunit .docs failed"
144
145 #Standardize install paths for eselect-nunit
146 dodir ${MONO_NUNIT_DIR}
147 rm -f "${D}"/usr/bin/nunit-console*
148
149 for file in "${D}"/usr/$(get_libdir)/mono/1.0/nunit*.dll "${D}"/usr/$(get_libdir)/mono/1.0/nunit*.exe
150 do
151 dosym ../1.0/${file##*/} ${MONO_NUNIT_DIR}/${file##*/}
152 done
153
154 make_wrapper "nunit-console" "mono ${MONO_NUNIT_DIR}/nunit-console.exe" "" "" "${MONO_NUNIT_DIR}"
155 dosym nunit-console "${MONO_NUNIT_DIR}"/nunit-console2
156 }
157
158 #THINK!!!! Before touching postrm and postinst
159 #Reference phase order:
160 #pkg_preinst
161 #pkg_prerm
162 #pkg_postrm
163 #pkg_postinst
164
165 pkg_postrm() {
166 if [[ "$(readlink "${ROOT}"/${NUNIT_DIR})" == *"mono-nunit" ]]
167 then
168 ebegin "Removing old symlinks for nunit"
169 rm -rf "${ROOT}"/${NUNIT_DIR} &> /dev/null
170 rm -rf "${ROOT}"/usr/bin/nunit-console &> /dev/null
171 rm -rf "${ROOT}"/usr/bin/nunit-console2 &> /dev/null
172 rm -rf "${ROOT}"/usr/$(get_libdir)/pkgconfig/nunit.pc &> /dev/null
173 eend 0
174 fi
175 }
176
177 pkg_postinst() {
178 local -a FAIL
179 local fail return=0
180 if ! [[ -L "${ROOT}/${NUNIT_DIR}" ]]
181 then
182 einfo "No default NUnit installed, using mono-nunit as default."
183 ebegin "Removing stale symlinks for nunit, if any"
184 rm -rf "${ROOT}"/${NUNIT_DIR} &> /dev/null
185 rm -rf "${ROOT}"/usr/bin/nunit-console &> /dev/null
186 rm -rf "${ROOT}"/usr/bin/nunit-console2 &> /dev/null
187 rm -rf "${ROOT}"/usr/$(get_libdir)/pkgconfig/nunit.pc &> /dev/null
188 eend 0
189
190 ebegin "Installing mono-nunit symlinks"
191 ln -sf mono-nunit "${ROOT}/${NUNIT_DIR}" || { return=1; FAIL+=( $NUNIT_DIR ) ; }
192 ln -sf ../..${NUNIT_DIR}/nunit-console "${ROOT}"/usr/bin/nunit-console || { return=1; FAIL+=( /usr/bin/nunit-console ) ; }
193 ln -sf ../..${NUNIT_DIR}/nunit-console2 "${ROOT}"/usr/bin/nunit-console2 || { return=1; FAIL+=( /usr/bin/nunit-console2 ) ; }
194 ln -sf mono-nunit.pc "${ROOT}"/usr/$(get_libdir)/pkgconfig/nunit.pc || { return=1; FAIL+=( /usr/$(get_libdir)/pkgconfig/nunit.pc ) ; }
195 eend $return
196
197 if [[ "$return" = "1" ]]
198 then
199 elog "These errors are non-fatal, if re-emerging mono does not solve them, file a bug."
200 for fail in "${FAIL[@]}"
201 do
202 eerror "Linking $fail failed"
203 done
204 fi
205 fi
206
207 elog "PLEASE TAKE NOTE!"
208 elog ""
209 elog "Some of the namespaces supported by Mono require extra packages to be installed."
210 elog "Below is a list of namespaces and the corresponding package you must install:"
211 elog ""
212 elog ">=x11-libs/cairo-1.6.4"
213 elog " Mono.Cairo"
214 elog "Also read:"
215 elog "http://www.mono-project.com/Mono.Cairo"
216 elog ""
217 elog ">=dev-db/firebird-2.0.4.13130.1"
218 elog " FirebirdSql.Data.Firebird"
219 elog "Also read:"
220 elog "http://www.mono-project.com/Firebird_Interbase"
221 elog ""
222 elog "=dev-dotnet/gluezilla-${GO_MONO_REL_PV}*"
223 elog " Mono.Mozilla"
224 elog " Mono.Mozilla.WebBrowser"
225 elog " Mono.Mozilla.Widget"
226 elog " Interop.SHDocVw"
227 elog " AxInterop.SHDocVw"
228 elog " Interop.mshtml.dll"
229 elog " System.Windows.Forms.WebBrowser"
230 elog " Microsoft.IE"
231 elog "Also read:"
232 elog "http://www.mono-project.com/WebBrowser"
233 elog ""
234 elog "dev-db/sqlite:3"
235 elog " Mono.Data.Sqlite"
236 elog " Mono.Data.SqliteClient"
237 elog "Also read:"
238 elog "http://www.mono-project.com/SQLite"
239 elog ""
240 elog ">=dev-db/oracle-instantclient-basic-10.2"
241 elog " System.Data.OracleClient"
242 elog "Also read:"
243 elog "http://www.mono-project.com/Oracle"
244 elog ""
245 elog "Mono also has support for packages that are not included in portage:"
246 elog ""
247 elog "No ebuild available:"
248 elog " IBM.Data.DB2"
249 elog "Also read: http://www.mono-project.com/IBM_DB2"
250 elog ""
251 elog "No ebuild needed:"
252 elog " Mono.Data.SybaseClient"
253 elog "Also read: http://www.mono-project.com/Sybase"
254 }
255
256 # NOTICE: THE COPYRIGHT FILES IN THE TARBALL ARE UNCLEAR!
257 # WHENEVER YOU THINK SOMETHING IS GPL-2+, IT'S ONLY GPL-2
258 # UNLESS MIGUEL DE ICAZA HIMSELF SAYS OTHERWISE.
259
260 # mono
261 # The code we use is LGPL, but contributions must be made under the MIT/X11
262 # license, so Novell can serve its paying customers. Exception is mono/man.
263 # LICENSE="LGPL-2.1"
264
265 # mono/man
266 # LICENSE="MIT"
267
268 # mcs/mcs
269 # mcs/gmcs
270 # LICENSE="GPL-2 MIT"
271
272 # tests
273 # LICENSE="MIT"
274
275 # mcs/class
276 # Except the listed exceptions:
277 # LICENSE="MIT"
278
279 # mcs/class/ByteFX.Data
280 # mcs/class/Npgsql
281 # LICENSE="LGPL-2.1"
282
283 # mcs/class/FirebirdSql.Data.Firebird
284 # LICENSE="IDPL"
285
286 # mcs/class/ICSharpCode.SharpZipLib
287 # LICENSE="GPL-2-with-linking-exception"
288
289 # mcs/class/MicrosoftAjaxLibrary
290 # LICENSE="Ms-Pl"
291
292 # mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs
293 # mcs/class/Microsoft.JScript/Microsoft.JScript/Token.cs
294 # mcs/class/Microsoft.JScript/Microsoft.JScript/Parser.cs
295 # mcs/class/Microsoft.JScript/Microsoft.JScript/Decompiler.cs
296 # LICENSE="|| ( NPL-1.1 GPL-2 )"
297
298 # mcs/jay
299 # LICENSE="BSD-4"
300
301 # mcs/tools
302 # Except the listed exceptions:
303 # LICENSE="MIT"
304
305 # mcs/tools/mdoc/Mono.Documentation/monodocs2html.cs
306 # LICENSE="GPL-2"
307
308 # mcs/tools/sqlsharp/SqlSharpCli.cs
309 # LICENSE="GPL-2"
310
311 # mcs/tools/csharp/repl.cs
312 # LICENSE="|| ( MIT GPL-2 )"
313
314 # mcs/tools/mono-win32-setup.nsi
315 # LICENSE="GPL-2"
316
317 # samples
318 # LICENSE="MIT"