-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Adds iojs formula meeting requests by @mikemcquaid #36193
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
class Iojs < Formula | ||
homepage "https://iojs.org/" | ||
url "https://iojs.org/dist/v1.0.4/iojs-v1.0.4.tar.xz" | ||
version "1.0.4" | ||
sha1 "6247d3bb544353cf134e0857f4a60e7e04959bd4" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sha256 would be great here, since that's what |
||
|
||
keg_only "`iojs` symlinks conflict with `node` but can be used by prefixing your path" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. prepending your path, perhaps? |
||
|
||
option "with-debug", "Build with debugger hooks" | ||
|
||
depends_on :python => :build | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blank line here needs to be removed. Otherwise, Bot reports all is good.
|
||
def install | ||
args = %W[--prefix=#{prefix} --without-npm] | ||
args << "--debug" if build.with? "debug" | ||
|
||
system "./configure", *args | ||
system "make", "install" | ||
end | ||
|
||
def caveats; <<-EOS.undent | ||
`iojs` was installed without `npm`. | ||
|
||
To intall `npm` and have it use `iojs`, install `node` and add | ||
iojs to the front of your path: | ||
export PATH=#{HOMEBREW_PREFIX}/opt/iojs/bin:$PATH | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Potentially |
||
EOS | ||
end | ||
|
||
test do | ||
path = testpath/"test.js" | ||
path.write "console.log('hello');" | ||
|
||
output = `#{bin}/iojs #{path}`.strip | ||
assert_equal "hello", output | ||
assert_equal 0, $?.exitstatus | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be redundant from the
url
. If it is, it should show up underbrew audit
.