35 lines
1.4 KiB
Ruby
35 lines
1.4 KiB
Ruby
class GitIf < Formula
|
|
desc "Glulx interpreter that is optimized for speed"
|
|
homepage "https://ifarchive.org/indexes/if-archiveXprogrammingXglulxXinterpretersXgit.html"
|
|
url "https://ifarchive.org/if-archive/programming/glulx/interpreters/git/git-135.zip"
|
|
version "1.3.5"
|
|
sha256 "4bdfae2e1ab085740efddf99d43ded6a044f1f2df274f753737e5f0e402fc4e9"
|
|
head "https://github.com/DavidKinder/Git.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "37dc94c423003dedaf313ffa9343879ecb5d72f277a2f250100481cde240420e" => :mojave
|
|
sha256 "bedbf580c8b073c7dfcd6bbb470aee7c14fb31d2c3ec54b4be8fd2cf8545e577" => :high_sierra
|
|
sha256 "7c09116244a4c04a46337a0453d519523204233fc33d2d60c89c4b9469498380" => :sierra
|
|
sha256 "c38c41e66ca16a1ef9627112980fa49411b870c2438086db35f6dd9053f99850" => :el_capitan
|
|
sha256 "e727f112e350e8a12b87094715800e9c2abc03f2d45ad521c0d78e4c6bfff3ad" => :yosemite
|
|
end
|
|
|
|
depends_on "glktermw" => :build
|
|
|
|
def install
|
|
glk = Formula["glktermw"]
|
|
|
|
inreplace "Makefile", "GLK = cheapglk", "GLK = #{glk.name}"
|
|
inreplace "Makefile", "GLKINCLUDEDIR = ../$(GLK)", "GLKINCLUDEDIR = #{glk.include}"
|
|
inreplace "Makefile", "GLKLIBDIR = ../$(GLK)", "GLKLIBDIR = #{glk.lib}"
|
|
inreplace "Makefile", /^OPTIONS = /, "OPTIONS = -DUSE_MMAP -DUSE_INLINE"
|
|
|
|
system "make"
|
|
bin.install "git" => "git-if"
|
|
end
|
|
|
|
test do
|
|
assert pipe_output("#{bin}/git-if -v").start_with? "GlkTerm, library version"
|
|
end
|
|
end
|