forked from rdowinton/homebrew-x11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuim.rb
29 lines (24 loc) · 871 Bytes
/
uim.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class Uim < Formula
desc "Multilingual input method library"
homepage "https://code.google.com/p/uim/"
url "https://github.com/uim/uim/releases/download/uim-1.8.6/uim-1.8.6.tar.bz2"
sha256 "7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f"
depends_on :x11
depends_on "pkg-config" => :build
depends_on "intltool" => :build
depends_on "gettext"
fails_with :clang do
cause "Segmentation fault in uim-module-manager"
end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
# Install Emacs files in the correct directory
mv share/"emacs/site-lisp/uim-el", share/"emacs/site-lisp/uim"
end
test do
assert_equal "4", shell_output("#{bin}/uim-sh -e '(+ 2 2)'").chomp
end
end