Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ucblogo brew recipe #121

Open
jrincayc opened this issue Dec 29, 2021 · 1 comment
Open

Add ucblogo brew recipe #121

jrincayc opened this issue Dec 29, 2021 · 1 comment

Comments

@jrincayc
Copy link
Owner

It would be useful if people using brew ( https://brew.sh/ ) could install ucblogo with brew.
As in get a recipe added to brew so that:

brew install ucblogo

worked

@jrincayc
Copy link
Owner Author

jrincayc commented Jan 18, 2023

Start of formula:

class Ucblogo < Formula
  desc "Berkeley Logo interpreter"
  homepage "https://people.eecs.berkeley.edu/~bh/logo.html"
  url "https://github.com/jrincayc/ucblogo-code/releases/download/version_6.2.3/ucblogo-6.2.3.tar.gz"
  sha256 "73c83dcd2c817359f8f7dc6307601e511526d4c2ab645c5318d4dab6017619a5"
  license "GPL-3.0-or-later"

  # depends_on "cmake" => :build
  depends_on "wxwidgets"

  def install
    # ENV.deparallelize  # if your formula fails when building in parallel
    # Remove unrecognized options if warned by configure
    # https://rubydoc.brew.sh/Formula.html#std_configure_args-instance_method
    system "./configure", *std_configure_args, "--disable-silent-rules", "--with-wx-config=wx-config"
    system "make", "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 ucblogo`. 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 "false"
  end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant