summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJennifer Herting <jen@herting.cc>2020-04-03 12:07:25 -0400
committerGitHub <noreply@github.com>2020-04-03 11:07:25 -0500
commit1461332e9712c48bc5b0ade5ea4c2c1d0f99db11 (patch)
treee401082df23448a99c1ab6f0d91979fa12c602cf
parentc0d2f70d02856508d4edd61d710de05d2a5ef178 (diff)
downloadspack-1461332e9712c48bc5b0ade5ea4c2c1d0f99db11.tar.gz
spack-1461332e9712c48bc5b0ade5ea4c2c1d0f99db11.tar.bz2
spack-1461332e9712c48bc5b0ade5ea4c2c1d0f99db11.tar.xz
spack-1461332e9712c48bc5b0ade5ea4c2c1d0f99db11.zip
New package: libnotify (#15769)
* [libnotify] created template * [libnotify] added homepage and description * [libnotify] added dependencies * [libnotify] patch location to docbook * [libnotify] more dependency work * [libnotify] reorder dependencies * [libnotify] added variant docbook * [libnotify] more accurate dependency version * [libnotify] xsltproc still needed * [libnotify] created test variant * [libnotify] added gtkdoc varient * [libnotify] cleaned up leftover fixme * [libnotify] flake8 * [libnotify] test variant became self.run_tests * [libnotify] pkgconfig is build dependency * [libnotify] commented out broken variants * [libnotify] flake8
-rw-r--r--var/spack/repos/builtin/packages/libnotify/docbook-location.patch11
-rw-r--r--var/spack/repos/builtin/packages/libnotify/package.py57
2 files changed, 68 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libnotify/docbook-location.patch b/var/spack/repos/builtin/packages/libnotify/docbook-location.patch
new file mode 100644
index 0000000000..5fcaf2ddb7
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libnotify/docbook-location.patch
@@ -0,0 +1,11 @@
+--- a/meson.build 2020-03-30 14:00:26.851258170 -0400
++++ b/meson.build 2020-03-30 14:03:43.134195999 -0400
+@@ -54,7 +54,7 @@
+
+ if get_option('man')
+ xsltproc = find_program('xsltproc', required: true)
+- stylesheet = 'http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl'
++ stylesheet = 'http://cdn.docbook.org/release/xsl/current/manpages/docbook.xsl'
+ xsltproc_command = [
+ xsltproc,
+ '--nonet',
diff --git a/var/spack/repos/builtin/packages/libnotify/package.py b/var/spack/repos/builtin/packages/libnotify/package.py
new file mode 100644
index 0000000000..6407fd6406
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libnotify/package.py
@@ -0,0 +1,57 @@
+# 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 Libnotify(MesonPackage):
+ """libnotify is a library for sending desktop notifications"""
+
+ homepage = "https://github.com/GNOME/libnotify"
+ url = "https://github.com/GNOME/libnotify/archive/0.7.9.tar.gz"
+
+ version('0.7.9', sha256='9bd4f5fa911d27567e7cc2d2d09d69356c16703c4e8d22c0b49a5c45651f3af0')
+
+ # Libnotify is having trouble with finding the DTD and XSLT for docbook,
+ # which is required for both of these varients.
+ # variant('docbook', default=False,
+ # description='Build docbook docs. Currently broken')
+ # variant('gtkdoc', default=False,
+ # description='Build with gtkdoc. Currently broken')
+
+ depends_on('pkgconfig', type='build')
+ depends_on('glib@2.26.0:')
+ depends_on('gtkplus@2.90:')
+ depends_on('gobject-introspection')
+ depends_on('libxslt', type='build')
+ depends_on('docbook-xsl', type='build')
+ # depends_on('gtk-doc', when='+gtkdoc', type='build')
+ # depends_on('xmlto', when='+docbook', type='build')
+
+ patch('docbook-location.patch')
+
+ def meson_args(self):
+ # spec = self.spec
+ args = []
+
+ # if '+docbook' in spec:
+ # args.append('-Ddocbook_docs=enabled')
+ # else:
+ # args.append('-Ddocbook_docs=disabled')
+ args.append('-Ddocbook_docs=disabled')
+
+ # if self.run_tests:
+ # args.append('-Dtests=true')
+ # else:
+ # args.append('-Dtests=false')
+ args.append('-Dtests=false')
+
+ # if '+gtkdoc' in spec:
+ # args.append('-Dgtk_doc=true')
+ # else:
+ # args.append('-Dgtk_doc=false')
+ args.append('-Dgtk_doc=false')
+
+ return args