homebrew-core/Formula/cdrtools.rb
Misty De Meo 6149d0e884 cdrtools and dvdrtools conflict with each other
These two packages are incompatible forks of each other with the same
binary names.
2013-01-01 17:46:56 -04:00

22 lines
729 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/i386-darwin-cc").rmtree
(lib/"libschily.a").unlink
(lib/"profiled").rmtree
man5.rmtree
end
end