summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2020-08-09 06:09:52 -0500
committerGitHub <noreply@github.com>2020-08-09 13:09:52 +0200
commitaa14c9d1d1ceb5601f120911e73549a409e4589d (patch)
tree516904bc632f3757bf670e6a89a843af6a26d9fd /var
parent2954eb39c97ae972632686751e5e698cfc146a4b (diff)
downloadspack-aa14c9d1d1ceb5601f120911e73549a409e4589d.tar.gz
spack-aa14c9d1d1ceb5601f120911e73549a409e4589d.tar.bz2
spack-aa14c9d1d1ceb5601f120911e73549a409e4589d.tar.xz
spack-aa14c9d1d1ceb5601f120911e73549a409e4589d.zip
libimagequant: added new package at v2.12.6 (#17959)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libimagequant/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libimagequant/package.py b/var/spack/repos/builtin/packages/libimagequant/package.py
new file mode 100644
index 0000000000..1e8f7752e3
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libimagequant/package.py
@@ -0,0 +1,25 @@
+# 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)
+
+
+class Libimagequant(Package):
+ """Small, portable C library for high-quality conversion of RGBA images to
+ 8-bit indexed-color (palette) images."""
+
+ homepage = "https://pngquant.org/lib/"
+ url = "https://github.com/ImageOptim/libimagequant/archive/2.12.6.tar.gz"
+
+ version('2.12.6', sha256='b34964512c0dbe550c5f1b394c246c42a988cd73b71a76c5838aa2b4a96e43a0')
+
+ phases = ['configure', 'build', 'install']
+
+ def configure(self, spec, prefix):
+ configure('--prefix=' + prefix)
+
+ def build(self, spec, prefix):
+ make()
+
+ def install(self, spec, prefix):
+ make('install')