-
Notifications
You must be signed in to change notification settings - Fork 32
Homebrew recipe? #12
Comments
I don't know of any. Actually I don't know what "homebrew recipe" stands for, but it would be great to have one! |
Would also try it out if this is available. Homebrew is a package manager for macOS (think like a mac equivalent of https://docs.brew.sh/Formula-Cookbook You can see the entry for If you're on linux, there is actually a port for homebrew, which works great due to how it lets you build from source when binaries aren't available |
It should be basically the same, just change the names. |
Give a quick go writing a formula, but it seems that brew grabs the upstream of the fork rather than this project.. class Jiq < Formula
desc "Jid on jq"
homepage "https://github.com/fiatjaf/jiq"
url "https://github.com/fiatjaf/jiq/archive/0.6.0.tar.gz"
sha256 "db070dee12bb292e8d79a509f41b1c22a2afe17969c4b5065871b41102888ef2"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV["GO111MODULE"] = "on"
src = buildpath/"src/github.com/fiatjaf/jiq"
src.install buildpath.children
src.cd do
# this will throw as it actually grabbed jid and not jiq
system "go", "build", "-o", bin/"jiq", "cmd/jiq/jiq.go"
prefix.install_metafiles
end
end
test do
assert_match "jiq version v#{version}", shell_output("#{bin}/jiq --version")
end
end |
Bump |
@shhac Can you give your formula another go with the new 0.6.1 release? It looks like the release you were targeting was created all the way back in 2016, presumably before this fork was created. 0.6.1 was created 14 days ago, so it should be good to use. |
Any news on this? |
I'm waiting for someone to do it, because I have no idea of how to do it. Maybe just publishing binaries for MacOS would suffice? EDIT: binaries are already published. |
This is the formula I used based off of @shhac original formula: class Jiq < Formula
desc "Jid on jq"
homepage "https://github.com/fiatjaf/jiq"
url "https://github.com/fiatjaf/jiq.git",
tag: "v0.7.2",
revision: "5dec899436617c8f30cb1526dc76108dc8486cbf"
head "https://github.com/fiatjaf/jiq.git", branch: "master"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV["GO111MODULE"] = "on"
src = buildpath/"src/github.com/fiatjaf/jiq"
src.install buildpath.children
src.cd do
system "go", "build", "-o", bin/"jiq", "cmd/jiq/jiq.go"
prefix.install_metafiles
end
end
test do
assert_match "jiq version v#{version}", shell_output("#{bin}/jiq --version")
end
end If you want the lastest changes on master, run |
Related: Homebrew/homebrew-core#70434 |
Just wanted to ask if there is already a homebrew recipe for installing jiq on Mac OS X. If not I would give it a try...
The text was updated successfully, but these errors were encountered: