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.2-r1.ebuild mono-2.8.2.ebuild
Date: Wed, 26 Jan 2011 23:32:02
Message-Id: 20110126233152.D8D6C20054@flycatcher.gentoo.org
1 pacho 11/01/26 23:31:52
2
3 Modified: ChangeLog
4 Added: mono-2.8.2-r1.ebuild
5 Removed: mono-2.8.2.ebuild
6 Log:
7 Remove files not respecting LDFLAGS and that we are not supposed to provide. Drop previous.
8
9 (Portage version: 2.1.9.35/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.208 dev-lang/mono/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mono/ChangeLog?rev=1.208&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mono/ChangeLog?rev=1.208&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mono/ChangeLog?r1=1.207&r2=1.208
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v
21 retrieving revision 1.207
22 retrieving revision 1.208
23 diff -u -r1.207 -r1.208
24 --- ChangeLog 25 Jan 2011 17:47:14 -0000 1.207
25 +++ ChangeLog 26 Jan 2011 23:31:52 -0000 1.208
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-lang/mono
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.207 2011/01/25 17:47:14 pacho Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.208 2011/01/26 23:31:52 pacho Exp $
31 +
32 +*mono-2.8.2-r1 (26 Jan 2011)
33 +
34 + 26 Jan 2011; Pacho Ramos <pacho@g.o> -mono-2.8.2.ebuild,
35 + +mono-2.8.2-r1.ebuild:
36 + Remove files not respecting LDFLAGS and that we are not supposed to provide.
37
38 *mono-2.8.2 (25 Jan 2011)
39
40
41
42
43 1.1 dev-lang/mono/mono-2.8.2-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mono/mono-2.8.2-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mono/mono-2.8.2-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mono-2.8.2-r1.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.8.2-r1.ebuild,v 1.1 2011/01/26 23:31:52 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}/${PN}-2.2-ppc-threading.patch"
87 "${FILESDIR}/${PN}-2.2-uselibdir.patch"
88 "${FILESDIR}/${PN}-2.8.1-radegast-crash.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.8-libdir.patch \
116 > "${WORKDIR}"/${PN}-2.8-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 }
155
156 src_test() {
157 echo ">>> Test phase [check]: ${CATEGORY}/${PF}"
158
159 export MONO_REGISTRY_PATH="${T}/registry"
160 export XDG_DATA_HOME="${T}/data"
161 export MONO_SHARED_DIR="${T}/shared"
162 export XDG_CONFIG_HOME="${T}/config"
163 export HOME="${T}/home"
164
165 emake -j1 check
166 }
167
168 src_install() {
169 go-mono_src_install
170
171 #Bug 255610
172 sed -i -e "s:mono/2.0/mod.exe:mono/1.0/mod.exe:" \
173 "${D}"/usr/bin/mod || die "Failed to fix mod."
174
175 find "${D}"/usr/ -name '*nunit-docs*' -exec rm -rf '{}' '+' || die "Removing nunit .docs failed"
176
177 # Remove Jay to avoid colliding with dev-util/jay, the internal
178 # version is only used to build mcs.
179 rm -r "${D}"/usr/share/jay "${D}"/usr/bin/jay "${D}"/usr/share/man/man1/jay.1*
180
181 # Remove files not respecting LDFLAGS and that we are not supposed to provide, see Fedora
182 # mono.spec and http://www.mail-archive.com/mono-devel-list@××××××××××××.com/msg24870.html
183 # for reference.
184 rm -f "${D}"/usr/$(get_libdir)/mono/4.0/mscorlib.dll.so
185 rm -f "${D}"/usr/$(get_libdir)/mono/4.0/dmcs.exe.so
186 rm -f "${D}"/usr/$(get_libdir)/mono/2.0/mscorlib.dll.so
187 rm -f "${D}"/usr/$(get_libdir)/mono/2.0/gmcs.exe.so
188 }
189
190 #THINK!!!! Before touching postrm and postinst
191 #Reference phase order:
192 #pkg_preinst
193 #pkg_prerm
194 #pkg_postrm
195 #pkg_postinst
196
197 pkg_preinst() {
198 local symlink
199 local NUNIT_DIR="/usr/$(get_libdir)/mono/nunit"
200 local pv_atom
201 if [[ "$(readlink "${ROOT}"/${NUNIT_DIR})" == *"mono-nunit"* ]]
202 then
203 for pv_atom in 2.2{,-r1,-r2,-r3,-r4} '2.4_pre*' '2.4_rc*' 2.4
204 do
205 if has_version "=dev-lang/mono-${pv_atom}"
206 then
207 einfo "If you just received a file collision warning message,"
208 einfo "be advised that this is a known problem, which will now be fixed:"
209 ebegin "Found broken symlinks created by $(best_version dev-lang/mono), fixing"
210 for symlink in \
211 "${ROOT}/${NUNIT_DIR}" \
212 "${ROOT}/usr/$(get_libdir)/pkgconfig/nunit.pc" \
213 "${ROOT}/usr/bin/nunit-console" \
214 "${ROOT}/usr/bin/nunit-console2"
215 do
216 if [[ -L "${symlink}" ]]
217 then
218 rm -f "${symlink}" &> /dev/null
219 fi
220 done
221 eend 0
222 break
223 fi
224 done
225 fi
226 }
227
228 pkg_postinst() {
229 elog "PLEASE TAKE NOTE!"
230 elog ""
231 elog "Some of the namespaces supported by Mono require extra packages to be installed."
232 elog "Below is a list of namespaces and the corresponding package you must install:"
233 elog ""
234 elog ">=x11-libs/cairo-1.6.4"
235 elog " Mono.Cairo"
236 elog "Also read:"
237 elog "http://www.mono-project.com/Mono.Cairo"
238 elog ""
239 elog ">=dev-db/firebird-2.0.4.13130.1"
240 elog " FirebirdSql.Data.Firebird"
241 elog "Also read:"
242 elog "http://www.mono-project.com/Firebird_Interbase"
243 elog ""
244 elog "=dev-dotnet/gluezilla-${GO_MONO_REL_PV}*"
245 elog " Mono.Mozilla"
246 elog " Mono.Mozilla.WebBrowser"
247 elog " Mono.Mozilla.Widget"
248 elog " Interop.SHDocVw"
249 elog " AxInterop.SHDocVw"
250 elog " Interop.mshtml.dll"
251 elog " System.Windows.Forms.WebBrowser"
252 elog " Microsoft.IE"
253 elog "Also read:"
254 elog "http://www.mono-project.com/WebBrowser"
255 elog ""
256 elog "dev-db/sqlite:3"
257 elog " Mono.Data.Sqlite"
258 elog "Also read:"
259 elog "http://www.mono-project.com/SQLite"
260 elog ""
261 elog ">=dev-db/oracle-instantclient-basic-10.2"
262 elog " System.Data.OracleClient"
263 elog "Also read:"
264 elog "http://www.mono-project.com/Oracle"
265 elog ""
266 elog "Mono also has support for packages that are not included in portage:"
267 elog ""
268 elog "No ebuild available:"
269 elog " IBM.Data.DB2"
270 elog "Also read: http://www.mono-project.com/IBM_DB2"
271 elog ""
272 elog "No ebuild needed:"
273 elog " Mono.Data.SybaseClient"
274 elog "Also read: http://www.mono-project.com/Sybase"
275 }
276
277 # NOTICE: THE COPYRIGHT FILES IN THE TARBALL ARE UNCLEAR!
278 # WHENEVER YOU THINK SOMETHING IS GPL-2+, IT'S ONLY GPL-2
279 # UNLESS MIGUEL DE ICAZA HIMSELF SAYS OTHERWISE.
280
281 # mono
282 # The code we use is LGPL, but contributions must be made under the MIT/X11
283 # license, so Novell can serve its paying customers. Exception is mono/man.
284 # LICENSE="LGPL-2.1"
285
286 # mono/man
287 # LICENSE="MIT"
288
289 # mcs/mcs
290 # mcs/gmcs
291 # LICENSE="GPL-2 MIT"
292
293 # tests
294 # LICENSE="MIT"
295
296 # mcs/class
297 # Except the listed exceptions:
298 # LICENSE="MIT"
299
300 # mcs/class/ByteFX.Data
301 # mcs/class/Npgsql
302 # LICENSE="LGPL-2.1"
303
304 # mcs/class/FirebirdSql.Data.Firebird
305 # LICENSE="IDPL"
306
307 # mcs/class/ICSharpCode.SharpZipLib
308 # LICENSE="GPL-2-with-linking-exception"
309
310 # mcs/class/MicrosoftAjaxLibrary
311 # LICENSE="Ms-Pl"
312
313 # mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs
314 # mcs/class/Microsoft.JScript/Microsoft.JScript/Token.cs
315 # mcs/class/Microsoft.JScript/Microsoft.JScript/Parser.cs
316 # mcs/class/Microsoft.JScript/Microsoft.JScript/Decompiler.cs
317 # LICENSE="|| ( NPL-1.1 GPL-2 )"
318
319 # mcs/jay
320 # LICENSE="BSD-4"
321
322 # mcs/tools
323 # Except the listed exceptions:
324 # LICENSE="MIT"
325
326 # mcs/tools/mdoc/Mono.Documentation/monodocs2html.cs
327 # LICENSE="GPL-2"
328
329 # mcs/tools/sqlsharp/SqlSharpCli.cs
330 # LICENSE="GPL-2"
331
332 # mcs/tools/csharp/repl.cs
333 # LICENSE="|| ( MIT GPL-2 )"
334
335 # mcs/tools/mono-win32-setup.nsi
336 # LICENSE="GPL-2"
337
338 # samples
339 # LICENSE="MIT"