diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2017-03-02 18:32:04 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-02 18:32:04 -0600 |
commit | a7be0d4e5d9dcfd189fd8e7a9240fab7218c73b5 (patch) | |
tree | 0fa88bc9c43b3889bcfea5ba6f7eb2a2d48cf746 | |
parent | 4afb7a729c2886a25809d2c00d78f99f6e4286fa (diff) | |
download | spack-a7be0d4e5d9dcfd189fd8e7a9240fab7218c73b5.tar.gz spack-a7be0d4e5d9dcfd189fd8e7a9240fab7218c73b5.tar.bz2 spack-a7be0d4e5d9dcfd189fd8e7a9240fab7218c73b5.tar.xz spack-a7be0d4e5d9dcfd189fd8e7a9240fab7218c73b5.zip |
Convert icu4c to AutotoolsPackage (#3316)
-rw-r--r-- | var/spack/repos/builtin/packages/icu4c/package.py | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/var/spack/repos/builtin/packages/icu4c/package.py b/var/spack/repos/builtin/packages/icu4c/package.py index e2fcb7bd5f..5b69dfea0f 100644 --- a/var/spack/repos/builtin/packages/icu4c/package.py +++ b/var/spack/repos/builtin/packages/icu4c/package.py @@ -25,26 +25,24 @@ from spack import * -class Icu4c(Package): +class Icu4c(AutotoolsPackage): """ICU is a mature, widely used set of C/C++ and Java libraries providing Unicode and Globalization support for software applications. ICU4C is the C/C++ interface.""" homepage = "http://site.icu-project.org/" url = "http://download.icu-project.org/files/icu4c/57.1/icu4c-57_1-src.tgz" + list_url = "http://download.icu-project.org/files/icu4c" + list_depth = 2 + version('58.2', 'fac212b32b7ec7ab007a12dff1f3aea1') version('57.1', '976734806026a4ef8bdd17937c8898b9') - def url_for_version(self, version): - base_url = "http://download.icu-project.org/files/icu4c" - return "{0}/{1}/icu4c-{2}-src.tgz".format( - base_url, version, version.underscored) + configure_directory = 'source' - def install(self, spec, prefix): - with working_dir('source'): - configure('--prefix={0}'.format(prefix), - '--enable-rpath') + def url_for_version(self, version): + url = "http://download.icu-project.org/files/icu4c/{0}/icu4c-{1}-src.tgz" + return url.format(version.dotted, version.underscored) - make() - make('check') - make('install') + def configure_args(self): + return ['--enable-rpath'] |