Created
April 26, 2019 19:50
-
-
Save ilyash-b/c3ce2d6f2a48e58545a15c69ec68a57f to your computer and use it in GitHub Desktop.
WIP brew packaging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Ngs < Formula | |
desc "Next Generation Shell" | |
homepage "https://ngs-lang.org" | |
# url "https://github.com/ngs-lang/ngs/archive/v0.2.6.tar.gz" | |
url "https://github.com/ngs-lang/ngs/archive/69d761c84f45072e439e31b8cd70271e0862d406.tar.gz" | |
version "0.2.7-alpha" | |
# sha256 "22b8c371dcb6d55d0ff4f227b66523cdb07a15ff8ede72ff05cc9c478e67f1ca" | |
depends_on "bdw-gc" => :build | |
depends_on "cmake" => :build | |
depends_on "gnu-sed" => :build | |
depends_on "json-c" => :build | |
depends_on "libffi" => :build | |
depends_on "make" => :build | |
depends_on "pandoc" => :build | |
depends_on "peg" => :build | |
depends_on "pkg-config" => :build | |
def install | |
# Brew shims make "cpp" fail while "clang" works | |
inreplace "build-scripts/make-errno-include.sh", /^cpp/, "clang" | |
system "make", "build" # , "install" | |
end | |
test do | |
# `test do` will create, run in and delete a temporary directory. | |
# | |
# This test will fail and we won't accept that! For Homebrew/homebrew-core | |
# this will need to be a test that verifies the functionality of the | |
# software. Run the test with `brew test foo`. Options passed | |
# to `brew install` such as `--HEAD` also need to be provided to `brew test`. | |
# | |
# The installed folder is not in the path, so use the entire path to any | |
# executables being tested: `system "#{bin}/program", "do", "something"`. | |
system "true" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment