aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTony Sloane2011-01-01 14:36:42 +1100
committerMike McQuaid2011-01-02 11:11:43 +0000
commit8826464a0cbb0e56be3e535d4ba2c03588843ea5 (patch)
tree09a689adeb472e5fb403d0a9103ec73177e54584 /Library
parent60ca2c430d98cb9d03c3c5e21c2302e15ea241bd (diff)
downloadhomebrew-8826464a0cbb0e56be3e535d4ba2c03588843ea5.tar.bz2
Add formula for sdf
Add formula for SDF (Syntax Definition Formalism) tools and libraries for scannerless generalised parsing (used with Stratego/XT). Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/sdf.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/sdf.rb b/Library/Formula/sdf.rb
new file mode 100644
index 000000000..d19a0aac0
--- /dev/null
+++ b/Library/Formula/sdf.rb
@@ -0,0 +1,19 @@
+require 'formula'
+
+class Sdf <Formula
+ url 'ftp://ftp.stratego-language.org/pub/stratego/StrategoXT/strategoxt-0.17/sdf2-bundle-2.4.tar.gz'
+ homepage 'http://strategoxt.org/Sdf/WebHome'
+ md5 '8aa110d790c4a8bf7bc8b884590d7bee'
+
+ depends_on 'aterm'
+
+ def install
+ system "./configure", "--prefix=#{prefix}"
+
+ # Man pages are distributed as 0B files, need to clean,
+ # otherwise they won't be made properly
+ FileUtils.rm %w(pgen/src/sdf2table.1 sglr/doc/sglr.1 sglr/doc/sglr-api.3)
+
+ system "make install"
+ end
+end