# 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 Ctffind(AutotoolsPackage):
    """Fast and accurate defocus estimation from electron micrographs."""

    homepage = "http://grigoriefflab.janelia.org/ctffind4"
    url      = "http://grigoriefflab.janelia.org/sites/default/files/ctffind-4.1.8.tar.gz"

    version('4.1.8', sha256='bec43c0b8d32878c740d6284ef6d9d22718c80dc62270be18d1d44e8b84b2729')

    depends_on('wxwidgets')
    depends_on('fftw@3:')

@@ -333,32 +333,33 @@
 homepage = %22http
+s
 ://grigoriefflab
@@ -363,28 +363,51 @@
 lab.
-janelia.org/ctffind4
+umassmed.edu/ctf_estimation_ctffind_ctftilt
 %22%0A  
@@ -424,16 +424,17 @@
  = %22http
+s
 ://grigo
@@ -446,60 +446,80 @@
 lab.
-janelia.org/sites/default/files/ctffind-4.1.8.tar.gz
+umassmed.edu/system/tdf?path=ctffind-4.1.8.tar.gz&file=1&type=node&id=26
 %22%0A%0A 
@@ -611,16 +611,36 @@
 84b2729'
+, extension='tar.gz'
 )%0A%0A    d

update url and version directive (#22039)