homebrew-core/Formula/yelp-xsl.rb

40 lines
1.5 KiB
Ruby
Raw Normal View History

2015-06-23 16:14:52 +00:00
class YelpXsl < Formula
desc "Yelp's universal stylesheets for Mallard and DocBook"
homepage "https://github.com/GNOME/yelp-xsl"
url "https://download.gnome.org/sources/yelp-xsl/3.18/yelp-xsl-3.18.1.tar.xz"
sha256 "00870fbe59a1bc7797b385fce16386917e2987c404e9b5a7adcf0036f1c1ba62"
2015-06-23 16:14:52 +00:00
2015-06-23 14:28:02 +00:00
bottle do
2015-09-23 15:02:59 +00:00
cellar :any_skip_relocation
2015-10-05 18:13:32 +00:00
sha256 "1c6aebcb7310ad6451c2410da48bdd43bd0b595ad6608ced1a787ad7307add57" => :el_capitan
sha256 "2a596d1ffc199375109a990a397a289a28530c1d6af7b79db443208f6b9f6c23" => :yosemite
sha256 "155670c085ed84002b69978bd679ff128a8be811fc686b8b0936cbae9634ad20" => :mavericks
2015-06-23 14:28:02 +00:00
end
2015-06-23 16:14:52 +00:00
depends_on "libxslt"
depends_on "libxml2"
depends_on "itstool" => :build
depends_on "intltool" => :build
depends_on "gettext" => :build
depends_on "gtk+3"=> :run
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--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
assert (share/"yelp-xsl/xslt/mallard/html/mal2html-links.xsl").exist?
assert (share/"yelp-xsl/js/jquery.syntax.brush.smalltalk.js").exist?
assert (share/"yelp-xsl/icons/hicolor/24x24/status/yelp-note-warning.png").exist?
assert (share/"pkgconfig/yelp-xsl.pc").exist?
end
end