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"
|
2015-04-23 10:48:44 +00:00
|
|
|
url "http://www.crufty.net/ftp/pub/sjg/bmake-20150411.tar.gz"
|
|
|
|
sha256 "67fe93e078ea64719fb4123a638cc798241fe70d1fa5d5e08e64751f69a06b82"
|
2014-03-08 12:45:00 +00:00
|
|
|
|
2015-01-31 08:25:52 +00:00
|
|
|
bottle do
|
2015-04-23 17:51:49 +00:00
|
|
|
sha256 "d04c6d1053a37523def6b64436b892740234ccb2478d35ddb389cf9fcba78cbb" => :yosemite
|
|
|
|
sha256 "f953d4ff22e6ecbad0a33ea3b37becf5be6b5a8bbbb69a6c4d0f0ad69f61f534" => :mavericks
|
|
|
|
sha256 "c5dc94d4a158a3b3517663ac77e670b5154a69b81c3ebb9d425cee4b81171c45" => :mountain_lion
|
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
|