From: | Heather Cynede <cynede@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] proj/dotnet:master commit in: dev-lang/mono/ |
Date: | Fri, 29 Apr 2016 08:55:58 |
Message-Id: | 1461919880.c92b0809d7c7ed71883d90190d9856491c6b0741.cynede@gentoo |
1 | commit: c92b0809d7c7ed71883d90190d9856491c6b0741 |
2 | Author: Heather <Heather <AT> live <DOT> ru> |
3 | AuthorDate: Fri Apr 29 08:51:20 2016 +0000 |
4 | Commit: Heather Cynede <cynede <AT> gentoo <DOT> org> |
5 | CommitDate: Fri Apr 29 08:51:20 2016 +0000 |
6 | URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=c92b0809 |
7 | |
8 | dev-lang/mono: bump |
9 | |
10 | dev-lang/mono/mono-4.4.0.148.ebuild | 120 ++++++++++++++++++++++++++++++++++++ |
11 | 1 file changed, 120 insertions(+) |
12 | |
13 | diff --git a/dev-lang/mono/mono-4.4.0.148.ebuild b/dev-lang/mono/mono-4.4.0.148.ebuild |
14 | new file mode 100644 |
15 | index 0000000..be546cf |
16 | --- /dev/null |
17 | +++ b/dev-lang/mono/mono-4.4.0.148.ebuild |
18 | @@ -0,0 +1,120 @@ |
19 | +# Copyright 1999-2016 Gentoo Foundation |
20 | +# Distributed under the terms of the GNU General Public License v2 |
21 | +# $Id$ |
22 | + |
23 | +EAPI=6 |
24 | +AUTOTOOLS_PRUNE_LIBTOOL_FILES="all" |
25 | +AUTOTOOLS_AUTORECONF=1 |
26 | + |
27 | +inherit eutils linux-info mono-env flag-o-matic pax-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 | + # https://github.com/gentoo/gentoo/blob/f200e625bda8de696a28338318c9005b69e34710/eclass/linux-info.eclass#L686 |
60 | + # If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling. |
61 | + # See http://bugs.gentoo.org/261869 for more info." |
62 | + CONFIG_CHECK="SYSVIPC" |
63 | + use kernel_linux && check_extra_config |
64 | +} |
65 | + |
66 | +pkg_setup() { |
67 | + linux-info_pkg_setup |
68 | + mono-env_pkg_setup |
69 | +} |
70 | + |
71 | +src_prepare() { |
72 | + # we need to sed in the paxctl-ng -mr in the runtime/mono-wrapper.in so it don't |
73 | + # get killed in the build proces when MPROTECT is enable. #286280 |
74 | + # RANDMMAP kill the build proces to #347365 |
75 | + # use paxmark.sh to get PT/XT logic #532244 |
76 | + if use pax_kernel ; then |
77 | + ewarn "We are disabling MPROTECT on the mono binary." |
78 | + |
79 | + # issue 9 : https://github.com/Heather/gentoo-dotnet/issues/9 |
80 | + sed '/exec "/ i\paxmark.sh -mr "$r/@mono_runtime@"' -i "${S}"/runtime/mono-wrapper.in || die "Failed to sed mono-wrapper.in" |
81 | + fi |
82 | + |
83 | + # mono build system can fail otherwise |
84 | + strip-flags |
85 | + |
86 | + # Fix VB targets |
87 | + # http://osdir.com/ml/general/2015-05/msg20808.html |
88 | + #eapply "${FILESDIR}/add_missing_vb_portable_targets.patch" |
89 | + |
90 | + # Fix build when sgen disabled |
91 | + # https://bugzilla.xamarin.com/show_bug.cgi?id=32015 |
92 | + #eapply "${FILESDIR}/${PN}-4.0.2.5-fix-mono-dis-makefile-am-when-without-sgen.patch" |
93 | + |
94 | + # TODO: update patch |
95 | + # Fix atomic_add_i4 support for 32-bit ppc |
96 | + # https://github.com/mono/mono/compare/f967c79926900343f399c75624deedaba460e544^...8f379f0c8f98493180b508b9e68b9aa76c0c5bdf |
97 | + #epatch "${FILESDIR}/${PN}-4.0.2.5-fix-ppc-atomic-add-i4.patch" |
98 | + |
99 | + # TODO: update patch |
100 | + #epatch "${FILESDIR}/systemweb3.patch" |
101 | + #epatch "${FILESDIR}/fix-for-GitExtensions-issue-2710-another-resolution.patch" |
102 | + #epatch "${FILESDIR}/fix-for-bug36724.patch" |
103 | + |
104 | + default_src_prepare |
105 | + #eapply_user |
106 | +} |
107 | + |
108 | +src_configure() { |
109 | + local myeconfargs=( |
110 | + --disable-silent-rules |
111 | + $(use_with xen xen_opt) |
112 | + --without-ikvm-native |
113 | + --disable-dtrace |
114 | + $(use_with doc mcs-docs) |
115 | + $(use_enable nls) |
116 | + ) |
117 | + |
118 | + default_src_configure |
119 | +} |
120 | + |
121 | +src_compile() { |
122 | + default_src_compile |
123 | +} |
124 | + |
125 | +src_test() { |
126 | + cd mcs/tests || die |
127 | + emake check |
128 | +} |
129 | + |
130 | +src_install() { |
131 | + default_src_install |
132 | + |
133 | + # Remove files not respecting LDFLAGS and that we are not supposed to provide, see Fedora |
134 | + # mono.spec and http://www.mail-archive.com/mono-devel-list@××××××××××××.com/msg24870.html |
135 | + # for reference. |
136 | + rm -f "${ED}"/usr/lib/mono/{2.0,4.5}/mscorlib.dll.so || die |
137 | + rm -f "${ED}"/usr/lib/mono/{2.0,4.5}/mcs.exe.so || die |
138 | +} |