forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaap.rb
28 lines (24 loc) · 1.01 KB
/
aap.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Aap < Formula
desc "make-like tool to download, build, and install software"
homepage "http://www.a-a-p.org"
url "https://downloads.sourceforge.net/project/a-a-p/aap-1.094.zip"
sha256 "3f53b2fc277756042449416150acc477f29de93692944f8a77e8cef285a1efd8"
bottle do
cellar :any_skip_relocation
rebuild 1
sha256 "6e42400eb31e15dae56452b347925eb20faae1b996d94173b8711bd080e4a182" => :sierra
sha256 "32c30b38a37147754c5abfe9a801777b4a798af6dbcce2f15e1693c6027f0fbe" => :el_capitan
sha256 "15472b5a56a90d2d83c3ab24eba09e3644867857d8a7c547c82e6937beff3344" => :yosemite
sha256 "b141c07f091f90bd883148bf0e3c093d90fc0be7c4f8e7d07df9ae7cae684862" => :mavericks
end
depends_on :python if MacOS.version <= :snow_leopard
def install
# Aap is designed to install using itself
system "./aap", "install", "PREFIX=#{prefix}", "MANSUBDIR=share/man"
end
test do
# A dummy target definition
(testpath/"main.aap").write("dummy:\n\t:print OK\n")
system "#{bin}/aap", "dummy"
end
end