summaryrefslogtreecommitdiff
path: root/recipes/librsvg-gtk.recipe
blob: a8716d4f7785d99c29d688caf7ecedfbac4ec0cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python


class Recipe(recipe.Recipe):
    name = 'librsvg-gtk'
    version = '2.40.6'
    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 = []

    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'