7c648d9732
When interpolating in strings passed to Formula#system, it should be done in such a way that if any interpolated variables contain spaces, they are either (a) passed as part of a list or (b) protected by quotes if they are part of a long string (which is subject to shell expansion). Otherwise, they will be split on the space when expanded by the shell and passed as multiple arguments to whatever process is being executed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
24 lines
696 B
Ruby
24 lines
696 B
Ruby
require 'formula'
|
|
|
|
class Bibutils < Formula
|
|
homepage 'http://sourceforge.net/p/bibutils/home/Bibutils/'
|
|
url 'http://sourceforge.net/projects/bibutils/files/bibutils_4.12_src.tgz'
|
|
md5 '395f46393eca8e184652c5e8e1ae83b6'
|
|
|
|
def install
|
|
system "./configure", "--install-dir", prefix
|
|
|
|
# The configure script replaces the CC variable wrong, so fix it here
|
|
inreplace 'Makefile' do |s|
|
|
s.change_make_var! 'CC', "CC=#{ENV.cc}"
|
|
end
|
|
|
|
system "make"
|
|
|
|
cd 'bin' do
|
|
bin.install %w{bib2xml ris2xml end2xml endx2xml med2xml isi2xml copac2xml
|
|
biblatex2xml ebi2xml wordbib2xml xml2ads xml2bib xml2end xml2isi xml2ris
|
|
xml2wordbib modsclean}
|
|
end
|
|
end
|
|
end
|