aboutsummaryrefslogtreecommitdiff
path: root/Formula/planr.rb
blob: 08b773e61e63f3696b8f9c120bd69b119b97e4ac (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.flu0r1ne.net/planr/about/"
  url "https://git.flu0r1ne.net/planr/snapshot/planr-0.0.3.tar.xz"
  version "0.0.3"
  sha256 "2970c38b38cdc73e8232cf1b909a407dc07c4f5d7b20c29c5e8e3488c1ede889"
  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.0.3", shell_output("#{bin}/planr version").strip
  end
end