diff options
| author | Elliot Saba | 2014-01-05 13:15:19 +0000 | 
|---|---|---|
| committer | Mike McQuaid | 2014-01-05 13:15:19 +0000 | 
| commit | 6c2a913ee549e0362d51cfa46ef18216019cd91e (patch) | |
| tree | 0bbe6b2b4f41fec454ebec4eea317645a667aec7 /Library/Formula | |
| parent | 16bd5c86480e978e8176069ad4a3ff95e6a3ef53 (diff) | |
| download | homebrew-6c2a913ee549e0362d51cfa46ef18216019cd91e.tar.bz2 | |
nbimg 1.2.1 (new formula)
A utility for creating splash screens for Android and winCE.
Closes #25626.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/nbimg.rb | 21 | 
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/nbimg.rb b/Library/Formula/nbimg.rb new file mode 100644 index 000000000..45761c244 --- /dev/null +++ b/Library/Formula/nbimg.rb @@ -0,0 +1,21 @@ +require 'formula' + +class Nbimg < Formula +  homepage 'https://github.com/poliva/nbimg' +  url 'https://github.com/poliva/nbimg/archive/v1.2.1.tar.gz' +  sha1 '21a12e2451eefb5296e682744614b3f46e1f427a' + +  def install +    inreplace 'Makefile', 'all: nbimg win32', 'all: nbimg' +    system "make", "prefix=#{prefix}", +                   "bindir=#{bin}", +                   "docdir=#{doc}", +                   "mandir=#{man}", +                   "install" +  end + +  test do +    curl "https://gist.github.com/staticfloat/8253400/raw/41aa4aca5f1aa0a82c85c126967677f830fe98ee/tiny.bmp", "-O" +    system "#{bin}/nbimg", "-Ftiny.bmp" +  end +end  | 
