2015-05-26 07:46:09 +00:00
|
|
|
class Aap < Formula
|
2015-12-19 05:06:06 +00:00
|
|
|
desc "make-like tool to download, build, and install software"
|
2015-05-26 07:46:09 +00:00
|
|
|
homepage "http://www.a-a-p.org"
|
2015-06-06 14:52:38 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/a-a-p/aap-1.094.zip"
|
|
|
|
sha256 "3f53b2fc277756042449416150acc477f29de93692944f8a77e8cef285a1efd8"
|
2015-05-27 22:24:13 +00:00
|
|
|
|
2015-06-06 15:01:58 +00:00
|
|
|
bottle do
|
|
|
|
sha256 "b95b0d83504a5ec5c0d10143f2f85aa9fa21f394fda2cf14bebee8b1b643dd37" => :yosemite
|
|
|
|
sha256 "019cb29542a8d8250e22cc10e389d1a2159a9db99db90dc9392650b288025507" => :mavericks
|
|
|
|
sha256 "e496122256798dc62cd02ffdd0d72c7a1d682243c6743b1b7b0b88fc6b3bd34a" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-05-26 07:46:09 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
|
|
|
|
|
|
|
def install
|
|
|
|
# Aap is designed to install using itself
|
2015-06-06 14:52:38 +00:00
|
|
|
system "./aap", "install", "PREFIX=#{prefix}", "MANSUBDIR=share/man"
|
2015-05-26 07:46:09 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
# A dummy target definition
|
|
|
|
(testpath/"main.aap").write("dummy:\n\t:print OK\n")
|
|
|
|
system "#{bin}/aap", "dummy"
|
|
|
|
end
|
|
|
|
end
|