2010-07-14 22:47:06 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Avanor <Formula
|
|
|
|
url 'http://downloads.sourceforge.net/project/avanor/avanor/0.5.8/avanor-0.5.8-src.tar.bz2'
|
|
|
|
homepage 'http://avanor.sourceforge.net/'
|
|
|
|
md5 '20067962b9635b1789933ddd7933d142'
|
|
|
|
|
|
|
|
def install
|
2010-09-08 16:07:59 +00:00
|
|
|
inreplace 'Makefile' do |s|
|
|
|
|
s.gsub! "CC = gpp", "CC = cpp"
|
|
|
|
s.gsub! "LD = gpp", "LD = cpp"
|
2010-07-14 22:47:06 +00:00
|
|
|
end
|
|
|
|
|
2010-07-15 15:10:13 +00:00
|
|
|
system "make DATA_DIR=#{share}/avanor/"
|
2010-07-14 22:47:06 +00:00
|
|
|
bin.install "avanor"
|
|
|
|
(share+"avanor").install "manual"
|
|
|
|
end
|
|
|
|
end
|