old_contents: class CairoPackage (CairoGraphicsXzPackage):
  	def __init__ (self):
  		CairoGraphicsPackage.__init__ (self, 'cairo', '1.12.14')
  		self.sources.extend ([
  			'patches/cairo-fix-color-bitmap-fonts.patch',
  #			'patches/cairo-cglayer.patch',
  		])
  
  	def prep (self):
  		Package.prep (self)
  
  		if Package.profile.name == 'darwin':
  			for p in range (1, len (self.sources)):
  				self.sh ('patch -p1 < "%{sources[' + str (p) + ']}"')
  
  	def build (self):
  		self.configure_flags = [
  			'--enable-pdf'
  		]
  
  		if Package.profile.name == 'darwin':
  			self.configure_flags.extend ([
  				'--enable-quartz',
  				'--disable-xlib',
  				'--without-x'
  			])
  		elif Package.profile.name == 'linux':
  			self.configure_flags.extend ([
  				'--disable-quartz',
  				'--with-x'
  			])
  
  		Package.build (self)
  
  CairoPackage ()
  
new_contents: class CairoPackage (CairoGraphicsPackage):
  	def __init__ (self):
  		CairoGraphicsPackage.__init__ (self, 'cairo', '1.10.2')
  		self.sources.extend ([
  			'patches/cairo-lion.patch',
  #			'patches/cairo-fix-color-bitmap-fonts.patch',
  			'patches/cairo-cglayer.patch'
  		])
  
  	def prep (self):
  		Package.prep (self)
  
  		if Package.profile.name == 'darwin':
  			for p in range (1, len (self.sources)):
  				self.sh ('patch -p1 < "%{sources[' + str (p) + ']}"')
  
  	def build (self):
  		self.configure_flags = [
  			'--enable-pdf'
  		]
  
  		if Package.profile.name == 'darwin':
  			self.configure_flags.extend ([
  				'--enable-quartz',
  #				'--enable-quartz-image',
  #				'--enable-quartz-font',
  				'--disable-xlib',
  				'--without-x'
  			])
  		elif Package.profile.name == 'linux':
  			self.configure_flags.extend ([
  				'--disable-quartz',
  				'--with-x'
  			])
  
  		Package.build (self)
  
  CairoPackage ()
  
subject: Downgrade - 1.12.x is crashy on Quartz