# -*- 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'