summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/aspell
diff options
context:
space:
mode:
authorhealther <healther@users.noreply.github.com>2018-04-26 22:19:52 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2018-04-26 15:19:52 -0500
commit8afdaa58056744a556c74dd938a6f66cf2ac28c5 (patch)
treedf5505f0a96cd031aec8e9c1411a00b962d9828a /var/spack/repos/builtin/packages/aspell
parent9dad069e89399a5736fdeca389dfc01a420dbdc6 (diff)
downloadspack-8afdaa58056744a556c74dd938a6f66cf2ac28c5.tar.gz
spack-8afdaa58056744a556c74dd938a6f66cf2ac28c5.tar.bz2
spack-8afdaa58056744a556c74dd938a6f66cf2ac28c5.tar.xz
spack-8afdaa58056744a556c74dd938a6f66cf2ac28c5.zip
add patch to get aspell to build on OSX (#7919)
Diffstat (limited to 'var/spack/repos/builtin/packages/aspell')
-rw-r--r--var/spack/repos/builtin/packages/aspell/darwin.patch20
-rw-r--r--var/spack/repos/builtin/packages/aspell/package.py2
2 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/aspell/darwin.patch b/var/spack/repos/builtin/packages/aspell/darwin.patch
new file mode 100644
index 0000000000..54ec257637
--- /dev/null
+++ b/var/spack/repos/builtin/packages/aspell/darwin.patch
@@ -0,0 +1,20 @@
++++ a/interfaces/cc/aspell.h
+--- b/interfaces/cc/aspell.h
+@@ -236,7 +236,7 @@
+
+ /******************************** errors ********************************/
+
+-
++#ifndef __cplusplus
+ extern const struct AspellErrorInfo * const aerror_other;
+ extern const struct AspellErrorInfo * const aerror_operation_not_supported;
+ extern const struct AspellErrorInfo * const aerror_cant_copy;
+@@ -322,7 +322,7 @@
+ extern const struct AspellErrorInfo * const aerror_bad_magic;
+ extern const struct AspellErrorInfo * const aerror_expression;
+ extern const struct AspellErrorInfo * const aerror_invalid_expression;
+-
++#endif
+
+ /******************************* speller *******************************/
+
diff --git a/var/spack/repos/builtin/packages/aspell/package.py b/var/spack/repos/builtin/packages/aspell/package.py
index 9038c7d0cf..66eeb9e7cb 100644
--- a/var/spack/repos/builtin/packages/aspell/package.py
+++ b/var/spack/repos/builtin/packages/aspell/package.py
@@ -40,6 +40,8 @@ class Aspell(AutotoolsPackage):
version('0.60.6.1', 'e66a9c9af6a60dc46134fdacf6ce97d7')
+ patch('darwin.patch', when='platform=darwin')
+
# The dictionaries install all their bits into their prefix.lib dir,
# we want to link them into aspell's dict-dir.
# These are identical to what's in spack/package.py except