diff options
| author | Xu Cheng | 2015-01-15 15:56:06 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-15 11:15:14 +0000 |
| commit | c4d22e307fa809c1aa944515671caca773f5faf3 (patch) | |
| tree | 396932d19b842b887a950f125b6963cba9bc9cb1 /Library | |
| parent | 8e3bea6426a5a26fa7075183856b717e83c6d3ec (diff) | |
| download | homebrew-c4d22e307fa809c1aa944515671caca773f5faf3.tar.bz2 | |
lib3ds: add test and modernize
Closes #35892.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/lib3ds.rb | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Library/Formula/lib3ds.rb b/Library/Formula/lib3ds.rb index 66c033b01..5fac531ee 100644 --- a/Library/Formula/lib3ds.rb +++ b/Library/Formula/lib3ds.rb @@ -1,9 +1,7 @@ -require 'formula' - class Lib3ds < Formula - homepage 'http://code.google.com/p/lib3ds/' - url 'https://lib3ds.googlecode.com/files/lib3ds-1.3.0.zip' - sha1 '544262eac73c1e4a1d77f0f1cbd90b990a996db8' + homepage "https://code.google.com/p/lib3ds/" + url "https://lib3ds.googlecode.com/files/lib3ds-1.3.0.zip" + sha1 "544262eac73c1e4a1d77f0f1cbd90b990a996db8" bottle do cellar :any @@ -15,6 +13,12 @@ class Lib3ds < Formula def install system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking" - system "make install" + system "make", "install" + end + + test do + # create a raw emtpy 3ds file. + (testpath/"test.3ds").write("\x4d\x4d\x06\x00\x00\x00") + system "#{bin}/3dsdump", "test.3ds" end end |
