class YelpTools < Formula desc "Tools that help create and edit Mallard or DocBook documentation" homepage "https://github.com/GNOME/yelp-tools" url "https://download.gnome.org/sources/yelp-tools/3.28/yelp-tools-3.28.0.tar.xz" sha256 "82dbfeea2359dfef8ee92c7580c7f03768d12f9bf67d839f03a5e9b0686dc1ac" revision 3 bottle do cellar :any_skip_relocation sha256 "c3f99713403a1529bad9dde8936073d9a28c42a5b1e37d0cd4bf11d5c28257c0" => :mojave sha256 "10a1f9d0412ea9371a10fe0d8a792e57c345a7ec732c6b6662469ddd57325fc1" => :high_sierra sha256 "10a1f9d0412ea9371a10fe0d8a792e57c345a7ec732c6b6662469ddd57325fc1" => :sierra end depends_on "gettext" => :build depends_on "intltool" => :build depends_on "itstool" => :build depends_on "libxml2" => :build depends_on "libxslt" => :build depends_on "pkg-config" => :build depends_on "gtk+3" resource "yelp-xsl" do url "https://download.gnome.org/sources/yelp-xsl/3.30/yelp-xsl-3.30.1.tar.xz" sha256 "fcef31c5938c6654976bbabb8b5d0d9e49fa2ce79136db74ca213056fdb8cf39" end def install resource("yelp-xsl").stage do system "./configure", "--disable-debug", "--disable-dependency-tracking", "--disable-silent-rules", "--prefix=#{prefix}" system "make", "install" ENV.append_path "PKG_CONFIG_PATH", "#{share}/pkgconfig" end system "./configure", "--prefix=#{prefix}" system "make", "install" end def post_install system "#{Formula["gtk+3"].opt_bin}/gtk3-update-icon-cache", "-f", "-t", "#{HOMEBREW_PREFIX}/share/icons/hicolor" end test do system "#{bin}/yelp-new", "task", "ducksinarow" system "#{bin}/yelp-build", "html", "ducksinarow.page" system "#{bin}/yelp-check", "validate", "ducksinarow.page" end end