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

Formula for installation via homebrew #16

Open
magicmark opened this issue Jan 17, 2017 · 3 comments
Open

Formula for installation via homebrew #16

magicmark opened this issue Jan 17, 2017 · 3 comments

Comments

@magicmark
Copy link

Would be nice to brew install aactivator

Here is a working forumla for doing so:

class Aactivator < Formula
  desc "Automatically source and unsource a project's environment"
  homepage "https://github.com/Yelp/aactivator"
  url "https://github.com/Yelp/aactivator/archive/v1.0.0.tar.gz"
  sha256 "395430f9dbabd2644a030d534761899165e2d5c8cb5aa71bf620808543cdfb02"

  include Language::Python::Virtualenv
  depends_on :python if MacOS.version <= :snow_leopard

  def install
    virtualenv_install_with_resources
  end

  def caveats; <<-EOS.undent
    To add aactivator to your shell, add the following line to your .bashrc or .zshrc:

       eval "$(aactivator init)"

    More information: https://github.com/Yelp/aactivator
    EOS
  end

  test do
    assert_match "aactivator", shell_output("#{bin}/aactivator -h")
  end
end

Does anyone have any objections to me submitting this to homebrew?

@magicmark magicmark changed the title Forumla for homebrew Forumla for installation via homebrew Jan 17, 2017
@magicmark magicmark changed the title Forumla for installation via homebrew Formula for installation via homebrew Jan 17, 2017
@magicmark
Copy link
Author

oops looks like we need more github stars first

@asottile
Copy link
Collaborator

womp

@asottile asottile reopened this Jan 17, 2017
@bukzor
Copy link
Contributor

bukzor commented Nov 3, 2019

Can we try again, now?

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

3 participants