update attr version to 2.4.48 (#15535)
* update attr version to 2.4.48 * attr: remove redundant make() in install()
This commit is contained in:
parent
a3cb1b8e7e
commit
363cf9f9b1
@ -12,9 +12,17 @@ class Attr(AutotoolsPackage):
|
||||
homepage = "https://savannah.nongnu.org/projects/attr"
|
||||
url = "http://download.savannah.gnu.org/releases/attr/attr-2.4.47.src.tar.gz"
|
||||
|
||||
version('2.4.48', sha256='5ead72b358ec709ed00bbf7a9eaef1654baad937c001c044fe8b74c57f5324e7')
|
||||
version('2.4.47', sha256='25772f653ac5b2e3ceeb89df50e4688891e21f723c460636548971652af0a859')
|
||||
version('2.4.46', sha256='dcd69bdca7ff166bc45141eddbcf21967999a6b66b0544be12a1cc2fd6340e1f')
|
||||
|
||||
def url_for_version(self, version):
|
||||
if version >= Version('2.4.48'):
|
||||
url = 'http://download.savannah.gnu.org/releases/attr/attr-{0}.tar.gz'
|
||||
else:
|
||||
url = 'http://download.savannah.gnu.org/releases/attr/attr-{0}.src.tar.gz'
|
||||
return url.format(version)
|
||||
|
||||
def configure_args(self):
|
||||
args = []
|
||||
args.append('--disable-static')
|
||||
@ -22,5 +30,7 @@ def configure_args(self):
|
||||
|
||||
# Ref. http://www.linuxfromscratch.org/blfs/view/7.5/postlfs/attr.html
|
||||
def install(self, spec, prefix):
|
||||
make()
|
||||
make('install', 'install-dev', 'install-lib')
|
||||
if self.version >= Version('2.4.48'):
|
||||
make('install')
|
||||
else:
|
||||
make('install', 'install-dev', 'install-lib')
|
||||
|
Loading…
Reference in New Issue
Block a user