1 |
commit: a27563c1ae4ad23283de1440b592d47acbcb0bfb |
2 |
Author: Heather <Heather <AT> live <DOT> ru> |
3 |
AuthorDate: Tue Dec 1 10:23:13 2015 +0000 |
4 |
Commit: Heather Cynede <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 1 10:23:32 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=a27563c1 |
7 |
|
8 |
dev-lang/mono: bump |
9 |
|
10 |
dev-lang/mono/mono-4.2.1.102.ebuild | 113 ++++++++++++++++++++++++++++++++++++ |
11 |
1 file changed, 113 insertions(+) |
12 |
|
13 |
diff --git a/dev-lang/mono/mono-4.2.1.102.ebuild b/dev-lang/mono/mono-4.2.1.102.ebuild |
14 |
new file mode 100644 |
15 |
index 0000000..db52e5c |
16 |
--- /dev/null |
17 |
+++ b/dev-lang/mono/mono-4.2.1.102.ebuild |
18 |
@@ -0,0 +1,113 @@ |
19 |
+# Copyright 1999-2015 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+# $Id$ |
22 |
+ |
23 |
+EAPI=5 |
24 |
+AUTOTOOLS_PRUNE_LIBTOOL_FILES="all" |
25 |
+AUTOTOOLS_AUTORECONF=1 |
26 |
+ |
27 |
+inherit eutils linux-info mono-env flag-o-matic pax-utils autotools-utils versionator |
28 |
+ |
29 |
+DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter" |
30 |
+HOMEPAGE="http://www.mono-project.com/Main_Page" |
31 |
+SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.bz2" |
32 |
+ |
33 |
+LICENSE="MIT LGPL-2.1 GPL-2 BSD-4 NPL-1.1 Ms-PL GPL-2-with-linking-exception IDPL" |
34 |
+SLOT="0" |
35 |
+ |
36 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux" |
37 |
+ |
38 |
+IUSE="nls minimal pax_kernel xen doc" |
39 |
+ |
40 |
+COMMONDEPEND=" |
41 |
+ !minimal? ( >=dev-dotnet/libgdiplus-2.10 ) |
42 |
+ ia64? ( sys-libs/libunwind ) |
43 |
+ nls? ( sys-devel/gettext ) |
44 |
+" |
45 |
+RDEPEND="${COMMONDEPEND} |
46 |
+ || ( www-client/links www-client/lynx ) |
47 |
+" |
48 |
+DEPEND="${COMMONDEPEND} |
49 |
+ sys-devel/bc |
50 |
+ virtual/yacc |
51 |
+ pax_kernel? ( sys-apps/elfix ) |
52 |
+ !dev-lang/mono-basic |
53 |
+" |
54 |
+ |
55 |
+MAKEOPTS="${MAKEOPTS} -j1" #nowarn |
56 |
+S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)" |
57 |
+ |
58 |
+pkg_pretend() { |
59 |
+ # If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling. |
60 |
+ # See http://bugs.gentoo.org/261869 for more info." |
61 |
+ CONFIG_CHECK="SYSVIPC" |
62 |
+ use kernel_linux && check_extra_config |
63 |
+} |
64 |
+ |
65 |
+pkg_setup() { |
66 |
+ linux-info_pkg_setup |
67 |
+ mono-env_pkg_setup |
68 |
+} |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ # we need to sed in the paxctl-ng -mr in the runtime/mono-wrapper.in so it don't |
72 |
+ # get killed in the build proces when MPROTEC is enable. #286280 |
73 |
+ # RANDMMAP kill the build proces to #347365 |
74 |
+ if use pax_kernel ; then |
75 |
+ ewarn "We are disabling MPROTECT on the mono binary." |
76 |
+ |
77 |
+ # issue 9 : https://github.com/Heather/gentoo-dotnet/issues/9 |
78 |
+ sed '/exec "/ i\paxctl-ng -mr "$r/@mono_runtime@"' -i "${S}"/runtime/mono-wrapper.in || die "Failed to sed mono-wrapper.in" |
79 |
+ fi |
80 |
+ |
81 |
+ # mono build system can fail otherwise |
82 |
+ strip-flags |
83 |
+ |
84 |
+ # Fix VB targets |
85 |
+ # http://osdir.com/ml/general/2015-05/msg20808.html |
86 |
+ epatch "${FILESDIR}/add_missing_vb_portable_targets.patch" |
87 |
+ |
88 |
+ # Fix build when sgen disabled |
89 |
+ # https://bugzilla.xamarin.com/show_bug.cgi?id=32015 |
90 |
+ epatch "${FILESDIR}/${PN}-4.0.2.5-fix-mono-dis-makefile-am-when-without-sgen.patch" |
91 |
+ |
92 |
+ # Fix atomic_add_i4 support for 32-bit ppc |
93 |
+ # https://github.com/mono/mono/compare/f967c79926900343f399c75624deedaba460e544^...8f379f0c8f98493180b508b9e68b9aa76c0c5bdf |
94 |
+ epatch "${FILESDIR}/${PN}-4.0.2.5-fix-ppc-atomic-add-i4.patch" |
95 |
+ |
96 |
+ autotools-utils_src_prepare |
97 |
+ |
98 |
+ epatch "${FILESDIR}/systemweb3.patch" |
99 |
+} |
100 |
+ |
101 |
+src_configure() { |
102 |
+ local myeconfargs=( |
103 |
+ --disable-silent-rules |
104 |
+ $(use_with xen xen_opt) |
105 |
+ --without-ikvm-native |
106 |
+ --disable-dtrace |
107 |
+ $(use_with doc mcs-docs) |
108 |
+ $(use_enable nls) |
109 |
+ ) |
110 |
+ |
111 |
+ autotools-utils_src_configure |
112 |
+} |
113 |
+ |
114 |
+src_compile() { |
115 |
+ autotools-utils_src_compile |
116 |
+} |
117 |
+ |
118 |
+src_test() { |
119 |
+ cd mcs/tests || die |
120 |
+ emake check |
121 |
+} |
122 |
+ |
123 |
+src_install() { |
124 |
+ autotools-utils_src_install |
125 |
+ |
126 |
+ # Remove files not respecting LDFLAGS and that we are not supposed to provide, see Fedora |
127 |
+ # mono.spec and http://www.mail-archive.com/mono-devel-list@××××××××××××.com/msg24870.html |
128 |
+ # for reference. |
129 |
+ rm -f "${ED}"/usr/lib/mono/{2.0,4.5}/mscorlib.dll.so || die |
130 |
+ rm -f "${ED}"/usr/lib/mono/{2.0,4.5}/mcs.exe.so || die |
131 |
+} |