summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriarspider <iarspider@gmail.com>2021-05-21 15:19:22 +0200
committerGitHub <noreply@github.com>2021-05-21 07:19:22 -0600
commit9c179c7d0b25c2a85af3e50fdb087b5038278ad3 (patch)
tree976eceb1e6a3b3b26e55616727639ae6c35b71e4
parente42b27de7e521ad1df7050a08f66affa0867959c (diff)
downloadspack-9c179c7d0b25c2a85af3e50fdb087b5038278ad3.tar.gz
spack-9c179c7d0b25c2a85af3e50fdb087b5038278ad3.tar.bz2
spack-9c179c7d0b25c2a85af3e50fdb087b5038278ad3.tar.xz
spack-9c179c7d0b25c2a85af3e50fdb087b5038278ad3.zip
Add new versions of giflib (#23588)
giflib 5.20+ no longer uses autotools Co-authored-by: Ivan Razumov <ivan.razumov@cern.ch>
-rw-r--r--var/spack/repos/builtin/packages/giflib/package.py26
1 files changed, 23 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/giflib/package.py b/var/spack/repos/builtin/packages/giflib/package.py
index 70f75a1f4e..1b97ad975c 100644
--- a/var/spack/repos/builtin/packages/giflib/package.py
+++ b/var/spack/repos/builtin/packages/giflib/package.py
@@ -6,16 +6,36 @@
from spack import *
-class Giflib(AutotoolsPackage, SourceforgePackage):
+class Giflib(MakefilePackage, SourceforgePackage):
"""The GIFLIB project maintains the giflib service library, which has
been pulling images out of GIFs since 1989."""
homepage = "http://giflib.sourceforge.net/"
- sourceforge_mirror_path = "giflib/giflib-5.1.4.tar.bz2"
+ sourceforge_mirror_path = "giflib/giflib-5.1.4.tar.gz"
- version('5.1.4', sha256='df27ec3ff24671f80b29e6ab1c4971059c14ac3db95406884fc26574631ba8d5')
+ version('5.2.1', sha256='31da5562f44c5f15d63340a09a4fd62b48c45620cd302f77a6d9acf0077879bd')
+ version('5.2.0', sha256='dc7257487c767137602d86c17098ec97065a718ff568a61cfcf1a9466f197b1f')
+ version('5.1.4', sha256='df27ec3ff24671f80b29e6ab1c4971059c14ac3db95406884fc26574631ba8d5', extension='tar.bz2')
+
+ depends_on('automake', type='build', when='@:5.2.0')
+ depends_on('autoconf', type='build', when='@:5.2.0')
+ depends_on('m4', type='build', when='@:5.2.0')
+ depends_on('libtool', type='build', when='@:5.2.0')
patch('bsd-head.patch')
+ @property
+ def install_targets(self):
+ targets = ['install']
+ if self.spec.satisfies('@5.2.0:'):
+ targets.append('PREFIX={0}'.format(self.spec.prefix))
+
+ return targets
+
def check(self):
make('check', parallel=False)
+
+ def edit(self, spec, prefix):
+ if spec.satisfies('@:5.2.0'):
+ configure = Executable('./configure')
+ configure('--prefix={0}'.format(prefix))