forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlittler.rb
27 lines (23 loc) · 760 Bytes
/
littler.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'formula'
class Littler < Formula
homepage 'http://dirk.eddelbuettel.com/code/littler.html'
url 'http://dirk.eddelbuettel.com/code/littler/littler-0.1.5.tar.gz'
sha1 '0ef2866e5b938897349da46c071483898f823972'
head 'https://littler.googlecode.com/svn/trunk'
depends_on 'r'
def install
ENV.j1
system './configure', '--disable-debug',
'--disable-dependency-tracking', '--disable-silent-rules',
"--prefix=#{prefix}"
system 'make'
# r conflicts with the zsh builtin and is not good for a
# case-insensitive file system where it conflicts with R
bin.install 'r' => 'littler'
man1.install 'r.1' => 'littler.1'
doc.install 'README'
end
test do
system %q[littler -e 'print(pi)']
end
end