95884bae22
Closes Homebrew/homebrew#42407. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
34 lines
1,006 B
Ruby
34 lines
1,006 B
Ruby
class Bibutils < Formula
|
|
desc "Bibliography conversion utilities"
|
|
homepage "http://sourceforge.net/p/bibutils/home/Bibutils/"
|
|
url "https://downloads.sourceforge.net/project/bibutils/bibutils_5.6_src.tgz"
|
|
sha256 "9fc7ba38b69379e501af9d6228f6e2ebaebcca52b6810583d901219d83537423"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "036d3e0326d28f905d2b7cf8dac92a41f7e85f72" => :yosemite
|
|
sha1 "a0d6d70b5fc7f64977c1cddb9dcc6f9e20455da8" => :mavericks
|
|
sha1 "6648845e6ff3a5318ecfa08498cea7f4d3436de9" => :mountain_lion
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--install-dir", bin,
|
|
"--install-lib", lib
|
|
system "make", "install", "CC=#{ENV.cc}"
|
|
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}/bib2xml", "test.bib"
|
|
end
|
|
end
|