From c5f5b7273d9256566602eeb66ff06794f86d307b Mon Sep 17 00:00:00 2001 From: darmac Date: Fri, 25 Sep 2020 00:51:05 +0800 Subject: Add new package: ctpl (#18911) --- var/spack/repos/builtin/packages/ctpl/package.py | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 var/spack/repos/builtin/packages/ctpl/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/ctpl/package.py b/var/spack/repos/builtin/packages/ctpl/package.py new file mode 100644 index 0000000000..1fc00729dd --- /dev/null +++ b/var/spack/repos/builtin/packages/ctpl/package.py @@ -0,0 +1,27 @@ +# 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 Ctpl(AutotoolsPackage): + """CTPL is a template engine library written in C and distributed + under the terms of the GNU GPL.""" + + homepage = "https://github.com/b4n/ctpl" + url = "https://github.com/b4n/ctpl/archive/0.3.tar.gz" + + version('0.3', sha256='034875ba8e1ce87b7ee85bc7146a6a2b2a6ac0518482b36d65eb67dd09c03d0a') + + depends_on('autoconf', type='build') + depends_on('automake', type='build') + depends_on('libtool', type='build') + depends_on('m4', type='build') + depends_on('gtk-doc') + depends_on('glib@2.10:') + + def autoreconf(self, spec, prefix): + bash = which('bash') + bash('./autogen.sh') -- cgit v1.2.3-60-g2f50