2011-01-01 03:36:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Sdf < Formula
|
2011-01-01 03:36:42 +00:00
|
|
|
homepage 'http://strategoxt.org/Sdf/WebHome'
|
2013-07-22 22:44:18 +00:00
|
|
|
url 'ftp://ftp.strategoxt.org/pub/stratego/StrategoXT/strategoxt-0.17/sdf2-bundle-2.4.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'b9be75d56503e7f06fcc9cc543303bae123c0845'
|
2011-01-01 03:36:42 +00:00
|
|
|
|
2013-07-23 00:00:20 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2011-01-01 03:36:42 +00:00
|
|
|
depends_on 'aterm'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
|
2011-01-03 20:21:00 +00:00
|
|
|
# Man pages are distributed as 0B files.
|
|
|
|
# Delete them so they'll get recreated properly
|
|
|
|
rm %w(pgen/src/sdf2table.1 sglr/doc/sglr.1 sglr/doc/sglr-api.3)
|
2011-01-01 03:36:42 +00:00
|
|
|
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|