From: Alexander Barton Date: Wed, 30 May 2012 10:40:53 +0000 (+0200) Subject: New formula: asip-status X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=homebrew-alex.git;a=commitdiff_plain;h=8d544272d175ccdb456bde4e7616ca308ba308d1 New formula: asip-status --- 8d544272d175ccdb456bde4e7616ca308ba308d1 diff --git a/asip-status.rb b/asip-status.rb new file mode 100644 index 0000000..a28740d --- /dev/null +++ b/asip-status.rb @@ -0,0 +1,21 @@ +require 'formula' + +class AsipStatus < Formula + url 'http://netatalk.git.sourceforge.net/git/gitweb.cgi?p=netatalk/netatalk;a=blob_plain;f=contrib/shell_utils/asip-status.pl.in;hb=HEAD' + homepage 'http://netatalk.sourceforge.net/' + md5 '78790ac4c46cb4b08ede1f8eb8907bca' + version '20120203' + + def install + system 'mv "asip-status.pl.in;hb=HEAD" "asip-status.pl"' + inreplace "asip-status.pl", + "@PERL@", "/usr/bin/perl" + inreplace "asip-status.pl", + " @NETATALK_VERSION@", "" + bin.install('asip-status.pl') + end + + def test + system "bash", "-c", "#{bin}/asip-status.pl --version; test $? -eq 255" + end +end