aap 1.093 (new formula)
Closes Homebrew/homebrew#40089. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
4b714478a2
commit
71213e00ec
1 changed files with 24 additions and 0 deletions
24
Formula/aap.rb
Normal file
24
Formula/aap.rb
Normal file
|
@ -0,0 +1,24 @@
|
|||
class Aap < Formula
|
||||
desc "Aap is a 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.093/aap-1.093.zip"
|
||||
sha256 "7a6c6c4a819a8379e60c679fe0c3f93eb1b74204cd7cc1c158263f4b34943001"
|
||||
|
||||
depends_on :python if MacOS.version <= :snow_leopard
|
||||
|
||||
def install
|
||||
# Aap only installs "man" at top level. This moves it under share/,
|
||||
# which OS X and Homebrew use by default.
|
||||
# Upstream bug report: http://sourceforge.net/p/a-a-p/mailman/message/34146703/
|
||||
inreplace "main.aap", "mandir = $PREFIX/man/man1", "mandir = $PREFIX/share/man/man1"
|
||||
|
||||
# Aap is designed to install using itself
|
||||
system "./aap", "install", "PREFIX=#{prefix}"
|
||||
end
|
||||
|
||||
test do
|
||||
# A dummy target definition
|
||||
(testpath/"main.aap").write("dummy:\n\t:print OK\n")
|
||||
system "#{bin}/aap", "dummy"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue