Skip to content

Commit

Permalink
home-brew install formula.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksherlock committed Feb 5, 2016
1 parent f5471c0 commit 19778de
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lemon++.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

class Lemonxx < Formula
desc "lemon parser generator with improved c++ support"
homepage "https://github.com/ksherlock/lemon--/"
url "https://github.com/ksherlock/lemon--/archive/2016-02-05.tar.gz"
sha256 "8b6f19f22772c3df832674646df31cb8f6819b05c16146894bd63a51d9c251f9"

def install
(share/"lemon").install "lempar.c"
(share/"lemon").install "lempar.cpp"

inreplace "lemon.c", / = pathsearch\([^)]*\);/, " = \"#{share}/lemon/lempar\" FILE_EXTENSION;"

system "make"
bin.install "lemon"
bin.install "lemon++"
end

conflicts_with "lemon", :because => "both install `lemon` binaries"

test do
# system "false"
system "true"
end
end

0 comments on commit 19778de

Please sign in to comment.