diff options
| author | Keisuke Takahashi | 2013-08-04 15:46:11 +0900 |
|---|---|---|
| committer | Adam Vandenberg | 2013-08-15 09:47:57 -0700 |
| commit | eaccdfc9749fcc8b4cddcfc1054e74d4e047151a (patch) | |
| tree | 85300b93038cadf8ee5c5fb6132a8475e9c99c9c /Library/Formula/voltdb.rb | |
| parent | f79271fee0119c9dcbb74651de913c2c376d76fd (diff) | |
| download | homebrew-eaccdfc9749fcc8b4cddcfc1054e74d4e047151a.tar.bz2 | |
voltdb 3.4
Closes #21645.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/voltdb.rb')
| -rw-r--r-- | Library/Formula/voltdb.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/voltdb.rb b/Library/Formula/voltdb.rb new file mode 100644 index 000000000..f1f08af20 --- /dev/null +++ b/Library/Formula/voltdb.rb @@ -0,0 +1,22 @@ +require 'formula' + +class Voltdb < Formula + homepage 'https://github.com/VoltDB/voltdb' + head 'https://github.com/VoltDB/voltdb.git' + url 'https://github.com/VoltDB/voltdb/archive/voltdb-3.4.tar.gz' + sha1 '9a45ee70b99ea32c0c919b786ba528677db3d284' + + def install + system 'ant' + + inreplace 'bin/voltdb', /VOLTDB_LIB=\$VOLTDB_HOME\/lib/, 'VOLTDB_LIB=$VOLTDB_HOME/lib/voltdb' + + Dir['lib/*'].each do |f| (lib/'voltdb').install f end + ln_s lib/'voltdb/python', lib/'python' + prefix.install 'bin', 'tools', 'voltdb', 'version.txt', 'doc' + end + + test do + assert_equal "3.4\n", File.read("#{prefix}/version.txt") + end +end |
