Skip to content

Commit 586dbab

Browse files
committed
Added Homebrew formula and instructions
1 parent 0e541de commit 586dbab

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ msgpack-tools is available in the [AUR](https://aur.archlinux.org/packages/msgpa
6363

6464
yaourt -S msgpack-tools
6565

66+
### OS X
67+
68+
A Homebrew formula for msgpack-tools is [included](https://github.com/ludocode/msgpack-tools/blob/master/tools/msgpack-tools.rb) in the repository. This requires [Homebrew](http://brew.sh/).
69+
70+
brew install https://raw.githubusercontent.com/ludocode/msgpack-tools/master/tools/msgpack-tools.rb
71+
6672
### Other
6773

6874
For other platforms, msgpack-tools currently must be built from source. The latest version of the msgpack-tools source archive should be downloaded from the releases page. This includes the library dependencies and has pre-generated man pages:

tools/msgpack-tools.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Homebrew formula for msgpack-tools
2+
# Maintainer: Nicholas Fraser <[email protected]>
3+
class MsgpackTools < Formula
4+
desc "Command-line tools for converting between MessagePack and JSON"
5+
homepage "https://github.com/ludocode/msgpack-tools"
6+
url "https://github.com/ludocode/msgpack-tools/releases/download/v0.4/msgpack-tools-0.4.tar.gz"
7+
version "0.4"
8+
sha256 "6ca77477ed47ccf4ac882ace3ee5f33a7bc7b929d12c5f10fa0c8fb5874fbc10"
9+
10+
depends_on "cmake" => :build
11+
12+
def install
13+
system "./configure", "--prefix=#{prefix}"
14+
system "make", "install"
15+
end
16+
end

0 commit comments

Comments
 (0)