mirror of
https://code.it4i.cz/sccs/easyconfigs-it4i.git
synced 2025-04-08 07:52:11 +01:00
57 lines
1.5 KiB
Plaintext
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'
|