I have added a call to `g++ -dumpversion` which removes the need for a glob.

On 5 Mar 2014, at 23:41, Mike McQuaid <notifications@github.com> wrote:

> In Library/Formula/jsoncpp.rb:
> 
> > @@ -0,0 +1,25 @@
> > +require "formula"
> > +
> > +class Jsoncpp < Formula
> > +  homepage "http://sourceforge.net/projects/jsoncpp/"
> > +  url "https://downloads.sourceforge.net/project/jsoncpp/jsoncpp/0.6.0-rc2/jsoncpp-src-0.6.0-rc2.tar.gz"
> > +  sha1 "a14eb501c44e610b8aaa2962bd1cc1775ed4fde2"
> > +
> > +  depends_on "scons" => :build
> > +
> > +  def install
> > +    scons "platform=linux-gcc" #linux-gcc is correct - despite the fact that the library is built with CLANG
> > +    lib.install Dir["libs/linux-gcc*/libjson*.dylib"] => "libjsoncpp.dylib"
> We can calculate that and/or hardcode it where makes sense. Can you give me an example?
> 
> —
> Reply to this email directly or view it on GitHub.
>