blob: 90f327213b1482f7aadf18774e6b64b9b463d632 (
plain)
| 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
 | require "formula"
class Enca < Formula
  homepage "http://cihar.com/software/enca/"
  url "http://dl.cihar.com/enca/enca-1.16.tar.gz"
  sha1 "8cc606a5c0efa49a42374c060faa4fb7a9501d23"
  head "https://github.com/nijel/enca.git"
  bottle do
    sha1 "d5714f14f7075feb1a74f5975709cab64981d8ea" => :yosemite
    sha1 "7e1c1698456b4aecc16f2f1c6f4dbdf48d0e44b0" => :mavericks
    sha1 "a71d75fa0a058b3eb57cf2885cfe57cabc842d6e" => :mountain_lion
  end
  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    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
 |