summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeoffrey Oxberry <goxberry@gmail.com>2019-08-27 01:30:45 -0700
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2019-08-27 10:30:45 +0200
commitee710fd1708513db5e6eac38b667453c794a082a (patch)
treeb4179ca1fcf49d2044d01495cefde07d411ce586 /var
parente891cc49d5bc4a9db9fd3674c178fcb23b846e49 (diff)
downloadspack-ee710fd1708513db5e6eac38b667453c794a082a.tar.gz
spack-ee710fd1708513db5e6eac38b667453c794a082a.tar.bz2
spack-ee710fd1708513db5e6eac38b667453c794a082a.tar.xz
spack-ee710fd1708513db5e6eac38b667453c794a082a.zip
librsvg: new package (#12567)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/librsvg/package.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/librsvg/package.py b/var/spack/repos/builtin/packages/librsvg/package.py
new file mode 100644
index 0000000000..7671539e69
--- /dev/null
+++ b/var/spack/repos/builtin/packages/librsvg/package.py
@@ -0,0 +1,39 @@
+# 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 Librsvg(AutotoolsPackage):
+ """Library to render SVG files using Cairo"""
+
+ homepage = "https://wiki.gnome.org/Projects/LibRsvg"
+ url = "https://download.gnome.org/sources/librsvg/2.44/librsvg-2.44.14.tar.xz"
+
+ version('2.44.14', sha256='6a85a7868639cdd4aa064245cc8e9d864dad8b8e9a4a8031bb09a4796bc4e303')
+
+ depends_on("gobject-introspection", type='build')
+ depends_on("pkg-config", type='build')
+ depends_on("rust", type='build')
+ depends_on("cairo")
+ depends_on("gdk-pixbuf")
+ depends_on("glib")
+ depends_on("libcroco")
+ depends_on("pango")
+ depends_on('libffi')
+ depends_on('libxml2')
+
+ def url_for_version(self, version):
+ url = "https://download.gnome.org/sources/librsvg"
+ url += "{0}/librsvg-{1}.tar.xz"
+ return url.format(version.up_to(2), version)
+
+ def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
+ spack_env.prepend_path("XDG_DATA_DIRS", self.prefix.share)
+ run_env.prepend_path("XDG_DATA_DIRS", self.prefix.share)
+
+ def setup_environment(self, spack_env, run_env):
+ spack_env.prepend_path("XDG_DATA_DIRS", self.prefix.share)
+ run_env.prepend_path("XDG_DATA_DIRS", self.prefix.share)