homebrew-core/Formula/lastfmfpclient.rb
Andrew Janke c8d2d41c1d Change github /tarball/ URLs to /archive/ for formulae L-Z
This takes care of a `brew audit` complaint.

Closes Homebrew/homebrew#18828.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-29 14:59:28 -07:00

30 lines
912 B
Ruby

require 'formula'
class Lastfmfpclient < Formula
homepage 'https://github.com/lastfm/Fingerprinter'
url 'https://github.com/lastfm/Fingerprinter/archive/9ee83a51ac9058ff53c9.tar.gz'
version '1.6'
sha1 '79f6a7b8db33cb4f417d5ba9ef06884e5be1fa80'
depends_on 'cmake' => :build
depends_on 'taglib'
depends_on 'fftw'
depends_on 'mad'
depends_on 'libsamplerate'
def inreplace_fix
# This project was made on Windows (LOL), patches against Windows
# line-endings fail for some reason, so we will inreplace instead.
# Fixes compile with clang failure due to entirely missing variable, how
# the fuck did GCC ever compile this?!
inreplace 'fplib/src/FloatingAverage.h',
'for ( int i = 0; i < size; ++i )',
'for ( int i = 0; i < m_values.size(); ++i )'
end
def install
inreplace_fix
system "cmake", ".", *std_cmake_args
system "make install"
end
end