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