2014-04-08 22:10:55 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Imapsync < Formula
|
|
|
|
homepage "http://ks.lamiral.info/imapsync/"
|
2014-08-05 12:59:06 +00:00
|
|
|
url "https://fedorahosted.org/released/imapsync/imapsync-1.592.tgz"
|
|
|
|
sha1 "f107917ee01ef46d97408226a083871a7d660d0b"
|
2014-04-08 22:10:55 +00:00
|
|
|
|
|
|
|
head "https://git.fedorahosted.org/git/imapsync.git"
|
|
|
|
|
|
|
|
resource "File::Copy::Recursive" do
|
|
|
|
url "http://search.cpan.org/CPAN/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.38.tar.gz"
|
2014-07-20 22:22:39 +00:00
|
|
|
mirror "http://search.mcpan.org/CPAN/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.38.tar.gz"
|
2014-04-08 22:10:55 +00:00
|
|
|
sha1 "6c3a48c8ba70ad6b1ea97c4aac6b1f2d310a8e8d"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "Mail::IMAPClient" do
|
|
|
|
url "http://search.cpan.org/CPAN/authors/id/P/PL/PLOBBES/Mail-IMAPClient-3.35.tar.gz"
|
2014-07-20 22:22:39 +00:00
|
|
|
mirror "http://search.mcpan.org/CPAN/authors/id/P/PL/PLOBBES/Mail-IMAPClient-3.35.tar.gz"
|
2014-04-08 22:10:55 +00:00
|
|
|
sha1 "96cbe63b112cdd7c411566c5ae3ed8dafba4f7bd"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "Authen::NTLM" do
|
|
|
|
url "http://search.cpan.org/CPAN/authors/id/N/NB/NBEBOUT/NTLM-1.09.tar.gz"
|
2014-07-20 22:22:39 +00:00
|
|
|
mirror "http://search.mcpan.org/CPAN/authors/id/N/NB/NBEBOUT/NTLM-1.09.tar.gz"
|
2014-04-08 22:10:55 +00:00
|
|
|
sha1 "91064a6ce7ccf0eb8ef498a2f3dc3d30e9406dfe"
|
|
|
|
end
|
|
|
|
|
2014-08-05 12:59:06 +00:00
|
|
|
resource "IO::Tee" do
|
|
|
|
url "http://search.cpan.org/CPAN/authors/id/K/KE/KENSHAN/IO-Tee-0.64.tar.gz"
|
|
|
|
mirror "http://search.mcpan.org/CPAN/authors/id/K/KE/KENSHAN/IO-Tee-0.64.tar.gz"
|
|
|
|
sha1 "29314311318e3e0bee01623a23eda4f1ba629b76"
|
|
|
|
end
|
|
|
|
|
2014-04-08 22:10:55 +00:00
|
|
|
def install
|
|
|
|
ENV.prepend_create_path 'PERL5LIB', libexec+'lib/perl5'
|
|
|
|
|
2014-08-09 16:47:59 +00:00
|
|
|
resources.each do |r|
|
|
|
|
r.stage do
|
|
|
|
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
|
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
2014-08-05 12:59:06 +00:00
|
|
|
end
|
|
|
|
|
2014-04-08 22:10:55 +00:00
|
|
|
system "perl", "-c", "imapsync"
|
|
|
|
system "pod2man", "imapsync", "imapsync.1"
|
|
|
|
bin.install "imapsync"
|
|
|
|
man1.install "imapsync.1"
|
|
|
|
bin.env_script_all_files(libexec+"bin", :PERL5LIB => ENV['PERL5LIB'])
|
|
|
|
end
|
|
|
|
end
|