Skip to content

Instantly share code, notes, and snippets.

@xyb
Created July 7, 2016 03:21
Show Gist options
  • Save xyb/14903fc27be359087d444d229c6f5af3 to your computer and use it in GitHub Desktop.
Save xyb/14903fc27be359087d444d229c6f5af3 to your computer and use it in GitHub Desktop.
Install twister the p2p microblogging software on mac osx using homebrew
require 'formula'
class Twister < Formula
desc "twister is an experimental peer-to-peer microblogging software."
homepage "http://www.twister.net.co/"
url "https://github.com/miguelfreitas/twister-core/archive/v0.9.34.tar.gz"
sha256 "b250508c7d1c72d1d0dcb2377f65199d1af27e3da9a0f4b4277d818304b101bf"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "boost" => :build
depends_on "berkeley-db4"
depends_on "libtool"
depends_on "miniupnpc"
depends_on "openssl"
def install
system "./autotool.sh"
system "./configure", "--enable-logging",
"--with-openssl=/usr/local/opt/openssl",
"--with-libdb=/usr/local/opt/berkeley-db4",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system "twisterd --help"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment