Skip to content
Snippets Groups Projects
Commit e5edac8a authored by Massimiliano Culpo's avatar Massimiliano Culpo Committed by Todd Gamblin
Browse files

zlib, tar: passed to AutotoolsPackage (#2273)

parent 01e42bfe
No related branches found
No related tags found
No related merge requests found
...@@ -25,11 +25,11 @@ ...@@ -25,11 +25,11 @@
from spack import * from spack import *
class Tar(Package): class Tar(AutotoolsPackage):
"""GNU Tar provides the ability to create tar archives, as well as various """GNU Tar provides the ability to create tar archives, as well as various
other kinds of manipulation.""" other kinds of manipulation."""
homepage = "https://www.gnu.org/software/tar/" homepage = "https://www.gnu.org/software/tar/"
url = "https://ftp.gnu.org/gnu/tar/tar-1.28.tar.gz" url = "https://ftp.gnu.org/gnu/tar/tar-1.28.tar.gz"
version('1.29', 'cae466e6e58c7292355e7080248f244db3a4cf755f33f4fa25ca7f9a7ed09af0') version('1.29', 'cae466e6e58c7292355e7080248f244db3a4cf755f33f4fa25ca7f9a7ed09af0')
version('1.28', '6ea3dbea1f2b0409b234048e021a9fd7') version('1.28', '6ea3dbea1f2b0409b234048e021a9fd7')
...@@ -38,8 +38,3 @@ class Tar(Package): ...@@ -38,8 +38,3 @@ class Tar(Package):
# https://github.com/Homebrew/homebrew-core/commit/aef9a1792de4648d0322b4b04d32287532f046bb # https://github.com/Homebrew/homebrew-core/commit/aef9a1792de4648d0322b4b04d32287532f046bb
# TODO: when=sys.platform=='darwin' ? # TODO: when=sys.platform=='darwin' ?
patch('gnutar-configure-xattrs.patch', when='@1.28') patch('gnutar-configure-xattrs.patch', when='@1.28')
def install(self, spec, prefix):
configure("--prefix=%s" % prefix)
make()
make('install')
...@@ -25,19 +25,11 @@ ...@@ -25,19 +25,11 @@
from spack import * from spack import *
class Zlib(Package): class Zlib(AutotoolsPackage):
"""A free, general-purpose, legally unencumbered lossless """A free, general-purpose, legally unencumbered lossless
data-compression library.""" data-compression library."""
homepage = "http://zlib.net" homepage = "http://zlib.net"
url = "http://zlib.net/zlib-1.2.8.tar.gz" url = "http://zlib.net/zlib-1.2.8.tar.gz"
version('1.2.8', '44d667c142d7cda120332623eab69f40') version('1.2.8', '44d667c142d7cda120332623eab69f40')
def install(self, spec, prefix):
configure('--prefix={0}'.format(prefix))
make()
if self.run_tests:
make('test')
make('install')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment