summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorOlivier Cessenat <cessenat@gmail.com>2021-02-19 16:49:45 +0100
committerGitHub <noreply@github.com>2021-02-19 15:49:45 +0000
commit29d1e1ba87edeee3daea941d11adc67a03fcc1dd (patch)
tree8ed416848bd49412398f81f5430010f19c061f4b /var
parent550459ad41363bdaf3b008fc2edc409553557ea0 (diff)
downloadspack-29d1e1ba87edeee3daea941d11adc67a03fcc1dd.tar.gz
spack-29d1e1ba87edeee3daea941d11adc67a03fcc1dd.tar.bz2
spack-29d1e1ba87edeee3daea941d11adc67a03fcc1dd.tar.xz
spack-29d1e1ba87edeee3daea941d11adc67a03fcc1dd.zip
libqrencode: new package at v4.1.1 (#21801)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libqrencode/package.py44
1 files changed, 44 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libqrencode/package.py b/var/spack/repos/builtin/packages/libqrencode/package.py
new file mode 100644
index 0000000000..6658ed0d12
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libqrencode/package.py
@@ -0,0 +1,44 @@
+# 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 Libqrencode(AutotoolsPackage):
+ """libqrencode - a fast and compact QR Code encoding library."""
+
+ homepage = "https://fukuchi.org/works/qrencode/"
+ url = "https://github.com/fukuchi/libqrencode/archive/v4.1.1.tar.gz"
+ git = "https://github.com/fukuchi/libqrencode.git"
+
+ maintainers = ['cessenat']
+
+ version('master', branch='master')
+ version('4.1.1', sha256='5385bc1b8c2f20f3b91d258bf8ccc8cf62023935df2d2676b5b67049f31a049c')
+
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ # We assume a reasonably recent libtool is necessary
+ depends_on('libtool@2.4.2:', type='build')
+ depends_on('m4', type='build')
+ depends_on('pkgconfig', type='build')
+ # https://fukuchi.org/works/qrencode/ requires libpng-dev
+ depends_on('libpng@1.2.0:', type='link')
+
+ def autoreconf(self, spec, prefix):
+ # We had to call for autoreconf as well:
+ # https://stackoverflow.com/questions/3096989/libtool-version-mismatch-error
+ # There appears $LIBTOOLIZE --force --automake --copy is not necessary
+ args = [
+ 'autoreconf --force --install',
+ ]
+ with open('autogen.sh', 'a') as fh:
+ fh.write('\n'.join(args))
+ # https://fukuchi.org/works/qrencode/
+ # If there is no "configure" script in the source code directory,
+ # run "autogen.sh" at first to generate it - this is mandatory if
+ # you downloaded the source from GitHub
+ Executable('./autogen.sh')()