2014-03-08 12:45:00 +00:00
|
|
|
class Bmake < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Portable version of NetBSD make(1)"
|
2014-03-08 12:45:00 +00:00
|
|
|
homepage "http://www.crufty.net/help/sjg/bmake.html"
|
2016-09-24 16:57:47 +00:00
|
|
|
url "http://www.crufty.net/ftp/pub/sjg/bmake-20160818.tar.gz"
|
|
|
|
sha256 "d64b23e3e4013b6d4ea590b05251874ffa9d841299b4e5344a6edf45ea7e1141"
|
2014-03-08 12:45:00 +00:00
|
|
|
|
2015-01-31 08:25:52 +00:00
|
|
|
bottle do
|
2016-09-27 03:39:34 +00:00
|
|
|
sha256 "38e0b7712c5ae20b9a2639f21aa46c96e7893e3a44ce8956d1c64f5efb16ed66" => :sierra
|
|
|
|
sha256 "6964daaba5e8b288e9b39ee9439821bac54f3babbc619fe9db5c6ae7d81284e8" => :el_capitan
|
|
|
|
sha256 "74d7a6b8f7fb23383762be1440171f50336283eebe1f48d7163ae5b81ae4489f" => :yosemite
|
2015-01-31 08:25:52 +00:00
|
|
|
end
|
|
|
|
|
2014-03-08 12:45:00 +00:00
|
|
|
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."
|
2015-08-03 12:55:31 +00:00
|
|
|
args = ["--prefix=#{prefix}", "-DWITHOUT_PROG_LINK", "--install"]
|
2014-03-08 12:45:00 +00:00
|
|
|
system "sh", "boot-strap", *args
|
|
|
|
|
|
|
|
man1.install "bmake.1"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-04-17 20:51:53 +00:00
|
|
|
(testpath/"Makefile").write <<-EOS.undent
|
|
|
|
all: hello
|
2014-03-08 12:45:00 +00:00
|
|
|
|
2015-04-17 20:51:53 +00:00
|
|
|
hello:
|
|
|
|
\t@echo 'Test successful.'
|
2014-03-08 12:45:00 +00:00
|
|
|
|
2015-04-17 20:51:53 +00:00
|
|
|
clean:
|
|
|
|
\trm -rf Makefile
|
|
|
|
EOS
|
2014-03-08 12:45:00 +00:00
|
|
|
system bin/"bmake"
|
|
|
|
system bin/"bmake", "clean"
|
|
|
|
end
|
|
|
|
end
|