Xamarin Public Jenkins (auto-signing) 6bdd276d05 Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
2017-04-10 11:41:01 +00:00

35 lines
1.2 KiB
Python

class GdkPixbufPackage (GnomeXzPackage):
def __init__(self):
GnomeXzPackage.__init__(
self,
'gdk-pixbuf',
version_major='2.28',
version_minor='2')
if Package.profile.name == 'darwin':
self.sources.extend([
'patches/gdk-pixbuf/0001-pixbuf-load-2x-variants-as-pixbuf-gobject-data.patch',
'patches/gdk-pixbuf/0001-pixbuf-Add-getter-setter-for-the-2x-variants.patch',
])
self.configure_flags.extend(['--enable-gtk-doc-html=no'])
def prep(self):
Package.prep(self)
if Package.profile.name == 'darwin':
for p in range(1, len(self.local_sources)):
self.sh(
'patch -p1 --ignore-whitespace < "%{local_sources[' + str(p) + ']}"')
def deploy(self):
self.loaders_cache = 'lib/gdk-pixbuf-2.0/2.10.0/loaders.cache'
self.sh('gdk-pixbuf-query-loaders --update-cache ')
# mark the file for destaging
self.sh(
'cp %{staged_profile}/%{loaders_cache} %{staged_profile}/%{loaders_cache}.release')
self.extra_stage_files = [self.loaders_cache]
GdkPixbufPackage()