aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDominyk Tiller2014-11-08 06:47:33 +0000
committerMike McQuaid2014-11-08 16:51:47 +0000
commit3dd6611a3663c016030c046583c38d7141052fbb (patch)
tree9ab7556a4edc9de67c76f1d1e5b04f77e7453515 /Library/Formula
parent23c3083abfbd552740a2a2b82c55f220b483a601 (diff)
downloadhomebrew-3dd6611a3663c016030c046583c38d7141052fbb.tar.bz2
asn1c 0.9.26
Version bump, and added test adapted from the website.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/asn1c.rb34
1 files changed, 28 insertions, 6 deletions
diff --git a/Library/Formula/asn1c.rb b/Library/Formula/asn1c.rb
index b907f667c..395a451c3 100644
--- a/Library/Formula/asn1c.rb
+++ b/Library/Formula/asn1c.rb
@@ -1,9 +1,9 @@
-require 'formula'
+require "formula"
class Asn1c < Formula
- homepage 'http://lionet.info/asn1c/blog/'
- url 'http://lionet.info/soft/asn1c-0.9.24.tar.gz'
- sha1 'b12a78d5e0723c01fb9bf3d916be88824b68e6ee'
+ homepage "http://lionet.info/asn1c/blog/"
+ url "http://lionet.info/soft/asn1c-0.9.26.tar.gz"
+ sha1 "9b1d86b91d37884419f9f062ecd787e293c48637"
bottle do
revision 1
@@ -13,9 +13,31 @@ class Asn1c < Formula
end
def install
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
- system "make install"
+ 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