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