class FontConfigPackage (Package):
	def __init__ (self):
		Package.__init__ (self, 'fontconfig', '2.10.2',
			configure_flags = [ '--disable-docs' ],
			sources = [
				'http://www.fontconfig.org/release/%{name}-%{version}.tar.gz'
			],
			#a non-empty DESTDIR keeps fc-cache from running at install-time
			override_properties = { 'makeinstall': 'make DESTDIR="/" install' }
			) 

	def build (self):
		if Package.profile.name == 'darwin':
			self.configure_flags.extend ([
				'--with-cache-dir="~/Library/Caches/com.xamarin.fontconfig"',
				'--with-default-fonts=/System/Library/Fonts',
				'--with-add-fonts=/Library/Fonts,/Network/Library/Fonts,/System/Library/Fonts'
			])
		Package.build (self)

FontConfigPackage ()

@@ -373,17 +373,16 @@
 ' %7D%0A%09%09%09)
- 
 %0A%0A%09def b
@@ -489,16 +489,47 @@
 che-dir=
+%7B0%7D'.format(os.path.expanduser(
 %22~/Libra
@@ -561,17 +561,18 @@
 tconfig%22
-'
+))
 ,%0A%09%09%09%09'-

Set the cache dir to be an absolute path.