diff options
Diffstat (limited to 'dev-lang/mono/mono-2.0.1.ebuild')
-rw-r--r-- | dev-lang/mono/mono-2.0.1.ebuild | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/dev-lang/mono/mono-2.0.1.ebuild b/dev-lang/mono/mono-2.0.1.ebuild index f845c1a3ab7b..300d9ac06c89 100644 --- a/dev-lang/mono/mono-2.0.1.ebuild +++ b/dev-lang/mono/mono-2.0.1.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/mono-2.0.1.ebuild,v 1.2 2008/11/23 16:52:37 loki_val Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mono/mono-2.0.1.ebuild,v 1.3 2008/11/24 23:56:14 loki_val Exp $ + +EAPI=2 inherit base eutils flag-o-matic multilib autotools @@ -15,7 +17,9 @@ IUSE="" RDEPEND="!<dev-dotnet/pnet-0.6.12 >=dev-libs/glib-2.6 - =dev-dotnet/libgdiplus-${PV%%.*}*" + =dev-dotnet/libgdiplus-${PV%%.*}* + ia64? ( sys-libs/libunwind )" + DEPEND="${RDEPEND} sys-devel/bc >=dev-util/pkgconfig-0.19" @@ -23,41 +27,36 @@ PDEPEND="dev-dotnet/pe-format" RESTRICT="test" -#Threading and mimeicon patches from Fedora CVS. Muine patch from Novell. +#Threading and mimeicon patches from Fedora CVS. Muine patch from Novell. Pointer conversions patch from Debian. PATCHES=( "${FILESDIR}/${PN}-biginteger_overflow.diff" "${FILESDIR}/${PN}-2.0-ppc-threading.patch" "${FILESDIR}/${PN}-2.0-mimeicon.patch" - "${FILESDIR}/${P}-fix-wsdl-troubles-with-muine.patch" ) + "${FILESDIR}/${P}-fix-wsdl-troubles-with-muine.patch" + "${FILESDIR}/${P}-fix_implicit_pointer_conversions.patch" ) - -function get-memory-total() { - cat /proc/meminfo | grep MemTotal | sed -r "s/[^0-9]*([[0-9]+).*/\1/" -} - -src_compile() { +src_configure() { # mono's build system is finiky, strip the flags strip-flags #Remove this at your own peril. Mono will barf in unexpected ways. append-flags -fno-strict-aliasing - # Enable large heaps if memory is more than >=3GB - if [[ $(get-memory-total) -ge 3145728 ]] ; then - myconf="${myconf} --with-large-heap=yes" - fi - - # Force the use of monolite mcs to prevent issues with classlibs (bug #118062) - touch "${S}"/mcs/build/deps/use-monolite - - econf --without-moonlight \ + econf --disable-dependency-tracking \ + --without-moonlight \ --with-preview=yes \ --with-glib=system \ --with-gc=included \ --with-libgdiplus=installed \ - --with-tls=__thread \ - --with-ikvm=yes \ + --with-tls=$(use arm && printf "pthread" || printf "__thread" ) \ + --with-sigaltstack=$((use x86 || use amd64) && printf "yes" || printf "no" ) \ + --with-ikvm-native=no \ --with-jit=yes + + # dev-dotnet/ikvm provides ikvm-native +} + +src_compile() { emake EXTERNAL_MCS=false EXTERNAL_MONO=false if [[ "$?" -ne "0" ]]; then |