From 50d7467715b4dd87ac055bba1c6d63d11638eb19 Mon Sep 17 00:00:00 2001 From: darmac Date: Sat, 29 Aug 2020 12:04:48 +0800 Subject: [PATCH] Add new package: tengine (#18305) --- .../repos/builtin/packages/tengine/package.py | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 var/spack/repos/builtin/packages/tengine/package.py diff --git a/var/spack/repos/builtin/packages/tengine/package.py b/var/spack/repos/builtin/packages/tengine/package.py new file mode 100644 index 0000000000..4296c18758 --- /dev/null +++ b/var/spack/repos/builtin/packages/tengine/package.py @@ -0,0 +1,22 @@ +# Copyright 2013-2020 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 Tengine(AutotoolsPackage): + """A distribution of Nginx with some advanced features.""" + + homepage = "http://tengine.taobao.org/" + url = "https://github.com/alibaba/tengine/archive/2.3.2.tar.gz" + + version('2.3.2', sha256='a65998a35739a59f8a16ec4c6090a59e569ba5a1a3f68fecad952057c1a18fea') + version('2.3.1', sha256='3dd93f813b80ed7581a81079a2037df6e4777b7e760fd6635b4009d344a5ab1c') + version('2.3.0', sha256='17cf1380d4faefb70707970437b3f8b66f6ff4530b5e6e61970b35f59b2e2624') + + depends_on('pcre') + + def setup_run_environment(self, env): + env.prepend_path('PATH', self.prefix.sbin)