class Offlineimap < Formula desc "Synchronizes emails between two repositories" homepage "http://offlineimap.org/" url "https://github.com/OfflineIMAP/offlineimap/archive/v6.6.1.tar.gz" sha256 "af3fd47ba087180dc0e8d2b64cf358ce7f6fe49732d13b6fcce82853d0004bb0" head "https://github.com/OfflineIMAP/offlineimap.git" bottle :unneeded def install etc.install "offlineimap.conf", "offlineimap.conf.minimal" libexec.install "bin/offlineimap" => "offlineimap.py" libexec.install "offlineimap" bin.install_symlink libexec+"offlineimap.py" => "offlineimap" end def caveats; <<-EOS.undent To get started, copy one of these configurations to ~/.offlineimaprc: * minimal configuration: cp -n #{etc}/offlineimap.conf.minimal ~/.offlineimaprc * advanced configuration: cp -n #{etc}/offlineimap.conf ~/.offlineimaprc EOS end test do system bin/"offlineimap", "--version" end def plist; <<-EOS.undent KeepAlive Label #{plist_name} ProgramArguments #{opt_bin}/offlineimap StartInterval 300 RunAtLoad StandardErrorPath /dev/null StandardOutPath /dev/null EOS end end