homebrew-core/Formula/bmake.rb
2017-08-13 18:37:08 -07:00

37 lines
1.1 KiB
Ruby

class Bmake < Formula
desc "Portable version of NetBSD make(1)"
homepage "http://www.crufty.net/help/sjg/bmake.html"
url "http://www.crufty.net/ftp/pub/sjg/bmake-20170812.tar.gz"
sha256 "cdd9ea1aa5b84b7b892ddf2dccb1c21028de6ce0edf5684432e1f4bf861179c6"
bottle do
sha256 "3f6b5a11ed609280af0e27709c78697cfaeeb9d6f2fa6990c1c876224be15117" => :sierra
sha256 "3b1844361e0706952f4b711a0116721d9de1458cf0abff8d932ea8dae64daaf3" => :el_capitan
sha256 "a4db2ef119d1bb0cdc25afb620d4142f438343039dbf9c6627c67ef10d723963" => :yosemite
end
def install
# Don't pre-roff cat pages.
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.undent
all: hello
hello:
\t@echo 'Test successful.'
clean:
\trm -rf Makefile
EOS
system bin/"bmake"
system bin/"bmake", "clean"
end
end