2010-06-02 14:07:48 +00:00
|
|
|
class Cdrtools < Formula
|
2015-07-13 18:40:49 +00:00
|
|
|
desc "CD/DVD/Blu-ray premastering and recording software"
|
|
|
|
homepage "http://cdrecord.org/"
|
2014-06-29 15:08:21 +00:00
|
|
|
|
|
|
|
stable do
|
|
|
|
url "https://downloads.sourceforge.net/project/cdrtools/cdrtools-3.00.tar.bz2"
|
2015-07-13 18:40:49 +00:00
|
|
|
sha256 "7f9cb64820055573b880f77b2f16662a512518336ba95ab49228a1617973423d"
|
2014-06-29 15:08:21 +00:00
|
|
|
|
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/104091/trunk/dports/sysutils/cdrtools/files/patch-include_schily_sha2.h"
|
2015-07-13 18:40:49 +00:00
|
|
|
sha256 "59a62420138c54fbea6eaa10a11f69488bb3fecf4f954fda47a3b1e424671d61"
|
2014-06-29 15:08:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-03-29 19:51:45 +00:00
|
|
|
bottle do
|
2015-08-08 02:29:21 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "c5961aaef116ae0dd425197550ae59c91f16da2552992de6c44331685dea58b6" => :yosemite
|
|
|
|
sha256 "6dad15e2cfc911cda652271f764b830fe913affc85c1e92407006141594ac267" => :mavericks
|
|
|
|
sha256 "ab6ca1d2649635c76c83343eba34fe89b3720613cdeee5cf2ee82789c6fa0687" => :mountain_lion
|
2015-03-29 19:51:45 +00:00
|
|
|
end
|
|
|
|
|
2014-06-29 15:08:21 +00:00
|
|
|
devel do
|
2015-08-07 19:37:36 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/cdrtools/alpha/cdrtools-3.01a31.tar.bz2"
|
|
|
|
sha256 "183b5c12777779e78d8b69461aae52401f863768e7e7391d60730006f8cadc5a"
|
2014-06-29 15:08:21 +00:00
|
|
|
end
|
2010-06-02 14:07:48 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "smake" => :build
|
2013-01-01 21:38:25 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
conflicts_with "dvdrtools",
|
|
|
|
:because => "both dvdrtools and cdrtools install binaries by the same name"
|
2013-01-01 21:46:56 +00:00
|
|
|
|
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
|
2015-01-03 17:44:39 +00:00
|
|
|
|
|
|
|
test do
|
2015-01-04 10:52:10 +00:00
|
|
|
system "#{bin}/cdrecord", "-version"
|
2015-03-29 19:51:45 +00:00
|
|
|
system "#{bin}/cdda2wav", "-version"
|
|
|
|
(testpath/"testfile.txt").write("testing mkisofs")
|
|
|
|
system "#{bin}/mkisofs", "-r", "-o", "test.iso", "testfile.txt"
|
|
|
|
assert (testpath/"test.iso").exist?
|
2015-01-03 17:44:39 +00:00
|
|
|
end
|
2010-06-02 14:07:48 +00:00
|
|
|
end
|