summaryrefslogtreecommitdiff
path: root/recipes/glade2.recipe
blob: a7afb0c0884cd60a700f038633b574bdfcbb104f (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
26
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
from cerbero.utils import shell


class Recipe(recipe.Recipe):
    version = '2.12.2'
    name = 'glade'
    licenses = [License.LGPL]
    stype = SourceType.TARBALL
    configure_options = '--without-x'
    url = 'http://ftp.acc.umu.se/pub/GNOME/sources/glade/2.12/glade-2.12.2.tar.bz2'
    deps = ['gtk+', 'pygtk']

    files_libs = ['libglade-2']


    def configure(self):
        for f in ['glade/gbwidgets/gbclist.c',
                  'glade/glade_keys_dialog.c',
                  'glade/glade_menu_editor.c',
                  'glade/glade_project_view.h']:
            shell.replace(os.path.join(self.build_dir, f),
                {'gtkclist.h': 'gtkctree.h'})
        shell.replace(os.path.join(self.build_dir, 'configure'),
                {'$X_PRE_LIBS -lX11': '$X_PRE_LIBS '})
        super(recipe.Recipe, self).configure()