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

Brew Formula #64

Open
kevinelliott opened this issue Oct 2, 2019 · 1 comment
Open

Brew Formula #64

kevinelliott opened this issue Oct 2, 2019 · 1 comment

Comments

@kevinelliott
Copy link

It would be helpful to be able to install this via Homebrew (as some of the dependencies already are), either as a build, bottle (or both), or a cask.

I've gone ahead and jumpstarted this with the following formula. It would need to be refined and completed, as right now it builds but when you execute EtherTerm at the command line, it fails because of the working directory is where home-brew installs the binary and is not user writable.

class Etherterm < Formula
  desc "EtherTerm is a portable terminal emulator and telnet/ssh client for Windows and Unix."
  homepage "http://m-griffin.github.io/EtherTerm/"
  head "https://github.com/M-griffin/EtherTerm.git"

  depends_on "sdl2" => :build
  depends_on "sdl2_net" => :build
  depends_on "libssh" => :build
  depends_on "yaml-cpp" => :build

  def install
    # ENV.deparallelize  # if your formula fails when building in parallel
    # system "./configure", "--disable-debug",
    #                       "--disable-dependency-tracking",
    #                       "--disable-silent-rules",
    #                       "--prefix=#{prefix}"
    # system "make", "clean-osx"
    Dir.chdir('osx')
    system "make", "-f", "EtherTerm.mk"
    bin.mkpath
    bin.install "./Debug/EtherTerm"
  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 EtherTerm`. 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

Hopefully someone will take this on as I pass the torch to get back to work on other things. Thanks for the app!

@M-griffin
Copy link
Owner

Very cool, thanks for the contribution kevinelliott. I haven't done much work with Homebrew installs but i'll see if I can find sometime to work on that in-between school semesters.

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

2 participants