enca 1.15
This commit is contained in:
parent
e8aa6b2252
commit
266ada496d
1 changed files with 12 additions and 5 deletions
|
@ -1,13 +1,20 @@
|
|||
require 'formula'
|
||||
require "formula"
|
||||
|
||||
class Enca < Formula
|
||||
homepage 'http://freshmeat.net/projects/enca'
|
||||
url 'http://dl.cihar.com/enca/enca-1.13.tar.gz'
|
||||
sha1 'c6e25ea4f4cc53100bd6dacd62ea22e39151d067'
|
||||
homepage "http://cihar.com/software/enca/"
|
||||
url "http://dl.cihar.com/enca/enca-1.15.tar.gz"
|
||||
sha1 "8a62202521e36d4159cbe6de64c2e7a0ec797e94"
|
||||
head "https://github.com/nijel/enca.git"
|
||||
|
||||
def install
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}"
|
||||
system "make install"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
enca = "#{bin}/enca --language=none"
|
||||
assert_match /ASCII/, `#{enca} <<< 'Testing...'`
|
||||
assert_match /UCS-2/, `#{enca} --convert-to=UTF-16 <<< 'Testing...' | #{enca}`
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue