homebrew-core/Formula/yelp-tools.rb

30 lines
1 KiB
Ruby
Raw Normal View History

2015-06-23 16:14:32 +00:00
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.16/yelp-tools-3.16.1.tar.xz"
sha256 "b4f66c145af1c6448dc51037d305d6844da13dc31d07729b8e29005ee4fef89c"
2015-06-23 14:28:02 +00:00
bottle do
sha256 "7894b375bb21f2929d52059e03c7f2e85d3f1b01a3628713bab9f8b22046177a" => :yosemite
sha256 "58b3f9a45cd49310e5927fb646ce7377217def692721b1b44c8ccb83ed25baa6" => :mavericks
sha256 "e563248856c8bf11c35b426147884e148207065de6e4adf8920fd4cdf9353207" => :mountain_lion
end
2015-06-23 16:14:32 +00:00
depends_on "itstool" => :build
depends_on "pkg-config" => :build
depends_on "libxslt" => :build
depends_on "libxml2" => :build
depends_on "yelp-xsl"
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install"
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