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