1 |
commit: a4ccbda120c1251a876779b7c001a34a5230d5b2 |
2 |
Author: Heather <Heather <AT> live <DOT> ru> |
3 |
AuthorDate: Wed Sep 30 12:19:13 2015 +0000 |
4 |
Commit: Heather Cynede <cynede <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 30 12:19:13 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=a4ccbda1 |
7 |
|
8 |
mono-4.2.1.36 |
9 |
|
10 |
dev-lang/mono/mono-4.2.1.36.ebuild | 118 +++++++++++++++++++++++++++++++++++++ |
11 |
1 file changed, 118 insertions(+) |
12 |
|
13 |
diff --git a/dev-lang/mono/mono-4.2.1.36.ebuild b/dev-lang/mono/mono-4.2.1.36.ebuild |
14 |
new file mode 100644 |
15 |
index 0000000..a43cefb |
16 |
--- /dev/null |
17 |
+++ b/dev-lang/mono/mono-4.2.1.36.ebuild |
18 |
@@ -0,0 +1,118 @@ |
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 on big-endian machines |
89 |
+ # https://bugzilla.xamarin.com/show_bug.cgi?id=31779 |
90 |
+ # epatch "${FILESDIR}/${PN}-4.0.2.5-fix-decimal-ms-on-big-endian.patch" |
91 |
+ # * Failed Patch: mono-4.0.2.5-fix-decimal-ms-on-big-endian.patch ! |
92 |
+ |
93 |
+ # Fix build when sgen disabled |
94 |
+ # https://bugzilla.xamarin.com/show_bug.cgi?id=32015 |
95 |
+ epatch "${FILESDIR}/${PN}-4.0.2.5-fix-mono-dis-makefile-am-when-without-sgen.patch" |
96 |
+ |
97 |
+ # Fix atomic_add_i4 support for 32-bit ppc |
98 |
+ # https://github.com/mono/mono/compare/f967c79926900343f399c75624deedaba460e544^...8f379f0c8f98493180b508b9e68b9aa76c0c5bdf |
99 |
+ epatch "${FILESDIR}/${PN}-4.0.2.5-fix-ppc-atomic-add-i4.patch" |
100 |
+ |
101 |
+ autotools-utils_src_prepare |
102 |
+ |
103 |
+ epatch "${FILESDIR}/systemweb3.patch" |
104 |
+} |
105 |
+ |
106 |
+src_configure() { |
107 |
+ local myeconfargs=( |
108 |
+ --disable-silent-rules |
109 |
+ $(use_with xen xen_opt) |
110 |
+ --without-ikvm-native |
111 |
+ --disable-dtrace |
112 |
+ $(use_with doc mcs-docs) |
113 |
+ $(use_enable nls) |
114 |
+ ) |
115 |
+ |
116 |
+ autotools-utils_src_configure |
117 |
+} |
118 |
+ |
119 |
+src_compile() { |
120 |
+ autotools-utils_src_compile |
121 |
+} |
122 |
+ |
123 |
+src_test() { |
124 |
+ cd mcs/tests || die |
125 |
+ emake check |
126 |
+} |
127 |
+ |
128 |
+src_install() { |
129 |
+ autotools-utils_src_install |
130 |
+ |
131 |
+ # Remove files not respecting LDFLAGS and that we are not supposed to provide, see Fedora |
132 |
+ # mono.spec and http://www.mail-archive.com/mono-devel-list@××××××××××××.com/msg24870.html |
133 |
+ # for reference. |
134 |
+ rm -f "${ED}"/usr/lib/mono/{2.0,4.5}/mscorlib.dll.so || die |
135 |
+ rm -f "${ED}"/usr/lib/mono/{2.0,4.5}/mcs.exe.so || die |
136 |
+} |