homebrew-core/Formula/bib-tool.rb

32 lines
910 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class BibTool < Formula
homepage "http://www.gerd-neugebauer.de/software/TeX/BibTool/index.en.html"
url "http://www.gerd-neugebauer.de/software/TeX/BibTool/BibTool-2.57.tar.gz"
sha1 "a6e80c86d347a39f3883e552db2dd4deb72b0e86"
2012-11-12 00:22:18 +00:00
2015-01-16 07:44:04 +00:00
bottle do
sha1 "d5822fd899e1238c75964b7c0763dad2f24386e7" => :yosemite
sha1 "dcaaf50c9992f1e1812845914ab3bd4b8be521de" => :mavericks
sha1 "e0b9efe0a08a1c02a94ddd95fdfcef8863f1ad01" => :mountain_lion
end
def install
2012-11-12 00:22:18 +00:00
system "./configure", "--prefix=#{prefix}", "--without-kpathsea"
system "make"
system "make", "install"
end
test do
(testpath/"test.bib").write <<-EOS.undent
@article{Homebrew,
title = {Something},
author = {Someone},
journal = {Something},
volume = {1},
number = {2},
pages = {3--4}
}
EOS
system "#{bin}/bibtool", "test.bib"
end
end