noweb 2.11b

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Will Robertson 2010-08-28 00:36:01 +09:30 committed by Adam Vandenberg
parent feff1bb024
commit abc6d531dc
1 changed files with 34 additions and 0 deletions

34
Formula/noweb.rb Normal file
View File

@ -0,0 +1,34 @@
require 'formula'
class Noweb <Formula
url 'ftp://www.eecs.harvard.edu/pub/nr/noweb.tgz'
version '2.11b'
homepage 'http://www.cs.tufts.edu/~nr/noweb/'
md5 '1df580723497b2f2efde07646abf764c'
depends_on 'icon'
def install
Dir.chdir "src" do
system "make LIBSRC=icon ICONC=icont"
kpse = `which kpsewhich`
if kpse == ''
ohai 'No TeX installation found. Installing TeX support files in the noweb Cellar.'
texmf = "#{prefix}"
else
texmf = "`kpsewhich -var-value=TEXMFLOCAL`"
end
bin.mkpath
lib.mkpath
man.mkpath
system "mkdir -p #{texmf}/tex/generic/noweb"
system "make", "install", "BIN=#{bin}",
"LIB=#{lib}",
"MAN=#{man}",
"TEXINPUTS=#{texmf}/tex/generic/noweb"
end
end
end