diff options
-rw-r--r-- | recipes/gnome-themes-standard.recipe | 2 | ||||
-rw-r--r-- | recipes/librsvg-gtk.recipe | 25 | ||||
-rw-r--r-- | recipes/librsvg.recipe | 11 |
3 files changed, 30 insertions, 8 deletions
diff --git a/recipes/gnome-themes-standard.recipe b/recipes/gnome-themes-standard.recipe index c8e7f448..a4a3e164 100644 --- a/recipes/gnome-themes-standard.recipe +++ b/recipes/gnome-themes-standard.recipe @@ -8,7 +8,7 @@ class Recipe(recipe.Recipe): use_system_libs = True # Needs acces to X11 for gdk3 stype = SourceType.TARBALL url = 'http://ftp.gnome.org/pub/GNOME/sources/gnome-themes-standard/3.10/gnome-themes-standard-%(version)s.tar.xz' - deps = ['gtk+3', 'librsvg'] + deps = ['gtk+3', 'librsvg-gtk'] configure_options = '--disable-gtk2-engine' files_misc = ['lib/gtk-3.0/3.0.0/theming-engines/libadwaita%(pext)s', diff --git a/recipes/librsvg-gtk.recipe b/recipes/librsvg-gtk.recipe new file mode 100644 index 00000000..5ae25136 --- /dev/null +++ b/recipes/librsvg-gtk.recipe @@ -0,0 +1,25 @@ +# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python + + +class Recipe(recipe.Recipe): + name = 'librsvg-gtk' + version = '2.40.2' + licenses = [License.LGPLv2] + + stype = SourceType.TARBALL + url = 'http://ftp.acc.umu.se/pub/GNOME/sources/librsvg/2.40/librsvg-%(version)s.tar.xz' + + files_loader = ['lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg%(mext)s'] + deps = ['libcroco', 'gdk-pixbuf', 'gtk+3', 'librsvg'] + + patches = ['librsvg/0001-Add-an-implementation-of-realpath-for-windows-to-mak.patch'] + + def prepare(self): + self.build_dir = self.build_dir.replace(self.name, "librsvg") + self.package_name = self.package_name.replace(self.name, "librsvg") + self.repo_dir = self.repo_dir.replace(self.name, "librsvg") + self.download_path = self.download_path.replace(self.name, "librsvg") + self.make_dir = self.make_dir.replace(self.name, "librsvg") + if self.config.target_platform == Platform.DARWIN: + self.configure_options += ' --disable-Bsymbolic' + diff --git a/recipes/librsvg.recipe b/recipes/librsvg.recipe index 244b5299..ff6d0ef8 100644 --- a/recipes/librsvg.recipe +++ b/recipes/librsvg.recipe @@ -13,17 +13,14 @@ class Recipe(recipe.Recipe): files_libs = ['librsvg-2'] files_bins = ['rsvg-convert'] files_loader = [] - files_devel = ['include/librsvg-2.0/librsvg', - 'lib/pkgconfig/librsvg-2.0.pc'] + files_devel = ['include/librsvg-2.0/librsvg/*.h', + 'lib/pkgconfig/librsvg-2.0.pc', + 'lib/librsvg-2.a', 'lib/librsvg-2.la'] files_typelibs = ['Rsvg-2.0'] + configure_options = ' --disable-pixbuf-loader --disable-gtk-theme ' patches = ['librsvg/0001-Add-an-implementation-of-realpath-for-windows-to-mak.patch'] def prepare(self): - if self.config.variants.gtk: - self.deps += ['gdk-pixbuf', 'gtk+3'] - self.files_loader += ['lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg%(mext)s'] - else: - self.configure_options += ' --disable-pixbuf-loader --disable-gtk-theme ' if self.config.target_platform == Platform.DARWIN: self.configure_options += ' --disable-Bsymbolic' |