Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

New Formular : hunspell-dict-ko #14521

Closed
wants to merge 1 commit into from

2 participants

@sixt06

This is a hunspell dictionary for Korean language.

@adamv

We can't accept formulas into core that have sudo commands.

I want to make symbolic link to use hunspell dictionary in Mac OS X. Do you have any method to install a file to /Library/Spelling? Could you accept if I don't use sudo command?

@adamv
Owner

You could use def caveats to show instructions.

@adamv
Owner

Ping

@adamv
Owner

Closing due to no response.

@adamv adamv closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 29, 2012
  1. @sixt06

    New Formular: hunspell-dict-ko

    sixt06 authored
This page is out of date. Refresh to see the latest.
Showing with 26 additions and 0 deletions.
  1. +26 −0 Library/Formula/hunspell-dict-ko.rb
View
26 Library/Formula/hunspell-dict-ko.rb
@@ -0,0 +1,26 @@
+require 'formula'
+
+class HunspellDictKo < Formula
+ homepage 'http://code.google.com/p/spellcheck-ko/'
+ url 'http://spellcheck-ko.googlecode.com/files/ko-aff-dic-0.5.5.zip'
+ version '0.5.5'
+ sha1 'a9b22ddc17bab82e7fc6b3a30eb1a5c061f970f5'
+
+ def install
+ prefix.install 'ko.aff'
+ prefix.install 'ko.dic'
+ system 'sudo mkdir -p /Library/Spelling'
+ system "sudo ln -sf #{prefix}/ko.aff /Library/Spelling/ko.aff"
+ system "sudo ln -sf #{prefix}/ko.dic /Library/Spelling/ko.dic"
+ end
+
+ def caveats; <<-EOS.undent
+ This formula make following symbolic link files:
+ /Library/Spelling/ko.aff
+ /Library/Spelling/ko.dic
+
+ To uninstall this formula completely, we should remove those files with following command:
+ sudo rm -rf /Library/Spelling/ko.{aff,dic}
+ EOS
+ end
+end
Something went wrong with that request. Please try again.