summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeoffrey Oxberry <goxberry@gmail.com>2019-08-12 12:44:54 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2019-08-12 14:44:54 -0500
commit6de750d86023b69e81aa449156a172db03ededae (patch)
treee56185ad7e5862e3945f826a95767f0209570009 /var
parent490168be4d4cb87ea9d80a2d77b4e9c4f0d18a8d (diff)
downloadspack-6de750d86023b69e81aa449156a172db03ededae.tar.gz
spack-6de750d86023b69e81aa449156a172db03ededae.tar.bz2
spack-6de750d86023b69e81aa449156a172db03ededae.tar.xz
spack-6de750d86023b69e81aa449156a172db03ededae.zip
gtksourceview: new package (#12387)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gtksourceview/package.py49
1 files changed, 49 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gtksourceview/package.py b/var/spack/repos/builtin/packages/gtksourceview/package.py
new file mode 100644
index 0000000000..68a0ee1348
--- /dev/null
+++ b/var/spack/repos/builtin/packages/gtksourceview/package.py
@@ -0,0 +1,49 @@
+# Copyright 2013-2019 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 Gtksourceview(AutotoolsPackage):
+ """GtkSourceView is a GNOME library that extends GtkTextView, the
+ standard GTK+ widget for multiline text editing. GtkSourceView adds
+ support for syntax highlighting, undo/redo, file loading and saving,
+ search and replace, a completion system, printing, displaying line
+ numbers, and other features typical of a source code editor.
+ """
+
+ homepage = "https://projects.gnome.org/gtksourceview"
+ url = "https://download.gnome.org/sources/gtksourceview/4.2/gtksourceview-4.2.0.tar.xz"
+
+ version('4.2.0', sha256='c431eb234dc83c7819e58f77dd2af973252c7750da1c9d125ddc94268f94f675')
+ version('3.24.11', sha256='691b074a37b2a307f7f48edc5b8c7afa7301709be56378ccf9cc9735909077fd')
+
+ depends_on('m4', type='build')
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+ depends_on('gobject-introspection', type='build')
+ depends_on('intltool', type='build')
+ depends_on('pkg-config', type='build')
+ depends_on('gettext')
+ depends_on('glib@2.48.0:', when='@3.24.11:4.2.0')
+ depends_on('gtkplus@3.20.0:', when='@3.24.11:4.2.0')
+ depends_on('libxml2@2.6:', when='@3.24.11:4.2.0')
+ depends_on('pango')
+ depends_on('gdk-pixbuf')
+ depends_on('atk')
+ depends_on('libiconv')
+
+ def url_for_version(self, version):
+ url = 'https://download.gnome.org/sources/gtksourceview/'
+ url += '{0}/gtksourceview-{1}.tar.xz'
+ return url.format(version.up_to(2), version)
+
+ # TODO: If https://github.com/spack/spack/pull/12344 is merged, this
+ # method is unnecessary.
+ def autoreconf(self, spec, prefix):
+ autoreconf = which('autoreconf')
+ autoreconf('-ifv')