Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scryer-prolog 0.9.4 (new formula) #205845

Merged
merged 2 commits into from
Feb 5, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Formula/s/scryer-prolog.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
class ScryerProlog < Formula
desc "Modern ISO Prolog implementation written mostly in Rust"
homepage "https://www.scryer.pl"
url "https://github.com/mthom/scryer-prolog/archive/refs/tags/v0.9.4.tar.gz"
sha256 "ccf533c5c34ee7efbf9c702dbffea21ba1c837144c3592a9e97c515abd4d6904"
license "BSD-3-Clause"
head "https://github.com/mthom/scryer-prolog.git", branch: "master"

depends_on "pkgconf" => :build
depends_on "rust" => :build
depends_on "openssl@3"
chriskdon marked this conversation as resolved.
Show resolved Hide resolved

def install
ENV["OPENSSL_DIR"] = Formula["openssl@3"].opt_prefix
ENV["OPENSSL_NO_VENDOR"] = "1"

system "cargo", "install", *std_cargo_args
end

test do
(testpath/"test.pl").write <<~EOS
test :-
write('Hello from Scryer Prolog').
EOS

assert_equal "Hello from Scryer Prolog", shell_output("#{bin}/scryer-prolog -g 'test,halt' #{testpath}/test.pl")
end
end
Loading