diff options
| author | Jack Nagel | 2012-02-12 23:39:09 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-02-12 23:39:09 -0600 |
| commit | 51cb86ee54c8641dddb2ef538b94443f9d1cc9dd (patch) | |
| tree | 4020fd624fb3e1139771cc6d94ad4b304d66bc07 | |
| parent | 6c7b999c1de953c359c7b172ea99511694b536e6 (diff) | |
| download | homebrew-51cb86ee54c8641dddb2ef538b94443f9d1cc9dd.tar.bz2 | |
style-check: avoid inreplace
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Formula/style-check.rb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Library/Formula/style-check.rb b/Library/Formula/style-check.rb index 66e773971..ad3c34c17 100644 --- a/Library/Formula/style-check.rb +++ b/Library/Formula/style-check.rb @@ -1,17 +1,14 @@ require 'formula' class StyleCheck < Formula - url 'http://www.cs.umd.edu/~nspring/software/style-check-0.14.tar.gz' homepage 'http://www.cs.umd.edu/~nspring/software/style-check-readme.html' + url 'http://www.cs.umd.edu/~nspring/software/style-check-0.14.tar.gz' md5 'b88b0632b80abf9c8aaa2c5f2c3e2934' def install - inreplace "Makefile" do |s| - s.change_make_var! 'PREFIX', prefix - s.change_make_var! 'SYSCONFDIR', (etc+'style-check.d') - end - inreplace "style-check.rb", '/etc/style-check.d/', (etc+'style-check.d/') - - system "make install" + inreplace "style-check.rb", '/etc/style-check.d/', etc+'style-check.d/' + system "make", "PREFIX=#{prefix}", + "SYSCONFDIR=#{etc}/style-check.d", + "install" end end |
