2014-03-08 12:45:00 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Bmake < Formula
|
|
|
|
homepage "http://www.crufty.net/help/sjg/bmake.html"
|
2015-01-31 08:10:24 +00:00
|
|
|
url "http://www.crufty.net/ftp/pub/sjg/bmake-20141111.tar.gz"
|
|
|
|
sha1 "a6f670210f9ccde09a0e93a29a766f4726ddfeed"
|
2014-03-08 12:45:00 +00:00
|
|
|
|
2015-01-31 08:25:52 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "bfb80b95386a6e9c439167573d58a9623650708e" => :yosemite
|
|
|
|
sha1 "9ae644344202f0e42eaac253e38b95d16c23433d" => :mavericks
|
|
|
|
sha1 "e91b8e0f374eeaf85ef53bf4d92df3cf1d646a97" => :mountain_lion
|
|
|
|
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."
|
|
|
|
args = [ "--prefix=#{prefix}", "-DWITHOUT_PROG_LINK", "--install" ]
|
|
|
|
|
|
|
|
system "sh", "boot-strap", *args
|
|
|
|
|
|
|
|
man1.install "bmake.1"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"Makefile").write <<-EOS
|
|
|
|
all: hello
|
|
|
|
|
|
|
|
hello:
|
2014-05-09 15:31:12 +00:00
|
|
|
\t@echo 'Test successful.'
|
2014-03-08 12:45:00 +00:00
|
|
|
|
|
|
|
clean:
|
2014-05-09 15:31:12 +00:00
|
|
|
\trm -rf Makefile
|
2014-03-08 12:45:00 +00:00
|
|
|
EOS
|
|
|
|
|
|
|
|
system bin/"bmake"
|
|
|
|
system bin/"bmake", "clean"
|
|
|
|
end
|
|
|
|
end
|