spack/var/spack/repos/builtin/packages/py-pygtk/package.py
Todd Gamblin eea786f4e8 relicense: replace LGPL headers with Apache-2.0/MIT SPDX headers
- remove the old LGPL license headers from all files in Spack
- add SPDX headers to all files
  - core and most packages are (Apache-2.0 OR MIT)
  - a very small number of remaining packages are LGPL-2.1-only
2018-10-17 14:42:06 -07:00

35 lines
1.1 KiB
Python

# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyPygtk(AutotoolsPackage):
"""bindings for the Gtk2 in Python.
use pygobject for Gtk3."""
homepage = "http://www.pygtk.org/"
url = "http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.24/pygtk-2.24.0.tar.gz"
version('2.24.0', 'd27c7f245a9e027f6b6cd9acb7468e36')
extends('python')
depends_on('pkgconfig', type=('build'))
depends_on("libffi")
# atk@2.28.1 depends on meson which requires python 3
depends_on('atk@:2.20.0')
# PyGTK requires python 2
# Use py-pygobject@3: for GTK bindings for python 3
depends_on('python@2:2.99', type=('build', 'run'))
depends_on('cairo')
depends_on('glib')
# for GTK 3.X use pygobject 3.X instead of pygtk
depends_on('gtkplus@2.24:2.99')
depends_on('py-pygobject@2.28:2.99', type=('build', 'run'))
depends_on('py-py2cairo', type=('build', 'run'))
def install(self, spec, prefix):
make('install', parallel=False)