2010-08-28 20:14:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cdparanoia < Formula
|
2010-08-28 20:14:15 +00:00
|
|
|
homepage 'http://www.xiph.org/paranoia/'
|
2012-07-07 18:08:22 +00:00
|
|
|
url 'http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-10.2.src.tgz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '1901e20d3a370ca6afa4c76a9ef30d3f03044320'
|
2010-08-28 20:14:15 +00:00
|
|
|
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :autoconf
|
2012-05-15 21:17:32 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2326
|
|
|
|
cause '"File too small" error while linking'
|
|
|
|
end
|
|
|
|
|
2010-08-28 20:14:15 +00:00
|
|
|
def patches
|
|
|
|
[
|
2012-01-23 01:09:28 +00:00
|
|
|
"https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch",
|
|
|
|
"https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/patch-paranoia_paranoia.c.10.4.diff"
|
2010-08-28 20:14:15 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "autoconf"
|
2011-08-26 14:39:51 +00:00
|
|
|
# Libs are installed as keg-only because most software that searches for cdparanoia
|
|
|
|
# will fail to link against it cleanly due to our patches
|
2013-11-14 22:07:33 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
2012-07-07 18:08:22 +00:00
|
|
|
"--mandir=#{man}",
|
|
|
|
"--libdir=#{libexec}"
|
2010-08-28 20:14:15 +00:00
|
|
|
system "make all"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|