aboutsummaryrefslogtreecommitdiff
path: root/Formula/planr.rb
blob: 6d921390a25095c3b9e0ee2306512753d0d81496 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Planr < Formula
  desc "An open-source, disturbed code grading tool for the classroom"
  homepage "https://www.git.furkistan.com/planr/about/"
  url "https://www.git.furkistan.com/planr/snapshot/planr-0.1.5.tar.xz"
  version "0.1.5"
  sha256 "cccd91751cd0b6ac8313e806ee19a55d57fdc75f38e8445cfbc104e0455357d7"
  license "GPL-2.0-only"

  depends_on "go" => :build
  depends_on "cmake"
  depends_on "make"

  def install
    system "make"
    bin.install "./planr"
  end

  test do
    # Do something more substantial once test configuration is more modular
    assert_equal "0.1.5", shell_output("#{bin}/planr version").strip
  end
end