homebrew-core/Formula/asn1c.rb
Dominyk Tiller 3122c6d5eb asn1c 0.9.26
Version bump, and added test adapted from the website.
2014-11-08 16:51:47 +00:00

43 lines
1.1 KiB
Ruby

require "formula"
class Asn1c < Formula
homepage "http://lionet.info/asn1c/blog/"
url "http://lionet.info/soft/asn1c-0.9.26.tar.gz"
sha1 "9b1d86b91d37884419f9f062ecd787e293c48637"
bottle do
revision 1
sha1 "3c2a60011a528b5ab8a3d690bad1dc8d7055671e" => :yosemite
sha1 "390a9550e70ead04dd2a212bd8239a2942250291" => :mavericks
sha1 "2930ed406e3bc13347486e851423423d3a928c0e" => :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