homebrew-core/Formula/bibtexconv.rb
2015-02-04 11:11:21 +00:00

30 lines
1 KiB
Ruby

class Bibtexconv < Formula
homepage "https://www.iem.uni-due.de/~dreibh/bibtexconv/"
url "https://www.uni-due.de/~be0001/bibtexconv/download/bibtexconv-1.1.0.tar.gz"
sha1 "c9ea5d067de069ddbe7b6500043ff87cae2fb8ba"
bottle do
cellar :any
sha1 "181370ff5fd768678de4e015e071844281343094" => :yosemite
sha1 "ce905adc7117c2494069c58f617c3d06a787e919" => :mavericks
sha1 "570f919ab0a297ef720c5a6ffa326350e55b8195" => :mountain_lion
end
depends_on "openssl"
def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make"
ENV.j1 # serialize folder creation
system "make", "install"
end
test do
cp "#{Formula["bibtexconv"].opt_share}/doc/bibtexconv/examples/ExampleReferences.bib", testpath
system bin/"bibtexconv", "#{testpath}/ExampleReferences.bib", "-export-to-bibtex=UpdatedReferences.bib",
"-check-urls", "-only-check-new-urls", "-non-interactive"
end
end