2011-03-10 05:11:03 +00:00
|
|
|
class Bibutils < Formula
|
2015-01-02 01:07:53 +00:00
|
|
|
homepage "http://sourceforge.net/p/bibutils/home/Bibutils/"
|
2015-02-02 21:50:11 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/bibutils/bibutils_5.6_src.tgz"
|
|
|
|
sha1 "effec35d97ed2d8454721eaf37ba8b484f02e8da"
|
2010-05-20 21:14:23 +00:00
|
|
|
|
2015-01-15 09:09:39 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-02-02 22:18:48 +00:00
|
|
|
sha1 "036d3e0326d28f905d2b7cf8dac92a41f7e85f72" => :yosemite
|
|
|
|
sha1 "a0d6d70b5fc7f64977c1cddb9dcc6f9e20455da8" => :mavericks
|
|
|
|
sha1 "6648845e6ff3a5318ecfa08498cea7f4d3436de9" => :mountain_lion
|
2015-01-15 09:09:39 +00:00
|
|
|
end
|
|
|
|
|
2010-05-20 21:14:23 +00:00
|
|
|
def install
|
2015-02-02 21:50:11 +00:00
|
|
|
system "./configure", "--install-dir", bin,
|
|
|
|
"--install-lib", lib
|
|
|
|
system "make", "install", "CC=#{ENV.cc}"
|
2010-05-20 21:14:23 +00:00
|
|
|
end
|
2015-01-15 08:49:40 +00:00
|
|
|
|
|
|
|
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}/bib2xml", "test.bib"
|
|
|
|
end
|
2010-05-20 21:14:23 +00:00
|
|
|
end
|