aboutsummaryrefslogtreecommitdiff
path: root/Formula/planr.rb
blob: ef7f135edd0a7a5d2cfe731ec2cf7c5627320ec6 (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://www.git.flu0r1ne.net/planr/snapshot/planr-0.1.0.tar.xz"
  version "0.1.0"
  sha256 "80324885f0974409e3a239396adb4b2430788f7ff61bc45eee1f4b43937b99e2"
  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.0", shell_output("#{bin}/planr version").strip
  end
end