diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-04-09 15:19:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-09 09:19:52 +0200 |
commit | 6d8a59be5bd6559219cc953bad54fb4bf65fbae8 (patch) | |
tree | d9f8956e66cef9961eb9b14476250529184bc6be /var | |
parent | f9c833e07804ae5282a9d9f6ca69a6b7f10945cd (diff) | |
download | spack-6d8a59be5bd6559219cc953bad54fb4bf65fbae8.tar.gz spack-6d8a59be5bd6559219cc953bad54fb4bf65fbae8.tar.bz2 spack-6d8a59be5bd6559219cc953bad54fb4bf65fbae8.tar.xz spack-6d8a59be5bd6559219cc953bad54fb4bf65fbae8.zip |
uchardet: added package at v0.6.0 (#15937)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/uchardet/package.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/uchardet/package.py b/var/spack/repos/builtin/packages/uchardet/package.py new file mode 100644 index 0000000000..1e09e08e62 --- /dev/null +++ b/var/spack/repos/builtin/packages/uchardet/package.py @@ -0,0 +1,29 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Uchardet(CMakePackage): + """uchardet is an encoding detector library, which takes a sequence of + bytes in an unknown character encoding without any additional information, + and attempts to determine the encoding of the text. Returned encoding names + are iconv-compatible.""" + + homepage = "https://www.freedesktop.org/wiki/Software/uchardet/" + url = "https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.6.tar.xz" + + version('0.0.6', sha256='8351328cdfbcb2432e63938721dd781eb8c11ebc56e3a89d0f84576b96002c61') + version('0.0.5', sha256='7c5569c8ee1a129959347f5340655897e6a8f81ec3344de0012a243f868eabd1') + version('0.0.4', sha256='9dbe41fc73ba6a70676c04b1f0dd812914c0bbb65940283f2d54c5a2338a2acd') + version('0.0.3', sha256='8caba57524b6e306e764b4dabf5bfec48b6f9d89b73543ed7c95263890e2006f') + version('0.0.2', sha256='eb59b5b36269212a0d5f44d654cdbeb02e4e43ff59e3ce0205d6a64670991e83') + + def url_for_version(self, version): + if version >= Version('0.0.6'): + url = "https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.6.tar.xz" + else: + url = "https://github.com/BYVoid/uchardet/archive/v0.0.5.tar.gz" + return url |