From e63b34ff774b197417a2ab80a1a6e5878ed7c98f Mon Sep 17 00:00:00 2001 From: Olivier Cessenat Date: Tue, 16 Feb 2021 12:49:23 +0100 Subject: [PATCH] New Package: hevea (#21616) --- .../repos/builtin/packages/hevea/package.py | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 var/spack/repos/builtin/packages/hevea/package.py diff --git a/var/spack/repos/builtin/packages/hevea/package.py b/var/spack/repos/builtin/packages/hevea/package.py new file mode 100644 index 0000000000..cc15269458 --- /dev/null +++ b/var/spack/repos/builtin/packages/hevea/package.py @@ -0,0 +1,29 @@ +# Copyright 2013-2021 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 Hevea(MakefilePackage): + """Hevea a fast Latex to HTML translator""" + + homepage = "http://hevea.inria.fr/" + url = "https://github.com/maranget/hevea/archive/v2.35.tar.gz" + git = "https://github.com/maranget/hevea.git" + + maintainers = ['scemama', 'cessenat'] + + version('develop', branch='master') + version('2.35', sha256='78f834cc7a8112ec59d0b8acdfbed0c8ac7dbb85f964d0be1f4eed04f25cdf54') + version('2.34', sha256='f505a2a5bafdc2ea389ec521876844e6fdcb5c1b656396b7e8421c1631469ea2') + version('2.33', sha256='122f9023f9cfe8b41dd8965b7d9669df21bf41e419bcf5e9de5314f428380d0f') + version('2.32', sha256='f0c12ee3936364a3aa26da384e3d2ad2344be0091f04f9531f04ecb1dca98aca') + + # Dependency demands ocamlbuild + depends_on('ocaml') + depends_on('ocamlbuild') + + def edit(self, spec, prefix): + env['PREFIX'] = self.spec.prefix