aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2013-01-28 21:35:16 -0800
committerAdam Vandenberg2013-01-28 21:40:40 -0800
commitd5828ad081ea6a25b474b0fef94cd15417fd3074 (patch)
tree7fbcc0c456160bd645325c84d2e3728adf5aabc3 /Library/Formula
parentc3d0bb39831e19068fba052782e9f54b3ebe1876 (diff)
downloadhomebrew-d5828ad081ea6a25b474b0fef94cd15417fd3074.tar.bz2
lemon: style nits
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/lemon.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/Library/Formula/lemon.rb b/Library/Formula/lemon.rb
index 8bf3afe06..438569888 100644
--- a/Library/Formula/lemon.rb
+++ b/Library/Formula/lemon.rb
@@ -1,18 +1,15 @@
require 'formula'
class Lemon < Formula
- url 'http://tx97.net/pub/distfiles/lemon-1.69.tar.bz2'
homepage 'http://www.hwaci.com/sw/lemon/'
+ url 'http://tx97.net/pub/distfiles/lemon-1.69.tar.bz2'
sha1 '3f368f5f93c37890a025c3d803b3598a939d615f'
def install
- lemon_share = share+'lemon'
-
- lemon_share.install 'lempar.c'
+ (share/'lemon').install 'lempar.c'
# patch the parser generator to look for the 'lempar.c' template file where we've installed it
- lempar_path = lemon_share+'lempar.c'
- inreplace 'lemon.c', / = pathsearch\([^)]*\);/, " = \"#{lempar_path}\";"
+ inreplace 'lemon.c', / = pathsearch\([^)]*\);/, " = \"#{share}/lemon/lempar.c\";"
system ENV.cc, '-o', 'lemon', 'lemon.c'
bin.install 'lemon'