require "formula" class NdnCxx < Formula version "0.2.0" homepage "http://named-data.net/doc/ndn-cxx/" url "https://github.com/named-data/ndn-cxx", :using => :git, :tag => "ndn-cxx-0.2.0" # or :revision => "de222c783b55bd51da7ad3010cbf485deb881fb2" head "https://github.com/named-data/ndn-cxx", :using => :git, :branch => "master" depends_on "boost" depends_on "cryptopp" def install boost = Formula["boost"] cryptopp = Formula["cryptopp"] system "./waf", "configure", "--sysconfdir=#{etc}", "--prefix=#{prefix}", "--with-cryptopp=#{cryptopp.prefix}", "--boost-includes=#{boost.include}", "--boost-libs=#{boost.lib}" system "./waf" system "./waf", "install" end end