libqrencode: new package at v4.1.1 (#21801)
This commit is contained in:
parent
550459ad41
commit
29d1e1ba87
1 changed files with 44 additions and 0 deletions
44
var/spack/repos/builtin/packages/libqrencode/package.py
Normal file
44
var/spack/repos/builtin/packages/libqrencode/package.py
Normal file
|
@ -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')()
|
Loading…
Reference in a new issue