summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-09-25 00:51:05 +0800
committerGitHub <noreply@github.com>2020-09-24 11:51:05 -0500
commitc5f5b7273d9256566602eeb66ff06794f86d307b (patch)
tree5e2a69d0df7a38f91775ba14caa3c5db0cfe67d4 /var
parent2a2d90f9cd4b2efa6494a5d7b001f55127e3aa91 (diff)
downloadspack-c5f5b7273d9256566602eeb66ff06794f86d307b.tar.gz
spack-c5f5b7273d9256566602eeb66ff06794f86d307b.tar.bz2
spack-c5f5b7273d9256566602eeb66ff06794f86d307b.tar.xz
spack-c5f5b7273d9256566602eeb66ff06794f86d307b.zip
Add new package: ctpl (#18911)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ctpl/package.py27
1 files changed, 27 insertions, 0 deletions
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')