diff options
| author | Sascha Kratky | 2010-09-25 13:51:05 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2010-11-01 10:46:04 -0700 |
| commit | 003b315ffda470847844fc236c12c9cf3803a9e0 (patch) | |
| tree | b7146251c2099e8e27cf2336750aae575d085526 /Library/Formula/vmalloc.rb | |
| parent | 89da4b8b53abe3d985a5f51aea19723085588184 (diff) | |
| download | homebrew-003b315ffda470847844fc236c12c9cf3803a9e0.tar.bz2 | |
New Formula: vmalloc
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/vmalloc.rb')
| -rw-r--r-- | Library/Formula/vmalloc.rb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Library/Formula/vmalloc.rb b/Library/Formula/vmalloc.rb new file mode 100644 index 000000000..0da6fdb0d --- /dev/null +++ b/Library/Formula/vmalloc.rb @@ -0,0 +1,40 @@ +require 'formula' +require 'download_strategy' + +class VmallocDownloadStrategy <CurlDownloadStrategy + def _fetch + # downloading from AT&T requires using the following credentials + credentials = 'I accept www.opensource.org/licenses/cpl:.' + curl @url, '--output', @tarball_path, '--user', credentials + end +end + +class Vmalloc <Formula + url 'http://www2.research.att.com/~gsf/download/tgz/vmalloc.2005-02-01.tgz', + :using => VmallocDownloadStrategy + homepage 'http://www2.research.att.com/sw/download/' + md5 '564db0825820ecd18308de2933075980' + version '2005-02-01' + + def install + # Vmalloc makefile does not work in parallel mode + ENV.deparallelize + # override Vmalloc makefile flags + inreplace Dir['src/**/Makefile'] do |s| + s.change_make_var! "CC", ENV.cc + s.change_make_var! "CXFLAGS", ENV.cflags + s.change_make_var! "CCMODE", "" + end + # make all Vmalloc stuff + system "/bin/sh ./Runmake" + # install manually + # put all includes into a directory of their own + (include + "vmalloc").install Dir['include/*.h'] + lib.install Dir['lib/*.a'] + man.install 'man/man3' + end + + def caveats + "We agreed to the OSI Common Public License Version 1.0 for you.\nIf this is unacceptable you should uninstall." + end +end |
