gobject-introspection-m4.recipe 1.11 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
 # -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python

import shutil

class Recipe(recipe.Recipe):
    """
    Ships the introspection.m4 macro file from the gobject-introspection tarball
    """
    name = 'gobject-introspection-m4'
    _name = 'gobject-introspection'
11
    version = '1.54.1'
12
13
    stype = SourceType.TARBALL
    maj_ver = '.'.join(version.split('.')[0:2])
14
    url = 'https://ftp.gnome.org/pub/GNOME/sources/{0}/{2}/{0}-{1}.tar.xz'.format(_name, version, maj_ver)
15
    tarball_checksum = 'b88ded5e5f064ab58a93aadecd6d58db2ec9d970648534c63807d4f9a7bb877e'
16
17
18
19
20
21
22
23
24
25
26
27
    srcdir = "{0}-{1}".format(_name, version)
    licenses = [License.GPLv2Plus]
    btype = BuildType.CUSTOM
    files_devel = ['share/aclocal/introspection.m4']

    def prepare(self):
        self.build_dir = os.path.join(os.path.dirname(self.build_dir),
                                      '{0}-{1}'.format(self._name,
                                          self.version))

    def install(self):
        shutil.copy(os.path.join(self.build_dir, 'm4', 'introspection.m4'),
28
                    os.path.join(self.config.prefix, 'share', 'aclocal'))