diff options
| author | Geoff Nixon | 2014-03-08 04:45:00 -0800 | 
|---|---|---|
| committer | Adam Vandenberg | 2014-05-03 21:25:31 -0700 | 
| commit | 8ce8f887497b3e5f7fc3ae8335ecbcc9294a1985 (patch) | |
| tree | fd61f302cdaa815dfd96dd11a5e0280b8e1bdd28 /Library/Formula/bmake.rb | |
| parent | a5c2ee82b0aa4d19a5deb55888a71c5c6f0ca6d5 (diff) | |
| download | homebrew-8ce8f887497b3e5f7fc3ae8335ecbcc9294a1985.tar.bz2 | |
bmake 2014-02-14
Closes #27578.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/bmake.rb')
| -rw-r--r-- | Library/Formula/bmake.rb | 36 | 
1 files changed, 36 insertions, 0 deletions
diff --git a/Library/Formula/bmake.rb b/Library/Formula/bmake.rb new file mode 100644 index 000000000..c01e7231f --- /dev/null +++ b/Library/Formula/bmake.rb @@ -0,0 +1,36 @@ +require "formula" + +class Bmake < Formula +  homepage "http://www.crufty.net/help/sjg/bmake.html" +  url "http://www.crufty.net/ftp/pub/sjg/bmake-20140214.tar.gz" +  sha1 "844fc7ccf8219f8327f4f950b633b9d2bdac87b5" + +  def install +    # The first, an oversight upstream; the second, don't pre-roff cat pages. +    inreplace "bmake.1", ".Dt MAKE", ".Dt BMAKE" +    inreplace "mk/man.mk", "MANTARGET?", "MANTARGET" + +    # -DWITHOUT_PROG_LINK means "don't symlink as bmake-VERSION." +    args = [ "--prefix=#{prefix}", "-DWITHOUT_PROG_LINK", "--install" ] + +    system "sh", "boot-strap", *args + +    man1.install "bmake.1" +  end + +  test do +    # Note, literal tabs in this makefile +    (testpath/"Makefile").write <<-EOS +all: hello + +hello: +	@echo 'Test successful.' + +clean: +	rm -rf Makefile +EOS + +    system bin/"bmake" +    system bin/"bmake", "clean" +  end +end  | 
