summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorOlivier Cessenat <cessenat@gmail.com>2021-06-10 16:50:03 +0200
committerGitHub <noreply@github.com>2021-06-10 16:50:03 +0200
commitfd5b13b7a48495d19232d122c962aeee3c50959e (patch)
treeaec099d29d044ba9565ec6326c15713706337455 /var
parent31c0bcf346eac9f5d0acaed56ec567eedf555d15 (diff)
downloadspack-fd5b13b7a48495d19232d122c962aeee3c50959e.tar.gz
spack-fd5b13b7a48495d19232d122c962aeee3c50959e.tar.bz2
spack-fd5b13b7a48495d19232d122c962aeee3c50959e.tar.xz
spack-fd5b13b7a48495d19232d122c962aeee3c50959e.zip
uchardet: new release + lib image was not found on Mac OSX (#24212)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/uchardet/package.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/uchardet/package.py b/var/spack/repos/builtin/packages/uchardet/package.py
index 37e98f3f9e..e264445756 100644
--- a/var/spack/repos/builtin/packages/uchardet/package.py
+++ b/var/spack/repos/builtin/packages/uchardet/package.py
@@ -14,7 +14,10 @@ class Uchardet(CMakePackage):
homepage = "https://www.freedesktop.org/wiki/Software/uchardet/"
url = "https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.6.tar.xz"
+ git = "https://gitlab.freedesktop.org/uchardet/uchardet.git"
+ version('master', branch='master')
+ version('0.0.7', sha256='8351328cdfbcb2432e63938721dd781eb8c11ebc56e3a89d0f84576b96002c61')
version('0.0.6', sha256='8351328cdfbcb2432e63938721dd781eb8c11ebc56e3a89d0f84576b96002c61')
version('0.0.5', sha256='7c5569c8ee1a129959347f5340655897e6a8f81ec3344de0012a243f868eabd1')
version('0.0.4', sha256='9dbe41fc73ba6a70676c04b1f0dd812914c0bbb65940283f2d54c5a2338a2acd')
@@ -27,3 +30,14 @@ class Uchardet(CMakePackage):
else:
url = "https://github.com/BYVoid/uchardet/archive/v0.0.5.tar.gz"
return url
+
+ def cmake_args(self):
+ args = []
+ if self.spec.satisfies('platform=darwin'):
+ args += [
+ # From https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/uchardet.rb
+ self.define('CMAKE_INSTALL_NAME_DIR', self.prefix.lib),
+ # From https://github.com/mutationpp/Mutationpp/issues/26
+ self.define('CMAKE_MACOSX_RPATH', 'ON')
+ ]
+ return args