PageRenderTime 110ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/Formula/links.rb

https://gitlab.com/jcsilkey/homebrew-core
Ruby | 51 lines | 43 code | 7 blank | 1 comment | 5 complexity | a5367abf4e797fad9489f0c8b10959b2 MD5 | raw file
  1. class Links < Formula
  2. desc "Lynx-like WWW browser that supports tables, menus, etc."
  3. homepage "http://links.twibright.com/"
  4. # Switch url & mirror back over when twibright is responsive.
  5. url "https://mirrors.ocf.berkeley.edu/debian/pool/main/l/links2/links2_2.13.orig.tar.bz2"
  6. mirror "http://links.twibright.com/download/links-2.13.tar.bz2"
  7. sha256 "c252095334a3b199fa791c6f9a9affe2839a7fbd536685ab07851cb7efaa4405"
  8. bottle do
  9. cellar :any
  10. sha256 "72f73ee61f9b16ae1e8bbe1306900a1fb17cfd49576f166bb88ab574ec8b0925" => :el_capitan
  11. sha256 "490a0aa8d1116268d3a431d9c1442dc9a2bd94fb00a74f0cab3767622ea119ac" => :yosemite
  12. sha256 "65ed8437744babda1c9653b7944b5e77b1147d235424948c1c98309b15c9ccc8" => :mavericks
  13. end
  14. depends_on "pkg-config" => :build
  15. depends_on "openssl" => :recommended
  16. depends_on "libressl" => :optional
  17. depends_on "libtiff" => :optional
  18. depends_on "jpeg" => :optional
  19. depends_on "librsvg" => :optional
  20. depends_on :x11 => :optional
  21. def install
  22. args = %W[
  23. --disable-debug
  24. --disable-dependency-tracking
  25. --prefix=#{prefix}
  26. --mandir=#{man}
  27. ]
  28. if build.with? "libressl"
  29. args << "--with-ssl=#{Formula["libressl"].opt_prefix}"
  30. else
  31. args << "--with-ssl=#{Formula["openssl"].opt_prefix}"
  32. end
  33. args << "--enable-graphics" if build.with? "x11"
  34. args << "--without-libtiff" if build.without? "libtiff"
  35. args << "--without-libjpeg" if build.without? "jpeg"
  36. args << "--without-librsvg" if build.without? "librsvg"
  37. system "./configure", *args
  38. system "make", "install"
  39. doc.install Dir["doc/*"]
  40. end
  41. test do
  42. system bin/"links", "-dump", "https://duckduckgo.com"
  43. end
  44. end