summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2020-04-16 16:45:16 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2020-04-16 17:27:50 -0700
commitddb6e99a28b8a1f3e17cbeaa4c029057e2a76d6c (patch)
tree0c230ab5c957fec87f38e0cbbf34c4f680bfa1ce
parentf6d26db93949503c5ade08705b015766dc4d9f75 (diff)
downloadspack-ddb6e99a28b8a1f3e17cbeaa4c029057e2a76d6c.tar.gz
spack-ddb6e99a28b8a1f3e17cbeaa4c029057e2a76d6c.tar.bz2
spack-ddb6e99a28b8a1f3e17cbeaa4c029057e2a76d6c.tar.xz
spack-ddb6e99a28b8a1f3e17cbeaa4c029057e2a76d6c.zip
libpng: github download
libpng still has its sourceforge page but is actively been developed on github. since the sourceforge urls are too often down (as seen in my nightly CI/CD tests), just switch the download source to GitHub instead.
-rw-r--r--var/spack/repos/builtin/packages/libpng/package.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/libpng/package.py b/var/spack/repos/builtin/packages/libpng/package.py
index 8d615ef890..3514ff5a36 100644
--- a/var/spack/repos/builtin/packages/libpng/package.py
+++ b/var/spack/repos/builtin/packages/libpng/package.py
@@ -10,11 +10,10 @@ class Libpng(AutotoolsPackage):
"""libpng is the official PNG reference library."""
homepage = "http://www.libpng.org/pub/png/libpng.html"
- url = "http://download.sourceforge.net/libpng/libpng-1.6.37.tar.gz"
- list_url = "https://sourceforge.net/projects/libpng/files/"
- list_depth = 2
+ url = "https://github.com/glennrp/libpng/archive/v1.6.37.tar.gz"
+ git = "https://github.com/glennrp/libpng.git"
- version('1.6.37', sha256='daeb2620d829575513e35fecc83f0d3791a620b9b93d800b763542ece9390fb4')
+ version('1.6.37', sha256='ca74a0dace179a8422187671aee97dd3892b53e168627145271cad5b5ac81307')
# From http://www.libpng.org/pub/png/libpng.html (2019-04-15)
# libpng versions 1.6.36 and earlier have a use-after-free bug in the
# simplified libpng API png_image_free(). It has been assigned ID
@@ -22,7 +21,7 @@ class Libpng(AutotoolsPackage):
# released on 15 April 2019.
# Required for qt@3
- version('1.2.57', sha256='09ec37869fc5b130f5eb06ffb9bf949796e8d2d78e0788f78ab1c78624c6e9da')
+ version('1.2.57', sha256='7f415186d38ca71c23058386d7cf5135c8beda821ee1beecdc2a7a26c0356615')
depends_on('zlib@1.0.4:') # 1.2.5 or later recommended