homebrew-core/Formula/asn1c.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

42 lines
1.1 KiB
Ruby

class Asn1c < Formula
desc "Compile ASN.1 specifications into C source code"
homepage "http://lionet.info/asn1c/blog/"
url "http://lionet.info/soft/asn1c-0.9.26.tar.gz"
sha256 "6ee33727d6fb81be5cec20acdb73e87ce387a53a3e689124855be888672eb833"
bottle do
revision 2
sha1 "13d1abf02f41bda023a710543c39cb4c49c1f8c8" => :yosemite
sha1 "b0cacad03fb2176aa56521f634785af7062020cb" => :mavericks
sha1 "705befca80634eaa5a1aa4cebe18a75a0d618b99" => :mountain_lion
end
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make", "install"
end
test do
(testpath/"test.asn1").write <<-EOS.undent
MyModule DEFINITIONS ::=
BEGIN
MyTypes ::= SEQUENCE {
myObjectId OBJECT IDENTIFIER,
mySeqOf SEQUENCE OF MyInt,
myBitString BIT STRING {
muxToken(0),
modemToken(1)
}
}
MyInt ::= INTEGER (0..65535)
END
EOS
system "#{bin}/asn1c", "test.asn1"
end
end