homebrew-core/Formula/bibutils.rb
howthebodyworks 15f921d86f got to bibutils 4.12 as the previously packaged version 4.9 appears to be no longer supplied
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2010-12-19 21:29:16 +00:00

20 lines
659 B
Ruby

require 'formula'
class Bibutils <Formula
url 'http://www.scripps.edu/~cdputnam/software/bibutils/bibutils_4.12_src.tgz'
homepage 'http://www.scripps.edu/~cdputnam/software/bibutils/'
md5 '395f46393eca8e184652c5e8e1ae83b6'
def install
system "./configure --install-dir #{prefix}"
inreplace "Makefile" do |s|
s.change_make_var! "CC", "CC=\"#{ENV.cc}\""
end
system "make"
executables = %w{ bib2xml ris2xml end2xml endx2xml med2xml isi2xml copac2xml
biblatex2xml ebi2xml wordbib2xml xml2ads xml2bib xml2end xml2isi
xml2ris xml2wordbib modsclean }
executables.each { |x| bin.install "bin/#{x}" }
end
end