Skip to content
Snippets Groups Projects
Commit 64194a82 authored by Adam J. Stewart's avatar Adam J. Stewart Committed by Todd Gamblin
Browse files

Remove duplicate ICU package (#1837)

* Remove duplicate ICU package

* Ignore deleted files during flake8 tests

* Rename Boost ICU variant
parent 6ef64283
No related branches found
No related tags found
No related merge requests found
...@@ -18,11 +18,11 @@ SPACK_ROOT="$(dirname "$0")/../../.." ...@@ -18,11 +18,11 @@ SPACK_ROOT="$(dirname "$0")/../../.."
cd "$SPACK_ROOT" cd "$SPACK_ROOT"
# Add changed files that have been committed since branching off of develop # Add changed files that have been committed since branching off of develop
changed=($(git diff --name-only --find-renames develop... -- "$@")) changed=($(git diff --name-only --diff-filter=ACMR develop... -- "$@"))
# Add changed files that have been staged but not yet committed # Add changed files that have been staged but not yet committed
changed+=($(git diff --name-only --find-renames --cached -- "$@")) changed+=($(git diff --name-only --diff-filter=ACMR --cached -- "$@"))
# Add changed files that are unstaged # Add changed files that are unstaged
changed+=($(git diff --name-only --find-renames -- "$@")) changed+=($(git diff --name-only --diff-filter=ACMR -- "$@"))
# Add new files that are untracked # Add new files that are untracked
changed+=($(git ls-files --exclude-standard --other -- "$@")) changed+=($(git ls-files --exclude-standard --other -- "$@"))
......
...@@ -58,7 +58,7 @@ class R(Package): ...@@ -58,7 +58,7 @@ class R(Package):
# Concrete dependencies # Concrete dependencies
depends_on('readline') depends_on('readline')
depends_on('ncurses') depends_on('ncurses')
depends_on('icu') depends_on('icu4c')
depends_on('glib') depends_on('glib')
depends_on('zlib') depends_on('zlib')
depends_on('bzip2') depends_on('bzip2')
......
...@@ -111,12 +111,12 @@ class Boost(Package): ...@@ -111,12 +111,12 @@ class Boost(Package):
description="Build multi-threaded versions of libraries") description="Build multi-threaded versions of libraries")
variant('singlethreaded', default=True, variant('singlethreaded', default=True,
description="Build single-threaded versions of libraries") description="Build single-threaded versions of libraries")
variant('icu_support', default=False, variant('icu', default=False,
description="Include ICU support (for regex/locale libraries)") description="Build with Unicode and ICU suport")
variant('graph', default=False, variant('graph', default=False,
description="Build the Boost Graph library") description="Build the Boost Graph library")
depends_on('icu', when='+icu_support') depends_on('icu4c', when='+icu')
depends_on('python', when='+python') depends_on('python', when='+python')
depends_on('mpi', when='+mpi') depends_on('mpi', when='+mpi')
depends_on('bzip2', when='+iostreams') depends_on('bzip2', when='+iostreams')
......
...@@ -33,7 +33,7 @@ class Harfbuzz(Package): ...@@ -33,7 +33,7 @@ class Harfbuzz(Package):
version('0.9.37', 'bfe733250e34629a188d82e3b971bc1e') version('0.9.37', 'bfe733250e34629a188d82e3b971bc1e')
depends_on("glib") depends_on("glib")
depends_on("icu") depends_on("icu4c")
depends_on("freetype") depends_on("freetype")
depends_on("cairo") depends_on("cairo")
depends_on("zlib") depends_on("zlib")
......
##############################################################################
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/llnl/spack
# Please also see the LICENSE file for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
# published by the Free Software Foundation) version 2.1, February 1999.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
# conditions of the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
class Icu(Package):
"""The International Components for Unicode (ICU) package is a
mature, widely used set of C/C++ libraries providing Unicode and
Globalization support for software applications. ICU is widely
portable and gives applications the same results on all
platforms."""
homepage = "http://site.icu-project.org/"
url = "http://download.icu-project.org/files/icu4c/54.1/icu4c-54_1-src.tgz"
version('54.1', 'e844caed8f2ca24c088505b0d6271bc0')
def url_for_version(self, version):
return "http://download.icu-project.org/files/icu4c/%s/icu4c-%s-src.tgz" % (
version, str(version).replace('.', '_'))
def install(self, spec, prefix):
with working_dir("source"):
configure("--prefix=%s" % prefix)
make()
make("install")
...@@ -27,8 +27,9 @@ ...@@ -27,8 +27,9 @@
class Icu4c(Package): class Icu4c(Package):
"""ICU is a mature, widely used set of C/C++ and Java libraries providing """ICU is a mature, widely used set of C/C++ and Java libraries providing
Unicode and Globalization support for software applications. Unicode and Globalization support for software applications. ICU4C is the
""" C/C++ interface."""
homepage = "http://site.icu-project.org/" homepage = "http://site.icu-project.org/"
url = "http://download.icu-project.org/files/icu4c/57.1/icu4c-57_1-src.tgz" url = "http://download.icu-project.org/files/icu4c/57.1/icu4c-57_1-src.tgz"
...@@ -40,10 +41,9 @@ def url_for_version(self, version): ...@@ -40,10 +41,9 @@ def url_for_version(self, version):
base_url, version, version.underscored) base_url, version, version.underscored)
def install(self, spec, prefix): def install(self, spec, prefix):
cd('source') with working_dir('source'):
configure('--prefix={0}'.format(prefix))
configure('--prefix={0}'.format(prefix))
make() make()
make('check') make('check')
make('install') make('install')
...@@ -44,7 +44,7 @@ class RStringi(Package): ...@@ -44,7 +44,7 @@ class RStringi(Package):
extends('R') extends('R')
depends_on('icu') depends_on('icu4c')
def install(self, spec, prefix): def install(self, spec, prefix):
R('CMD', 'INSTALL', '--library={0}'.format(self.module.r_lib_dir), R('CMD', 'INSTALL', '--library={0}'.format(self.module.r_lib_dir),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment