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

Install Slash via Homebrew #28

Open
beakr opened this issue Oct 27, 2013 · 9 comments
Open

Install Slash via Homebrew #28

beakr opened this issue Oct 27, 2013 · 9 comments

Comments

@beakr
Copy link

beakr commented Oct 27, 2013

You could easily make Slash installable via Homebrew using a script like this:

require 'formula'

class Slash < Formula
  homepage 'http://slash-lang.org'
  url 'DOWNLOAD_LINK'
  mirror 'DOWNLOAD MIRROR'
  sha1 'SHA1 HASH' # or md5

  DEPS = ['gmp', 'pcre', 'libgcrypt', 'yajl', 'discount']
  DEPS.each do |dep|
    depend_on dep
  end

  def install
    system "./configure --prefix=#{prefix}"
    system 'make && make install'
  end
end
@haileys
Copy link
Contributor

haileys commented Oct 27, 2013

Cool! Would it work if I stuck the formula file somewhere like pkg/slash.rb and had users run brew install pkg/slash.rb?

@beakr
Copy link
Author

beakr commented Oct 27, 2013

@charliesome It would if you used brew install https://raw.github.com/slash-lang/slash/master/pkg/slash.rb. You could submit a pull request to mxcl/homebrew if you want it in the official homebrew repo.

@twe4ked
Copy link

twe4ked commented Oct 27, 2013

Homebrew don't like maintainers submitting their own software to the homebrew repo.

@haileys
Copy link
Contributor

haileys commented Oct 27, 2013

In any case I think I'd like to release a proper version before anyone submits this to Homebrew proper.

@beakr
Copy link
Author

beakr commented Oct 29, 2013

@twe4ked I thought it was the opposite?

@charliesome Yeah, just throwing out a script that I think may be a useful consideration

Side note for Homebrew formula:

Remember you can add methods for options like --apache for automatic webserver configuration.

@parkr
Copy link

parkr commented Oct 29, 2013

For now, this would need to be a devel block.

@twe4ked
Copy link

twe4ked commented Oct 29, 2013

@beaker I thought so based on this comment but that was a while ago.

@beakr
Copy link
Author

beakr commented Oct 30, 2013

@twe4ked ah, never knew that before. Then again, you can always host a fork, the script, or have something you could tap into.

@dholdren
Copy link

if you create a repo at github.com/slash-lang/homebrew-slash and add the contents of the formula above to a file named slash.rb at the root, then end users could do:
brew tap slash-lang/slash (follows the naming convention, one time operation)
brew install slash

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

5 participants