From 7ea0ea88477fdbf504cb2366498c1c527f501d86 Mon Sep 17 00:00:00 2001 From: Tomasz Pajor Date: Wed, 30 Jul 2014 13:11:38 +0200 Subject: [PATCH] sdf 2.6.3 --- Formula/sdf.rb | 209 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 199 insertions(+), 10 deletions(-) diff --git a/Formula/sdf.rb b/Formula/sdf.rb index d4f33bf5176..8d8da0bd2a2 100644 --- a/Formula/sdf.rb +++ b/Formula/sdf.rb @@ -1,20 +1,209 @@ -require 'formula' +require "formula" class Sdf < Formula - homepage 'http://strategoxt.org/Sdf/WebHome' - url 'ftp://ftp.strategoxt.org/pub/stratego/StrategoXT/strategoxt-0.17/sdf2-bundle-2.4.tar.gz' - sha1 'b9be75d56503e7f06fcc9cc543303bae123c0845' + homepage "http://strategoxt.org/Sdf/WebHome" + url "http://www.meta-environment.org/releases/sdf-2.6.3.tar.gz" + sha1 "98cb63cf9ed9e1b51727f55963dad31615f75b0d" - depends_on 'pkg-config' => :build - depends_on 'aterm' + depends_on "pkg-config" => :build + depends_on "aterm" + + fails_with :clang do + build 425 + cause <<-EOS.undent + ParsedError.c:15434:611: fatal error: parser recursion + limit reached, program too complex + EOS + end + + resource "c-library" do + url "http://www.meta-environment.org/releases/c-library-1.2.tar.gz" + sha1 "2c9fa849c2bf7a96c4614d6532da20a399c730c1" + end + + resource "toolbuslib" do + url "http://www.meta-environment.org/releases/toolbuslib-1.1.tar.gz" + sha1 "2f34935a34fa363c8c11d2c646ae78e5553db6d9" + end + + resource "error-support" do + url "http://www.meta-environment.org/releases/error-support-1.6.tar.gz" + sha1 "003bc4569a3a67fb196f96a1229f532c127a9d30" + end + + resource "pt-support" do + url "http://www.meta-environment.org/releases/pt-support-2.4.tar.gz" + sha1 "84969166e0fba9108d015ae524f351517707dde1" + end + + resource "sdf-support" do + url "http://www.meta-environment.org/releases/sdf-support-2.5.tar.gz" + sha1 "d079f7693234bdb5c82104800049836a9b0e0bd4" + end + + resource "asf-support" do + url "http://www.meta-environment.org/releases/asf-support-1.8.tar.gz" + sha1 "bf3eb12f8992c250ce208c059b5c5cef0a29c6b9" + end + + resource "tide-support" do + url "http://www.meta-environment.org/releases/tide-support-1.3.1.tar.gz" + sha1 "201cb8c65256f149c820d65d1e4a849404e7d039" + end + + resource "rstore-support" do + url "http://www.meta-environment.org/releases/rstore-support-1.0.tar.gz" + sha1 "22ce248db8e81aad5866512c94296cba6c4c5cf5" + end + + resource "config-support" do + url "http://www.meta-environment.org/releases/config-support-1.4.tar.gz" + sha1 "7b6b530562a6a4befbcc190cd74ad3f2257d8353" + end + + resource "ptable-support" do + url "http://www.meta-environment.org/releases/ptable-support-1.2.tar.gz" + sha1 "2f868e1f9ff3ccc71f173e4cf40f30e31f648ef8" + end + + resource "sglr" do + url "http://www.meta-environment.org/releases/sglr-4.5.3.tar.gz" + sha1 "a92b73ee94bc55a657136bf1895393bfc2512a99" + end + + resource "asc-support" do + url "http://www.meta-environment.org/releases/asc-support-2.6.tar.gz" + sha1 "76ff3c3a655498ef8e8fcc533164d492ff16503a" + end + + resource "pgen" do + url "http://www.meta-environment.org/releases/pgen-2.8.1.tar.gz" + sha1 "56b3c915dd8e1cbadef5beec3ef9c11a80211445" + end + + resource "pandora" do + url "http://www.meta-environment.org/releases/pandora-1.6.tar.gz" + sha1 "0cfb1de5ea8feba43002486286ff140c060e1cc4" + end def install - system "./configure", "--prefix=#{prefix}" + ENV.j1 # build is not parallel-safe + ENV.append "CFLAGS", "-std=gnu89 -fbracket-depth=1024" if ENV.compiler == :clang - # 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) + resource("c-library").stage do + system "./configure", "--prefix=#{libexec}/c-library" + system "make install" + end + resource("toolbuslib").stage do + system "./configure", "--prefix=#{libexec}/toolbuslib" + system "make install" + end + + resource("error-support").stage do + system "./configure", "--prefix=#{libexec}/error-support", + "--with-toolbuslib=#{libexec}/toolbuslib" + system "make install" + end + + resource("pt-support").stage do + system "./configure", "--prefix=#{libexec}/pt-support", + "--with-toolbuslib=#{libexec}/toolbuslib", + "--with-error-support=#{libexec}/error-support" + system "make install" + end + + resource("sdf-support").stage do + system "./configure", "--prefix=#{libexec}/sdf-support", + "--with-toolbuslib=#{libexec}/toolbuslib", + "--with-error-support=#{libexec}/error-support", + "--with-pt-support=#{libexec}/pt-support" + system "make install" + end + + resource("asf-support").stage do + system "./configure", "--prefix=#{libexec}/asf-support", + "--with-error-support=#{libexec}/error-support", + "--with-pt-support=#{libexec}/pt-support" + system "make install" + end + + resource("tide-support").stage do + system "./configure", "--prefix=#{libexec}/tide-support", + "--with-toolbuslib=#{libexec}/toolbuslib" + system "make install" + end + + resource("rstore-support").stage do + system "./configure", "--prefix=#{libexec}/rstore-support", + "--with-toolbuslib=#{libexec}/toolbuslib" + system "make install" + end + + resource("config-support").stage do + system "./configure", "--prefix=#{libexec}/config-support" + system "make install" + end + + resource("ptable-support").stage do + system "./configure", "--prefix=#{libexec}/ptable-support", + "--with-pt-support=#{libexec}/pt-support" + system "make install" + end + + resource("sglr").stage do + system "./configure", "--prefix=#{libexec}/sglr", + "--with-toolbuslib=#{libexec}/toolbuslib", + "--with-error-support=#{libexec}/error-support", + "--with-pt-support=#{libexec}/pt-support", + "--with-ptable-support=#{libexec}/ptable-support", + "--with-config-support=#{libexec}/config-support", + "--with-c-library=#{libexec}/c-library" + system "make install" + end + + resource("asc-support").stage do + system "./configure", "--prefix=#{libexec}/asc-support", + "--with-toolbuslib=#{libexec}/toolbuslib", + "--with-error-support=#{libexec}/error-support", + "--with-pt-support=#{libexec}/pt-support", + "--with-ptable-support=#{libexec}/ptable-support", + "--with-config-support=#{libexec}/config-support", + "--with-c-library=#{libexec}/c-library", + "--with-tide-support=#{libexec}/tide-support", + "--with-rstore-support=#{libexec}/rstore-support", + "--with-asf-support=#{libexec}/asf-support", + "--with-rstore-support=#{libexec}/rstore-support", + "--with-sglr=#{libexec}/sglr" + system "make install" + end + + resource("pgen").stage do + system "./configure", "--prefix=#{libexec}/pgen", + "--with-toolbuslib=#{libexec}/toolbuslib", + "--with-error-support=#{libexec}/error-support", + "--with-pt-support=#{libexec}/pt-support", + "--with-ptable-support=#{libexec}/ptable-support", + "--with-config-support=#{libexec}/config-support", + "--with-c-library=#{libexec}/c-library", + "--with-sglr=#{libexec}/sglr", + "--with-sdf-support=#{libexec}/sdf-support", + "--with-asc-support=#{libexec}/asc-support" + system "make install" + end + + resource("pandora").stage do + system "./configure", "--prefix=#{libexec}/pandora", + "--with-toolbuslib=#{libexec}/toolbuslib", + "--with-pt-support=#{libexec}/pt-support", + "--with-asc-support=#{libexec}/asc-support" + system "make install" + end + + system "./configure", "--prefix=#{prefix}", + "--with-sglr=#{libexec}/sglr", + "--with-pgen=#{libexec}/pgen", + "--with-pandora=#{libexec}/pandora" system "make install" end end