Revision
148903
Author
jeremyhu@macports.org
Date
2016-05-22 10:08:04 -0700 (Sun, 22 May 2016)

Log Message

enchant: Default to +aspell for Mountain Lion and earlier

Modified Paths

Diff

Modified: trunk/dports/textproc/enchant/Portfile (148902 => 148903)


--- trunk/dports/textproc/enchant/Portfile	2016-05-22 17:03:16 UTC (rev 148902)
+++ trunk/dports/textproc/enchant/Portfile	2016-05-22 17:08:04 UTC (rev 148903)
@@ -43,8 +43,13 @@
                     --disable-zemberek \
                     --with-myspell-dir=${prefix}/share/hunspell
 
-# users most likely have AppleSpell already set up for their language
-default_variants    +applespell
+# https://trac.macports.org/ticket/51287
+if {${os.platform} eq "darwin" &&  ${os.major} >= 13} {
+    # users most likely have AppleSpell already set up for their language
+    default_variants    +applespell
+} else {
+    default_variants    +aspell
+}
 
 variant ispell description {Enable ispell backend} {
     configure.args-replace --disable-ispell --enable-ispell