summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/gtkplus/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/gtkplus/package.py')
-rw-r--r--var/spack/repos/builtin/packages/gtkplus/package.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gtkplus/package.py b/var/spack/repos/builtin/packages/gtkplus/package.py
new file mode 100644
index 0000000000..0ebc7100de
--- /dev/null
+++ b/var/spack/repos/builtin/packages/gtkplus/package.py
@@ -0,0 +1,22 @@
+from spack import *
+
+class Gtkplus(Package):
+ """The GTK+ 2 package contains libraries used for creating graphical user interfaces for applications."""
+ homepage = "http://www.gtk.org"
+
+ version('2.24.25', '612350704dd3aacb95355a4981930c6f',
+ url="http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.25.tar.xz")
+
+ depends_on("atk")
+ depends_on("gdk-pixbuf")
+ depends_on("pango")
+
+ def patch(self):
+ # remove disable deprecated flag.
+ filter_file(r'CFLAGS="-DGDK_PIXBUF_DISABLE_DEPRECATED $CFLAGS"',
+ '', 'configure', string=True)
+
+ def install(self, spec, prefix):
+ configure("--prefix=%s" % prefix)
+ make()
+ make("install")