homebrew-core/Formula/bibutils.rb

35 lines
1,006 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Bibutils < Formula
desc "Bibliography conversion utilities"
2015-01-02 01:07:53 +00:00
homepage "http://sourceforge.net/p/bibutils/home/Bibutils/"
url "https://downloads.sourceforge.net/project/bibutils/bibutils_5.6_src.tgz"
sha256 "9fc7ba38b69379e501af9d6228f6e2ebaebcca52b6810583d901219d83537423"
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
system "./configure", "--install-dir", bin,
"--install-lib", lib
system "make", "install", "CC=#{ENV.cc}"
2010-05-20 21:14:23 +00:00
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
2010-05-20 21:14:23 +00:00
end