class MonoPackage (Package):
	def __init__ (self):
		Package.__init__ (self, 'mono', '2.6.1',
			sources = [
				'http://ftp.novell.com/pub/%{name}/sources/%{name}/%{name}-%{version}.tar.bz2',
				'patches/mono-runtime-relocation.patch'
			],
			configure_flags = [
				'--with-jit=yes',
				'--with-ikvm=no',
				'--with-mcs-docs=no',
				'--with-moonlight=no',
				'--enable-quiet-build'
			]
		)

	def prep (self):
		Package.prep (self)
		self.sh ('patch -p1 < "%{sources[1]}"')

	def install (self):
		Package.install (self)
		if Package.profile.name == 'darwin':
			self.sh ('sed -ie "s/libcairo.so.2/libcairo.2.dylib/" "%{prefix}/etc/mono/config"')

MonoPackage ()

@@ -83,17 +83,17 @@
 ', '2.6.
-1
+3
 ',%0A%09%09%09so
@@ -387,16 +387,131 @@
 ld'%0A%09%09%09%5D
+%0A%0A%09%09%09# Mono (in libgc) likes to fail to build randomly%0A%09%09%09self.make = 'for((i=0;i%3C20;i++)); do make && break; done'
 %0A%09%09)%0A%0A%09d

update to Mono 2.6.3, aggressive build