homebrew-core/Formula/bib-tool.rb

33 lines
1 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class BibTool < Formula
desc "Manipulates BibTeX databases"
homepage "http://www.gerd-neugebauer.de/software/TeX/BibTool/index.en.html"
url "https://github.com/ge-ne/bibtool/releases/download/BibTool_2_61/BibTool-2.61.tar.gz"
sha256 "8eaf351f1685078345a4446346559698fb58d8d1dfdf057418e5221132f9a8a4"
2012-11-12 00:22:18 +00:00
2015-01-16 07:44:04 +00:00
bottle do
2015-08-07 06:37:57 +00:00
sha256 "00f739b22c53d932de1cf544ad0c35b6526c93e3a2970525767fb9fda205ac34" => :yosemite
sha256 "c7d653318bc2d6bb91a439bb5600f161757962bd7952b4703d85d85c911dd34a" => :mavericks
sha256 "3fc35d6bbda845e0678c773f7a518176bc683f30a50858bd3cf35b90df4de854" => :mountain_lion
2015-01-16 07:44:04 +00:00
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