diff options
| author | Adam Vandenberg | 2013-06-06 17:03:44 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-07 20:57:59 -0700 |
| commit | e24ebdf4d999961dea08b20e19431d19ae80f939 (patch) | |
| tree | 6c36dd38c55649e9d0813d3c7cbecac81b3ccdcd /Library/Formula | |
| parent | d74ff9a9240e7af2a594be401a6d058388f35284 (diff) | |
| download | homebrew-e24ebdf4d999961dea08b20e19431d19ae80f939.tar.bz2 | |
Use ScriptFileFormula
Switch these to use ScriptFileFormula, since they no longer
need to munge the installed filenames.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/denominator.rb | 9 | ||||
| -rw-r--r-- | Library/Formula/rpm2cpio.rb | 8 |
2 files changed, 4 insertions, 13 deletions
diff --git a/Library/Formula/denominator.rb b/Library/Formula/denominator.rb index 52444ae49..c265f138c 100644 --- a/Library/Formula/denominator.rb +++ b/Library/Formula/denominator.rb @@ -1,18 +1,13 @@ require 'formula' -class Denominator < Formula - # nounzip as this is a single executable file; it is a shell script wrapper around - # a java jar file +class Denominator < ScriptFileFormula + # This is a shell script wrapping a java jar; download as single file using nounzip homepage 'https://github.com/Netflix/denominator/tree/master/denominator-cli' url 'http://dl.bintray.com/content/netflixoss/denominator/denominator-cli/release/1.2.0/denominator?direct', :using => :nounzip version '1.2.0' sha1 '9331a1eb9c4c68c40b621e0b92d7e1e471a56bae' - def install - bin.install "denominator?direct" => "denominator" - end - test do system "#{bin}/denominator", "help" end diff --git a/Library/Formula/rpm2cpio.rb b/Library/Formula/rpm2cpio.rb index f116e0201..4889244a2 100644 --- a/Library/Formula/rpm2cpio.rb +++ b/Library/Formula/rpm2cpio.rb @@ -1,14 +1,10 @@ require 'formula' -class Rpm2cpio < Formula +class Rpm2cpio < ScriptFileFormula homepage 'http://svnweb.freebsd.org/ports/head/archivers/rpm2cpio/' url 'http://svnweb.freebsd.org/ports/head/archivers/rpm2cpio/files/rpm2cpio?revision=259745' version '1.3' sha1 '7bd6e848eed9444a4dacf9759cc195ca56ab19b2' - depends_on 'xz' - - def install - bin.install 'rpm2cpio?revision=259745' => 'rpm2cpio.pl' - end + depends_on 'xz' # runtime dependency end |
