PageRenderTime 44ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/Formula/isync.rb

https://gitlab.com/jcsilkey/homebrew-core
Ruby | 42 lines | 34 code | 8 blank | 0 comment | 2 complexity | 23646c3120d7a0985714b942a2287acc MD5 | raw file
  1. class Isync < Formula
  2. desc "Synchronize a maildir with an IMAP server"
  3. homepage "http://isync.sourceforge.net/"
  4. url "https://downloads.sourceforge.net/project/isync/isync/1.2.1/isync-1.2.1.tar.gz"
  5. sha256 "e716de28c9a08e624a035caae3902fcf3b511553be5d61517a133e03aa3532ae"
  6. bottle do
  7. cellar :any
  8. revision 1
  9. sha256 "38fb0d21a245178886acb1262f57ddde284adbf889039baf3401bf2028d7cba7" => :el_capitan
  10. sha256 "074b9295e7ac9773eafac5bdc20e32d42d8023ffccd275235d0cb72ff09574cf" => :yosemite
  11. sha256 "147097d617448be4d6796bf189a05200c1afd738ad64fe05aa40c61db10b5194" => :mavericks
  12. end
  13. head do
  14. url "git://git.code.sf.net/p/isync/isync"
  15. depends_on "autoconf" => :build
  16. depends_on "automake" => :build
  17. end
  18. depends_on "openssl"
  19. depends_on "berkeley-db" => :optional
  20. def install
  21. system "./autogen.sh" if build.head?
  22. args = %W[
  23. --disable-dependency-tracking
  24. --prefix=#{prefix}
  25. --disable-silent-rules
  26. ]
  27. args << "ac_cv_berkdb4=no" if build.without? "berkeley-db"
  28. system "./configure", *args
  29. system "make", "install"
  30. end
  31. test do
  32. system bin/"get-cert", "duckduckgo.com:443"
  33. end
  34. end