old_contents: import os
  
  class MonoMasterPackage(Package):
  
  	def __init__(self):
  		Package.__init__(self, 'mono', os.getenv('MONO_VERSION'),
  			sources = [os.getenv('MONO_REPOSITORY') or 'git://github.com/mono/mono.git'],
  			revision = os.getenv('MONO_BUILD_REVISION'),
  			configure_flags = [
  				'--enable-nls=no',
  				'--with-ikvm=yes',
  				'--with-moonlight=no'
  			]
  		)
  		#This package would like to be lipoed.
  		if Package.profile.m64 == True:
  			self.needs_lipo = True
  		
  		if Package.profile.name == 'darwin':
  			self.configure_flags.extend([
  				'--enable-loadedllvm'
  				])
  
  			self.sources.extend ([
  					# Fixes up pkg-config usage on the Mac
  					'patches/mcs-pkgconfig.patch'
  					])
  
  		self.gcc_flags.extend = ['-O2']
  
  		self.configure = './autogen.sh --prefix="%{package_prefix}"'
  
  	def prep (self):
  		Package.prep (self)
  		for p in range (1, len (self.sources)):
  			self.sh ('patch -p1 < "%{sources[' + str (p) + ']}"')
  
  	def arch_build (self, arch):	
  		if arch == 'darwin-64': #64-bit build pass
  			self.local_gcc_flags.extend (['-m64'])
  			self.local_configure_flags = ['--build=x86_64-apple-darwin11.2.0']
  		
  		if arch == 'darwin-32': #32-bit build pass
  			self.local_gcc_flags.extend (['-m32'])
  			self.local_configure_flags = ['--build=i386-apple-darwin11.2.0']
  
  		Package.arch_build (self, arch, defaults = False)
  
  MonoMasterPackage()
  
new_contents: import os
  
  class MonoMasterPackage(Package):
  
  	def __init__(self):
  		Package.__init__(self, 'mono', os.getenv('MONO_VERSION'),
  			sources = [os.getenv('MONO_REPOSITORY') or 'git://github.com/mono/mono.git'],
  			revision = os.getenv('MONO_BUILD_REVISION'),
  			configure_flags = [
  				'--enable-nls=no',
  				'--with-ikvm=yes',
  				'--with-moonlight=no'
  			]
  		)
  		#This package would like to be lipoed.
  		if Package.profile.m64 == True:
  			self.needs_lipo = True
  		
  		if Package.profile.name == 'darwin':
  			self.configure_flags.extend([
  				'--enable-loadedllvm'
  				])
  
  			self.sources.extend ([
  					# Fixes up pkg-config usage on the Mac
  					'patches/mcs-pkgconfig.patch'
  					])
  
  		self.gcc_flags.extend (['-O2'])
  
  		self.configure = './autogen.sh --prefix="%{package_prefix}"'
  
  	def prep (self):
  		Package.prep (self)
  		for p in range (1, len (self.sources)):
  			self.sh ('patch -p1 < "%{sources[' + str (p) + ']}"')
  
  	def arch_build (self, arch):	
  		if arch == 'darwin-64': #64-bit build pass
  			self.local_gcc_flags.extend (['-m64'])
  			self.local_configure_flags = ['--build=x86_64-apple-darwin11.2.0']
  		
  		if arch == 'darwin-32': #32-bit build pass
  			self.local_gcc_flags.extend (['-m32'])
  			self.local_configure_flags = ['--build=i386-apple-darwin11.2.0']
  
  		Package.arch_build (self, arch, defaults = False)
  
  MonoMasterPackage()
  
subject: fix oops