fc0f18713c
caudec is a BASH script that transcodes audio files from one format (codec) to another. It leverages multi-core CPUs with lots of RAM by using a ramdisk, and running multiple processes concurrently (one per file and per codec). Closes Homebrew/homebrew#19248. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
43 lines
1.2 KiB
Ruby
43 lines
1.2 KiB
Ruby
require 'formula'
|
|
|
|
class Caudec < Formula
|
|
homepage 'http://caudec.outpost.fr/'
|
|
url 'http://caudec.outpost.fr/downloads/caudec-1.6.4.tar.gz'
|
|
sha1 '4c4ad207e86c8f8bf15545bab1c434525cd79f7d'
|
|
|
|
depends_on 'gnu-sed'
|
|
depends_on 'shntool'
|
|
depends_on 'aacgain' => :optional
|
|
depends_on 'alac' => :optional
|
|
depends_on 'cksfv' => :optional
|
|
depends_on 'eye-d3' => :optional
|
|
depends_on 'flac' => :optional
|
|
depends_on 'flake' => :optional
|
|
depends_on 'ffmpeg' => :optional
|
|
depends_on 'gnutls' => :optional
|
|
depends_on 'lame' => :optional
|
|
depends_on 'mp3gain' => :optional
|
|
depends_on 'musepack' => :optional
|
|
depends_on 'opus' => :optional
|
|
depends_on 'sox' => :optional
|
|
depends_on 'wavpack' => :optional
|
|
depends_on 'wget' => :optional
|
|
depends_on 'vorbisgain' => :optional
|
|
depends_on 'vorbis-tools' => :optional
|
|
|
|
def install
|
|
bin.install 'caudec'
|
|
(bin/'decaude').make_symlink bin/'caudec'
|
|
etc.install 'caudecrc'
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
You can find an up-to-date caudecrc file in
|
|
#{HOMEBREW_PREFIX}/etc
|
|
|
|
Copy it to ~/.caudecrc ('.caudecrc' in your home directory),
|
|
or update your existing copy as needed.
|
|
|
|
EOS
|
|
end
|
|
end
|