homebrew-core/Formula/pacvim.rb

39 lines
2.0 KiB
Ruby

class Pacvim < Formula
desc "Learn vim commands via a game"
homepage "https://github.com/jmoon018/PacVim"
url "https://github.com/jmoon018/PacVim/archive/v1.1.1.tar.gz"
sha256 "c869c5450fbafdfe8ba8a8a9bba3718775926f276f0552052dcfa090d21acb28"
license "LGPL-3.0-or-later"
head "https://github.com/jmoon018/PacVim.git", branch: "master"
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_ventura: "49f67bf7c8bd084178d6574b3871ba35f9f2b960382af02317c28ecf203a9210"
sha256 cellar: :any_skip_relocation, arm64_monterey: "802d9f2831e1cc5fc3e4eede8440f63596b642aead5ceffabbc612495555261f"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "b690b089d153174f596700e750e133228e05949b3c4d01c993d93b862b102dc0"
sha256 cellar: :any_skip_relocation, ventura: "42dfa466a32d36eee64a2e949b7a8aa2d5b6316b7cb4e369511e0763d21f8934"
sha256 cellar: :any_skip_relocation, monterey: "a9a92c82a3202ee0d64140220bcbe511ec5a0a462b1bf75b84bba05b26214844"
sha256 cellar: :any_skip_relocation, big_sur: "52a18b2f8a5a6e9ab6f2c31c08432c44c3f00183e18c80154a5c6f8daa069160"
sha256 cellar: :any_skip_relocation, catalina: "85bd0087ecc54716772881e46ce00553ee037eb2ea200d34d5db28709092369f"
sha256 cellar: :any_skip_relocation, mojave: "e2ecd6cc1337adb4c9e760c50a83ae04a8cb86495d3c1ea167bfa5930d7a16a0"
sha256 cellar: :any_skip_relocation, high_sierra: "b8ef8cdba34802db97fba770e013393973e908e11486b87a4f5189f139e468dc"
sha256 cellar: :any_skip_relocation, x86_64_linux: "3abc4ac74d298cd3feb45f1a48f7b5f34d099805ae541f1c4bd57ff8e7a485a8"
end
uses_from_macos "ncurses"
# Use ncurses.h instead of cursesw.h which is not installed by brew
# https://github.com/jmoon018/PacVim/pull/31
patch do
on_linux do
url "https://github.com/jmoon018/PacVim/commit/2f95ef4d312d760b8a3aae463e959646b27e774a.patch?full_index=1"
sha256 "e5b753de87937c0853a1adbab31eb1ec938add4ceb0df26eafef5b4f613bc3e6"
end
end
def install
ENV.cxx11
system "make", "install", "PREFIX=#{prefix}"
end
end