aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/amtterm.rb
blob: 8e2b0d082c01b6b7c06862ca45738d4212400bd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class Amtterm < Formula
  homepage "http://www.kraxel.org/blog/linux/amtterm/"
  url "http://www.kraxel.org/releases/amtterm/amtterm-1.3.tar.gz"
  sha1 "cfd199cc870f48a59caa89408b039239eab85322"

  head "git://git.kraxel.org/amtterm"

  resource "SOAP::Lite" do
    url "http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/SOAP-Lite-1.11.tar.gz"
    mirror "http://search.mcpan.org/CPAN/authors/id/P/PH/PHRED/SOAP-Lite-1.11.tar.gz"
    sha1 "b9e22c82a240737e87d6c720998feadcfb583768"
  end

  def install
    ENV.prepend_create_path "PERL5LIB", libexec+"lib/perl5"

    resource("SOAP::Lite").stage do
      system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
      system "make"
      system "make", "install"
    end

    system "make", "prefix=#{prefix}", "install"
    bin.env_script_all_files(libexec+"bin", :PERL5LIB => ENV["PERL5LIB"])
  end

  test do
    system "#{bin}/amtterm", "-h"
  end
end