Implement review requests

- use two empty lines before `class`
- change version numbering scheme for packages, use `url_for_version` to make things work
- specify dependency types
- add comment about temporarily moved download location
- update two packages to newer versions
This commit is contained in:
Erik Schnetter
2016-08-23 13:52:28 -04:00
parent a2692e4ef5
commit 73cae8d9c4
9 changed files with 50 additions and 18 deletions

View File

@@ -26,14 +26,20 @@
import shutil
from spack import *
class Nauty(Package):
"""nauty and Traces are programs for computing automorphism groups of
graphsq and digraphs"""
homepage = "http://pallini.di.uniroma1.it/index.html"
url = "http://pallini.di.uniroma1.it/nauty26r5.tar.gz"
url = "http://pallini.di.uniroma1.it/nauty26r7.tar.gz"
version('26r5', '91b03a7b069962e94fc9aac8831ce8d2')
version('25r9', 'e8ecd08b0892a1fb13329c147f08de6d')
def url_for_version(self, version):
return ("http://pallini.di.uniroma1.it/nauty%s.tar.gz" %
str(version).replace('.', ''))
version('2.6r7', 'b2b18e03ea7698db3fbe06c5d76ad8fe')
version('2.6r5', '91b03a7b069962e94fc9aac8831ce8d2')
version('2.5r9', 'e8ecd08b0892a1fb13329c147f08de6d')
def install(self, spec, prefix):
configure('--prefix=%s' % prefix)