2010-06-02 14:07:48 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Cdrtools < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "ISO 9660 file system and CD creation tools"
|
2014-06-28 19:01:13 +00:00
|
|
|
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"
|
|
|
|
sha1 "6464844d6b936d4f43ee98a04d637cd91131de4e"
|
|
|
|
|
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/104091/trunk/dports/sysutils/cdrtools/files/patch-include_schily_sha2.h"
|
|
|
|
sha1 "6c2c06b7546face6dd58c3fb39484b9120e3e1ca"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-03-29 19:51:45 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "497614205a68d26bcbefce88c37cbebd9e573202" => :yosemite
|
|
|
|
sha1 "d5041283713c290cad78f426a277d376a9e90c49" => :mavericks
|
|
|
|
sha1 "434f1296db4fb7c082bed1ba25600322c8f31c78" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-06-29 15:08:21 +00:00
|
|
|
devel do
|
2015-03-25 21:36:48 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/cdrtools/alpha/cdrtools-3.01a28.tar.bz2"
|
|
|
|
sha1 "081b1daa9c86f33483213a8d8d0fd75caec51ead"
|
2014-06-29 15:08:21 +00:00
|
|
|
|
|
|
|
patch :p0, :DATA
|
|
|
|
end
|
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
|
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
|
2014-06-29 15:08:21 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
--- include/schily/sha2.h.orig 2010-08-27 10:41:30.000000000 +0000
|
|
|
|
+++ include/schily/sha2.h
|
|
|
|
@@ -104,10 +104,12 @@
|
|
|
|
|
|
|
|
#ifdef HAVE_LONGLONG
|
|
|
|
extern void SHA384Init __PR((SHA2_CTX *));
|
|
|
|
+#ifndef HAVE_PRAGMA_WEAK
|
|
|
|
extern void SHA384Transform __PR((UInt64_t state[8],
|
|
|
|
const UInt8_t [SHA384_BLOCK_LENGTH]));
|
|
|
|
extern void SHA384Update __PR((SHA2_CTX *, const UInt8_t *, size_t));
|
|
|
|
extern void SHA384Pad __PR((SHA2_CTX *));
|
|
|
|
+#endif
|
|
|
|
extern void SHA384Final __PR((UInt8_t [SHA384_DIGEST_LENGTH],
|
|
|
|
SHA2_CTX *));
|
|
|
|
extern char *SHA384End __PR((SHA2_CTX *, char *));
|