2010-05-20 21:14:23 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Bibutils < Formula
|
2010-12-13 06:05:19 +00:00
|
|
|
url 'http://www.scripps.edu/~cdputnam/software/bibutils/bibutils_4.12_src.tgz'
|
2010-05-20 21:14:23 +00:00
|
|
|
homepage 'http://www.scripps.edu/~cdputnam/software/bibutils/'
|
2010-12-13 06:05:19 +00:00
|
|
|
md5 '395f46393eca8e184652c5e8e1ae83b6'
|
2010-05-20 21:14:23 +00:00
|
|
|
|
|
|
|
def install
|
2010-07-28 12:43:21 +00:00
|
|
|
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}" }
|
2010-05-20 21:14:23 +00:00
|
|
|
end
|
|
|
|
end
|