2013-11-02 12:39:40 +00:00
|
|
|
class Clipsafe < Formula
|
2014-05-05 09:59:36 +00:00
|
|
|
homepage "http://waxandwane.org/clipsafe.html"
|
|
|
|
url "http://waxandwane.org/download/clipsafe-1.1.tar.gz"
|
2015-05-07 17:39:57 +00:00
|
|
|
sha256 "7a70b4f467094693a58814a42d272e98387916588c6337963fa7258bda7a3e48"
|
2013-11-02 12:39:40 +00:00
|
|
|
|
|
|
|
depends_on :macos => :mountain_lion
|
|
|
|
|
|
|
|
resource "Crypt::Twofish" do
|
|
|
|
url "http://search.cpan.org/CPAN/authors/id/A/AM/AMS/Crypt-Twofish-2.17.tar.gz"
|
2015-05-07 17:39:57 +00:00
|
|
|
mirror "https://cpan.metacpan.org/authors/id/A/AM/AMS/Crypt-Twofish-2.17.tar.gz"
|
|
|
|
sha256 "eed502012f0c63927a1a32e3154071cc81175d1992a893ec41f183b6e3e5d758"
|
2013-11-02 12:39:40 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "Digest::SHA" do
|
|
|
|
url "http://search.cpan.org/CPAN/authors/id/M/MS/MSHELOR/Digest-SHA-5.85.tar.gz"
|
2015-05-07 17:39:57 +00:00
|
|
|
mirror "https://cpan.metacpan.org/authors/id/M/MS/MSHELOR/Digest-SHA-5.85.tar.gz"
|
|
|
|
sha256 "57eaa26fb2d2ccfd31af2fd312992272439d561c17e34274e8c7aa93e427ca49"
|
2013-11-02 12:39:40 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "DateTime" do
|
|
|
|
url "http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-1.03.tar.gz"
|
2015-05-07 17:39:57 +00:00
|
|
|
mirror "https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-1.03.tar.gz"
|
|
|
|
sha256 "384f97c73da02492d771d6b5c3b37f6b18c2e12f4db3246b1d61ff19c6d6ad6d"
|
2013-11-02 12:39:40 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2014-05-05 09:59:36 +00:00
|
|
|
ENV.prepend_create_path "PERL5LIB", libexec+"lib/perl5"
|
2014-01-21 03:32:44 +00:00
|
|
|
|
2013-11-02 12:39:40 +00:00
|
|
|
resource("Crypt::Twofish").stage do
|
|
|
|
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
|
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource("Digest::SHA").stage do
|
|
|
|
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
|
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource("DateTime").stage do
|
|
|
|
system "perl", "Build.PL", "--install_base=#{libexec}"
|
|
|
|
system "./Build"
|
|
|
|
system "./Build", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
bin.install "clipsafe"
|
2014-05-05 09:59:36 +00:00
|
|
|
bin.env_script_all_files(libexec+"bin", :PERL5LIB => ENV["PERL5LIB"])
|
2013-11-02 12:39:40 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
ENV["TERM"] = "dumb"
|
|
|
|
system "#{bin}/clipsafe", "--help"
|
|
|
|
end
|
|
|
|
end
|