easyconfigs-it4i/p/PyGTK/PyGTK-2.24.0-Python-2.7.13.eb
Lukáš Krupčík 92cb0848fe formatter
2018-10-03 07:48:02 +02:00

57 lines
1.5 KiB
Plaintext

easyblock = 'ConfigureMake'
name = 'PyGTK'
version = '2.24.0'
homepage = 'http://www.pygtk.org/'
description = """PyGTK lets you to easily create programs with a graphical user interface
using the Python programming language."""
toolchain = {'name': 'dummy', 'version': ''}
source_urls = [PYPI_SOURCE]
sources = [SOURCELOWER_TAR_BZ2]
#patches = ['pygtk-2.24.0.patch']
pyver = '2.7.13'
pyshortver = '.'.join(pyver.split('.')[:2])
versionsuffix = '-Python-%s' % pyver
glibver = '2.52.0'
dependencies = [
('Python', pyver),
('GLib', glibver),
('PyGObject', '2.28.6', versionsuffix),
# ('GTK+', '2.24.28'),
# ('ATK', '2.18.0'),
('cairo', '1.14.12'),
# ('libglade', '2.6.4'),
]
postinstallcmds = [
"sed -i s#'codegendir=${datadir}'#codegendir=$EBROOTPYGOBJECT/share# %(installdir)s/lib/pkgconfig/pygtk-2.0.pc",
"sed -i s#'exec_prefix=${prefix}'#exec_prefix=$EBROOTPYGOBJECT# %(installdir)s/bin/pygtk-codegen-2.0",
]
modextrapaths = {
'PYTHONPATH': [
'lib/python%s/site-packages' % pyshortver,
'lib64/python%s/site-packages' % pyshortver,
'lib/python%s/site-packages/gtk-%%(version_major)s.0' % pyshortver,
'lib64/python%s/site-packages/gtk-%%(version_major)s.0' % pyshortver,
],
}
sanity_check_paths = {
'files': ['lib/pkgconfig/pygtk-%(version_major)s.0.pc'],
'dirs': ['lib/pygtk'],
}
# sanity_check_commands = [
# ('python', "-c 'import gtk'"),
# ('python', "-c 'import gtk.glade'"),
#]
moduleclass = 'vis'