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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
class Recipe(recipe.Recipe):
name = 'pygobject'
version = '3.12.1'
stype = SourceType.TARBALL
url = 'http://ftp.gnome.org/pub/GNOME/sources/pygobject/3.12/pygobject-%(version)s.tar.xz'
licenses = [License.LGPLv2_1Plus]
deps = ['glib']
make_check = None # disabled until we fix the checks
files_python = [
'site-packages/gi/_gi%(pext)s',
'site-packages/gi/_gi_cairo%(pext)s',
'site-packages/gi/__init__.py',
'site-packages/gi/_constants.py',
'site-packages/gi/_gobject/__init__.py',
'site-packages/gi/_option.py',
'site-packages/gi/_propertyhelper.py',
'site-packages/gi/_signalhelper.py',
'site-packages/gi/docstring.py',
'site-packages/gi/importer.py',
'site-packages/gi/module.py',
'site-packages/gi/overrides/GIMarshallingTests.py',
'site-packages/gi/overrides/GLib.py',
'site-packages/gi/overrides/GObject.py',
'site-packages/gi/overrides/Gdk.py',
'site-packages/gi/overrides/Gio.py',
'site-packages/gi/overrides/Gtk.py',
'site-packages/gi/overrides/Pango.py',
'site-packages/gi/overrides/__init__.py',
'site-packages/gi/overrides/keysyms.py',
'site-packages/gi/pygtkcompat.py',
'site-packages/gi/repository/__init__.py',
'site-packages/gi/types.py',
'site-packages/pygtkcompat/__init__.py',
'site-packages/pygtkcompat/generictreemodel.py',
'site-packages/pygtkcompat/pygtkcompat.py',
]
files_devel = ['include/pygobject-3.0/pygobject.h',
'lib/pkgconfig/pygobject-3.0.pc',
]
def prepare(self):
if self.config.variants.python3:
self.deps.append("Python")
self.deps.append('pycairo')
self.configure_options = '--with-python=python3'
else:
self.deps.append('py2cairo')
self.configure_options = '--with-python=python2'
|