2010-06-02 14:07:48 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Cdrtools < Formula
|
|
|
|
homepage 'http://cdrecord.berlios.de/private/cdrecord.html'
|
2012-12-18 05:24:22 +00:00
|
|
|
url 'ftp://ftp.berlios.de/pub/cdrecord/cdrtools-3.00.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '2cd7d1725e0da2267b7a033cc744295d6e2bc6b9'
|
2010-06-02 14:07:48 +00:00
|
|
|
|
2013-01-01 21:38:25 +00:00
|
|
|
depends_on 'smake' => :build
|
|
|
|
|
2013-01-01 21:46:56 +00:00
|
|
|
conflicts_with 'dvdrtools',
|
|
|
|
:because => 'both dvdrtools and cdrtools install binaries by the same name'
|
|
|
|
|
2010-06-02 14:07:48 +00:00
|
|
|
def install
|
2013-01-01 21:38:25 +00:00
|
|
|
system "smake", "INS_BASE=#{prefix}", "INS_RBASE=#{prefix}", "install"
|
2013-01-01 21:39:38 +00:00
|
|
|
# cdrtools tries to install some generic smake headers, libraries and
|
|
|
|
# manpages, which conflict with the copies installed by smake itself
|
2013-01-04 21:03:38 +00:00
|
|
|
(include/"schily").rmtree
|
|
|
|
%w[libschily.a libdeflt.a libfind.a].each do |file|
|
|
|
|
(lib/file).unlink
|
|
|
|
end
|
2013-01-01 21:39:38 +00:00
|
|
|
(lib/"profiled").rmtree
|
|
|
|
man5.rmtree
|
2010-06-02 14:07:48 +00:00
|
|
|
end
|
|
|
|
end
|