Gentoo Archives: gentoo-commits

From: "Jurek Bartuszek (jurek)" <jurek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/mono: ChangeLog mono-1.2.6-r1.ebuild
Date: Wed, 02 Jan 2008 06:13:32
Message-Id: E1J9wqw-0001S0-Qa@stork.gentoo.org
1 jurek 08/01/02 06:13:22
2
3 Modified: ChangeLog
4 Added: mono-1.2.6-r1.ebuild
5 Log:
6 dev-lang/mono-1.2.6-r1: added patch fixing bug #202358
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.133 dev-lang/mono/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/ChangeLog?rev=1.133&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/ChangeLog?rev=1.133&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/ChangeLog?r1=1.132&r2=1.133
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v
19 retrieving revision 1.132
20 retrieving revision 1.133
21 diff -u -r1.132 -r1.133
22 --- ChangeLog 14 Dec 2007 19:59:25 -0000 1.132
23 +++ ChangeLog 2 Jan 2008 06:13:22 -0000 1.133
24 @@ -1,6 +1,13 @@
25 # ChangeLog for dev-lang/mono
26 -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.132 2007/12/14 19:59:25 jurek Exp $
28 +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/ChangeLog,v 1.133 2008/01/02 06:13:22 jurek Exp $
30 +
31 +*mono-1.2.6-r1 (02 Jan 2008)
32 +
33 + 02 Jan 2008; Jurek Bartuszek <jurek@g.o>
34 + +files/mono-1.2.6-threads-types-private-prototypes.patch,
35 + +mono-1.2.6-r1.ebuild:
36 + Added patch fixing bug #202358
37
38 *mono-1.2.6 (14 Dec 2007)
39
40
41
42
43 1.1 dev-lang/mono/mono-1.2.6-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/mono-1.2.6-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mono/mono-1.2.6-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mono-1.2.6-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/mono-1.2.6-r1.ebuild,v 1.1 2008/01/02 06:13:22 jurek Exp $
53
54 inherit eutils flag-o-matic multilib autotools
55
56 DESCRIPTION="Mono runtime and class libraries, a C# compiler/interpreter"
57 HOMEPAGE="http://www.go-mono.com"
58 SRC_URI="http://www.go-mono.com/sources/mono/${P}.tar.bz2"
59
60 LICENSE="|| ( GPL-2 LGPL-2 X11 )"
61 SLOT="0"
62 KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
63 IUSE="X nptl"
64
65 RDEPEND="!<dev-dotnet/pnet-0.6.12
66 >=dev-libs/glib-2.6
67 nptl? ( >=sys-devel/gcc-3.3.5-r1 )
68 ppc? (
69 >=sys-devel/gcc-3.2.3-r4
70 >=sys-libs/glibc-2.3.3_pre20040420
71 )
72 X? ( >=dev-dotnet/libgdiplus-1.2.4 )"
73 DEPEND="${RDEPEND}
74 sys-devel/bc
75 >=dev-util/pkgconfig-0.19"
76 PDEPEND="dev-dotnet/pe-format"
77
78 # Parallel build unfriendly
79 MAKEOPTS="${MAKEOPTS} -j1"
80
81 RESTRICT="test"
82
83 function get-memory-total() {
84 cat /proc/meminfo | grep MemTotal | sed -r "s/[^0-9]*([[0-9]+).*/\1/"
85 }
86
87 src_unpack() {
88 unpack ${A}
89 cd "${S}"
90
91 # Fix the install path, install into $(libdir)
92 sed -i -e 's:$(prefix)/lib:$(libdir):' \
93 -i -e 's:$(exec_prefix)/lib:$(libdir):' \
94 -i -e "s:'mono_libdir=\${exec_prefix}/lib':\"mono_libdir=\$libdir\":" \
95 "${S}"/{scripts,mono/metadata}/Makefile.am "${S}"/configure.in \
96 || die "sed failed"
97
98 sed -i -e 's:^libdir.*:libdir=@libdir@:' \
99 -i -e 's:${prefix}/lib/:${libdir}/:g' \
100 "${S}"/{scripts,}/*.pc.in \
101 || die "sed failed"
102
103 # Remove dummy ltconfig and let libtool handle it
104 rm -f "${S}"/libgc/ltconfig
105
106 epatch "${FILESDIR}"/mono-biginteger_overflow.diff
107
108 # Fixes bug #202358, see
109 # https://bugzilla.novell.com/show_bug.cgi?id=349952
110 epatch "${FILESDIR}"/${P}-threads-types-private-prototypes.patch
111
112 einfo "Regenerating the build files, this will take some time..."
113 eautoreconf
114 }
115
116 src_compile() {
117 # mono's build system is finiky, strip the flags
118 strip-flags
119
120 # Enable the 2.0 FX, use the system glib and the gc
121 local myconf="--with-preview=yes --with-glib=system --with-gc=included"
122
123 # Threading support
124 if use amd64 || use nptl ; then
125 # force __thread on amd64 (bug #83770)
126 myconf="${myconf} --with-tls=__thread"
127 else
128 myconf="${myconf} --with-tls=pthread"
129 fi
130
131 # Enable large heaps if memory is more than >=3GB
132 if [[ $(get-memory-total) -ge 3145728 ]] ; then
133 myconf="${myconf} --with-large-heap=yes"
134 fi
135
136 # Force the use of monolite mcs to prevent issues with classlibs (bug #118062)
137 touch "${S}"/mcs/build/deps/use-monolite
138
139 econf ${myconf} || die "configure failed"
140 emake EXTERNAL_MCS=false EXTERNAL_MONO=false
141
142 if [[ "$?" -ne "0" ]]; then
143 ewarn "If you are using any hardening features such as"
144 ewarn "PIE+SSP/SELinux/grsec/PAX then most probably this is the reason"
145 ewarn "why build has failed. In this case turn any active security"
146 ewarn "enhancements off and try emerging the package again"
147 die
148 fi
149 }
150
151 src_test() {
152 vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
153
154 mkdir -p "${T}/home/mono" || die "mkdir home failed"
155
156 export HOME="${T}/home/mono"
157 export XDG_CONFIG_HOME="${T}/home/mono"
158 export XDG_DATA_HOME="${T}/home/mono"
159
160 if ! LC_ALL=C emake -j1 check; then
161 hasq test $FEATURES && die "Make check failed. See above for details."
162 hasq test $FEATURES || eerror "Make check failed. See above for details."
163 fi
164 }
165
166 src_install() {
167 emake DESTDIR="${D}" install || die "install failed"
168
169 dodoc AUTHORS ChangeLog NEWS README
170
171 docinto docs
172 dodoc docs/*
173
174 docinto libgc
175 dodoc libgc/ChangeLog
176 }
177
178
179
180 --
181 gentoo-commits@g.o mailing list