qriollo 0.91 (new formula)

Closes Homebrew/homebrew#46609.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
Alexander Altman 2015-12-02 21:58:14 -08:00 committed by Baptiste Fontaine
parent a173c639eb
commit 573c52c98d

32
Formula/qriollo.rb Normal file
View file

@ -0,0 +1,32 @@
class Qriollo < Formula
desc "Impure functional language, based on Rioplatense Spanish."
homepage "https://qriollo.github.io"
url "https://qriollo.github.io/Qriollo-0.91.tar.gz"
sha256 "c8357af8254a082d8e4da1de1bbf13bee27cfde8adb31ea0a5a0966bfbb7b28d"
head "https://github.com/qriollo/qriollo.git"
depends_on "ghc" => :build
def install
system "make"
bin.install "qr"
(lib/"chamuyo").install "Chamuyo.q"
end
def caveats
<<-EOS.undent
The standard module "Chamuyo.q" has been placed in:
#{lib}/chamuyo
EOS
end
test do
test_file_name = "HolaMundo.q"
(testpath/test_file_name).write <<-EOS.undent
enchufar Chamuyo
el programa es
escupir "Hola mundo\n"
EOS
system bin/"qr", "--ruta", "#{lib/"chamuyo"}:#{testpath}", test_file_name
end
end