Gentoo Archives: gentoo-commits

From: Mikhail Pukhlikov <cynede@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/mono/
Date: Tue, 24 Jan 2017 10:35:11
Message-Id: 1485254083.ce04fee2e7af82dcf3aa1ceb651e73295a938e84.cynede@gentoo
1 commit: ce04fee2e7af82dcf3aa1ceb651e73295a938e84
2 Author: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 24 10:34:30 2017 +0000
4 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 24 10:34:43 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce04fee2
7
8 dev-lang/mono: bump
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-lang/mono/Manifest | 1 +
13 dev-lang/mono/mono-4.8.0.459.ebuild | 112 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 113 insertions(+)
15
16 diff --git a/dev-lang/mono/Manifest b/dev-lang/mono/Manifest
17 index 207ecd1..f614e8c 100644
18 --- a/dev-lang/mono/Manifest
19 +++ b/dev-lang/mono/Manifest
20 @@ -2,3 +2,4 @@ DIST mono-2.10.9.tar.bz2 34038017 SHA256 541038cd4edd4a1c485638d49697d45015ef748
21 DIST mono-4.4.1.0.tar.bz2 85897587 SHA256 165e7686b5cbb1ab671b4cb2069207999c3d70044002190b6ec84bb1fdf62b4a SHA512 d9b6c57c2d9327ea551083b81a2e6cc222ded9a04862056b0dfded1c5df56efbfc4960097df034595012231fe50d172174ab7b3e3f2d8c4c6953ab2106b1cb6a WHIRLPOOL 99f16622c6d1902a7efff41d55d114ed214979c1d902a5dcbc257c180a1e68ed519beb5383db2358096e3f8425483983565c8f438552de36ffabe4bfad3f5fbd
22 DIST mono-4.6.1.5.tar.bz2 83174665 SHA256 3871ee72bdfc2ea5d636ffff22cf49ae6bac7c4a4f3d687214dd8ac236bbf7c3 SHA512 1d0c1ec2930ecea3faf1be572bc045300ef4a90d3fe7519f2a9c797be79298c61528d83baa5a24a57143a35be80f78297196556c33cd0f345d9907a973fe625a WHIRLPOOL 9ccfdfa68f2d9a75440c71fb22af988165608299d7aaeecac77fc783412cba4524a423b166a540d2381c98c58e3f7e40ada91381d45f67693e1f69e462bbb1d9
23 DIST mono-4.8.0.425.tar.bz2 87955541 SHA256 0d81ba0ef69fbfa2ac8206c9e7a0ad996c193c06c897bab36c5dcc4a40b50a7d SHA512 7bab64adbebc277d3fc10301fa6af6cd64ea0836e2d74dfdd9b59684d9402689f9a4e397f3d36f519c7a892c14dcf8f8867d40a5119891874dfd10f9bbce2ac4 WHIRLPOOL fcb095e83880bdbbce6978af68c5997f1f345046307e3ea4d53413b257dca7953b947c90e073e15991ec043483982bfcf28d29c350e392e534c865b74fff8a89
24 +DIST mono-4.8.0.459.tar.bz2 87304208 SHA256 af6fb6e5aa48eab376951af8e1378ebeead990be0259ccdb5620278404f7dd58 SHA512 ae08ea3a5c3863df81d79d7163f4029b2ec7a3f97134c325784e54479b0dcdf47034cb4eb03dbc51e01055ed04695fc3e46555b8b13365f3a07ba230eddc2997 WHIRLPOOL 946219e1ddee288329e76b7e41c856684b8754d66d4917a19282dc0a3a809c3e368d676064cb86cc7471fd08d73a808eb21bb113985c803a347d304e177c66c7
25
26 diff --git a/dev-lang/mono/mono-4.8.0.459.ebuild b/dev-lang/mono/mono-4.8.0.459.ebuild
27 new file mode 100644
28 index 00000000..daee3ec
29 --- /dev/null
30 +++ b/dev-lang/mono/mono-4.8.0.459.ebuild
31 @@ -0,0 +1,112 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=6
37 +
38 +inherit autotools eutils linux-info mono-env flag-o-matic pax-utils versionator multilib-minimal
39 +
40 +DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter"
41 +HOMEPAGE="http://www.mono-project.com/Main_Page"
42 +SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.bz2"
43 +
44 +LICENSE="MIT LGPL-2.1 GPL-2 BSD-4 NPL-1.1 Ms-PL GPL-2-with-linking-exception IDPL"
45 +SLOT="0"
46 +
47 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux"
48 +
49 +IUSE="nls minimal pax_kernel xen doc"
50 +
51 +COMMONDEPEND="
52 + !minimal? ( >=dev-dotnet/libgdiplus-2.10 )
53 + ia64? ( sys-libs/libunwind )
54 + nls? ( sys-devel/gettext )
55 +"
56 +RDEPEND="${COMMONDEPEND}
57 + || ( www-client/links www-client/lynx )
58 +"
59 +DEPEND="${COMMONDEPEND}
60 + sys-devel/bc
61 + virtual/yacc
62 + pax_kernel? ( sys-apps/elfix )
63 + dev-util/cmake
64 + !dev-lang/mono-basic
65 +"
66 +
67 +PATCHES=(
68 + "${FILESDIR}"/${PN}-4.8.0.371-makedev.patch
69 + "${FILESDIR}"/${PN}-4.8.0.371-x86_32.patch
70 +)
71 +
72 +S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)"
73 +
74 +pkg_pretend() {
75 + linux-info_pkg_setup
76 + if use kernel_linux; then
77 + if linux_config_exists; then
78 + linux_chkconfig_builtin SYSVIPC || die "SYSVIPC not enabled in the kernel"
79 + else
80 + # https://github.com/gentoo/gentoo/blob/f200e625bda8de696a28338318c9005b69e34710/eclass/linux-info.eclass#L686
81 + ewarn "kernel config not found"
82 + ewarn "If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling."
83 + ewarn "See http://bugs.gentoo.org/261869 for more info."
84 + fi
85 + fi
86 +}
87 +
88 +pkg_setup() {
89 + mono-env_pkg_setup
90 +}
91 +
92 +src_prepare() {
93 + # we need to sed in the paxctl-ng -mr in the runtime/mono-wrapper.in so it don't
94 + # get killed in the build proces when MPROTECT is enable. #286280
95 + # RANDMMAP kill the build proces to #347365
96 + # use paxmark.sh to get PT/XT logic #532244
97 + if use pax_kernel ; then
98 + ewarn "We are disabling MPROTECT on the mono binary."
99 +
100 + # issue 9 : https://github.com/Heather/gentoo-dotnet/issues/9
101 + sed '/exec "/ i\paxmark.sh -mr "$r/@mono_runtime@"' -i "${S}"/runtime/mono-wrapper.in || die "Failed to sed mono-wrapper.in"
102 + fi
103 +
104 + # mono build system can fail otherwise
105 + strip-flags
106 +
107 + #TODO: resolve problem with newer binutils
108 + #bug: https://bugs.gentoo.org/show_bug.cgi?id=600664
109 + #append-flags -fPIC
110 +
111 + default
112 + # PATCHES contains configure.ac patch
113 + eautoreconf
114 + multilib_copy_sources
115 +}
116 +
117 +multilib_src_configure() {
118 + local myeconfargs=(
119 + --disable-silent-rules
120 + $(use_with xen xen_opt)
121 + --without-ikvm-native
122 + --disable-dtrace
123 + $(use_with doc mcs-docs)
124 + $(use_enable nls)
125 + )
126 +
127 + econf "${myeconfargs[@]}"
128 +}
129 +
130 +multilib_src_test() {
131 + cd mcs/tests || die
132 + emake check
133 +}
134 +
135 +multilib_src_install() {
136 + default_src_install
137 +
138 + # Remove files not respecting LDFLAGS and that we are not supposed to provide, see Fedora
139 + # mono.spec and http://www.mail-archive.com/mono-devel-list@××××××××××××.com/msg24870.html
140 + # for reference.
141 + rm -f "${ED}"/usr/lib/mono/{2.0,4.5}/mscorlib.dll.so || die
142 + rm -f "${ED}"/usr/lib/mono/{2.0,4.5}/mcs.exe.so || die
143 +}