homebrew-core/Formula/cdrtools.rb
Misty De Meo 81caa16cd4 cdrtools: remove additional smake files
It turns out that *all* of the includes installed by cdrtools are
generic smake includes, and will clash with other software installed by
the same author if not removed. Additionally, some (but not all) of its
libs appear to be generic smake libs and are also installed by star.
2013-01-04 17:23:47 -04:00

24 lines
771 B
Ruby

require 'formula'
class Cdrtools < Formula
homepage 'http://cdrecord.berlios.de/private/cdrecord.html'
url 'ftp://ftp.berlios.de/pub/cdrecord/cdrtools-3.00.tar.gz'
sha1 '2cd7d1725e0da2267b7a033cc744295d6e2bc6b9'
depends_on 'smake' => :build
conflicts_with 'dvdrtools',
:because => 'both dvdrtools and cdrtools install binaries by the same name'
def install
system "smake", "INS_BASE=#{prefix}", "INS_RBASE=#{prefix}", "install"
# cdrtools tries to install some generic smake headers, libraries and
# manpages, which conflict with the copies installed by smake itself
(include/"schily").rmtree
%w[libschily.a libdeflt.a libfind.a].each do |file|
(lib/file).unlink
end
(lib/"profiled").rmtree
man5.rmtree
end
end