aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/noweb.rb
diff options
context:
space:
mode:
authorWill Robertson2010-08-28 00:36:01 +0930
committerAdam Vandenberg2011-03-06 20:45:08 -0800
commit1bbab63a5bf258795a80320daf9d84737669f542 (patch)
tree84a9d811348a6dfb131ee2035bd0c04acf150107 /Library/Formula/noweb.rb
parent9e7980e44511bb8332f7a77732795b2202436aba (diff)
downloadhomebrew-1bbab63a5bf258795a80320daf9d84737669f542.tar.bz2
noweb 2.11b
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/noweb.rb')
-rw-r--r--Library/Formula/noweb.rb34
1 files changed, 34 insertions, 0 deletions
diff --git a/Library/Formula/noweb.rb b/Library/Formula/noweb.rb
new file mode 100644
index 000000000..af4236aa4
--- /dev/null
+++ b/Library/Formula/noweb.rb
@@ -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