blob: 9b7e5fcd712de841e7a9ce7b8c95574d51bb1e4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# encoding: utf-8
require 'formula'
class Bsdconv < Formula
homepage 'https://github.com/buganini/bsdconv'
url 'https://github.com/buganini/bsdconv/tarball/9.1'
sha1 '282fa6f2bcb6ef3b73f19ef269ecc917edcde729'
head 'https://github.com/buganini/bsdconv.git'
def install
system "make", "PREFIX=#{prefix}"
system "make", "PREFIX=#{prefix}", "install"
end
def test
printf = 'printf "\263\134\245\134\273\134"'
system "test `#{printf} | #{bin}/bsdconv big5:utf-8` = '許功蓋'"
end
end
|