2010-05-20 21:14:23 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Bibutils < Formula
|
2012-02-10 03:29:37 +00:00
|
|
|
homepage 'http://sourceforge.net/p/bibutils/home/Bibutils/'
|
|
|
|
url 'http://sourceforge.net/projects/bibutils/files/bibutils_4.12_src.tgz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '027be11cbad8261d0a6fc1056010480b23385ba2'
|
2010-05-20 21:14:23 +00:00
|
|
|
|
|
|
|
def install
|
2012-05-15 18:31:21 +00:00
|
|
|
system "./configure", "--install-dir", prefix
|
2012-02-10 03:29:37 +00:00
|
|
|
|
2012-03-11 02:19:31 +00:00
|
|
|
# The configure script replaces the CC variable wrong, so fix it here
|
2012-02-10 03:29:37 +00:00
|
|
|
inreplace 'Makefile' do |s|
|
|
|
|
s.change_make_var! 'CC', "CC=#{ENV.cc}"
|
2010-07-28 12:43:21 +00:00
|
|
|
end
|
2012-02-10 03:29:37 +00:00
|
|
|
|
2010-07-28 12:43:21 +00:00
|
|
|
system "make"
|
|
|
|
|
2012-02-10 03:29:37 +00:00
|
|
|
cd 'bin' do
|
|
|
|
bin.install %w{bib2xml ris2xml end2xml endx2xml med2xml isi2xml copac2xml
|
|
|
|
biblatex2xml ebi2xml wordbib2xml xml2ads xml2bib xml2end xml2isi xml2ris
|
|
|
|
xml2wordbib modsclean}
|
|
|
|
end
|
2010-05-20 21:14:23 +00:00
|
|
|
end
|
|
|
|
end
|