2012-01-01 14:19:07 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Lastfmlib < Formula
|
|
|
|
homepage 'http://code.google.com/p/lastfmlib/'
|
2013-01-29 05:32:43 +00:00
|
|
|
url 'http://lastfmlib.googlecode.com/files/lastfmlib-0.4.0.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'b9e15e4eb42a9ccd9b3c5373054b0bd51a406fdd'
|
2012-01-01 14:19:07 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
|
2012-06-15 00:01:17 +00:00
|
|
|
fails_with :clang do
|
|
|
|
cause <<-EOS.undent
|
|
|
|
lastfmlib/utils/stringoperations.h:62:16: error: no viable conversion from
|
|
|
|
'__string_type' (aka 'basic_string<wchar_t, std::char_traits<wchar_t>,
|
|
|
|
std::allocator<wchar_t> >') to 'std::string' (aka 'basic_string<char>')
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2012-01-01 14:19:07 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|