zlib, tar: passed to AutotoolsPackage (#2273)

This commit is contained in:
Massimiliano Culpo 2016-11-09 16:37:08 +01:00 committed by Todd Gamblin
parent 01e42bfea0
commit e5edac8af6
2 changed files with 4 additions and 17 deletions

View file

@ -25,7 +25,7 @@
from spack import *
class Tar(Package):
class Tar(AutotoolsPackage):
"""GNU Tar provides the ability to create tar archives, as well as various
other kinds of manipulation."""
homepage = "https://www.gnu.org/software/tar/"
@ -38,8 +38,3 @@ class Tar(Package):
# https://github.com/Homebrew/homebrew-core/commit/aef9a1792de4648d0322b4b04d32287532f046bb
# TODO: when=sys.platform=='darwin' ?
patch('gnutar-configure-xattrs.patch', when='@1.28')
def install(self, spec, prefix):
configure("--prefix=%s" % prefix)
make()
make('install')

View file

@ -25,7 +25,7 @@
from spack import *
class Zlib(Package):
class Zlib(AutotoolsPackage):
"""A free, general-purpose, legally unencumbered lossless
data-compression library."""
@ -33,11 +33,3 @@ class Zlib(Package):
url = "http://zlib.net/zlib-1.2.8.tar.gz"
version('1.2.8', '44d667c142d7cda120332623eab69f40')
def install(self, spec, prefix):
configure('--prefix={0}'.format(prefix))
make()
if self.run_tests:
make('test')
make('install')