add patch to get aspell to build on OSX (#7919)

This commit is contained in:
healther 2018-04-26 22:19:52 +02:00 committed by Adam J. Stewart
parent 9dad069e89
commit 8afdaa5805
2 changed files with 22 additions and 0 deletions

View File

@ -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 *******************************/

View File

@ -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