aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-02-25 21:05:57 -0800
committerAdam Vandenberg2014-02-26 07:10:22 -0800
commit556783aee7ee56b59f9935506e9760b36862aa10 (patch)
tree7a1f4ff7f05ae2d39486d348209b35348b0011de /Library
parentf11f8fb84fa1725b737eda0045d6875b1dbdac32 (diff)
downloadhomebrew-556783aee7ee56b59f9935506e9760b36862aa10.tar.bz2
mpd: use double quotes and remove single-quote escape
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mpd.rb112
1 files changed, 56 insertions, 56 deletions
diff --git a/Library/Formula/mpd.rb b/Library/Formula/mpd.rb
index 3b8dffa2f..c313c72d6 100644
--- a/Library/Formula/mpd.rb
+++ b/Library/Formula/mpd.rb
@@ -1,64 +1,64 @@
require 'formula'
class Mpd < Formula
- homepage 'http://www.musicpd.org/'
- url 'http://www.musicpd.org/download/mpd/0.17/mpd-0.17.5.tar.bz2'
- sha1 '91e4d8d364a3db02e6f92676dd938880e5bb200a'
-
- head 'git://git.musicpd.org/master/mpd.git'
-
- option 'with-wavpack', 'Build with wavpack support (for .wv files)'
- option 'with-lastfm', 'Build with last-fm support (for experimental Last.fm radio)'
- option 'with-lame', 'Build with lame support (for MP3 encoding when streaming)'
- option 'with-two-lame', 'Build with two-lame support (for MP2 encoding when streaming)'
- option 'with-flac', 'Build with flac support (for Flac encoding when streaming)'
- option 'with-vorbis', 'Build with vorbis support (for Ogg encoding)'
- option 'with-yajl', 'Build with yajl support (for playing from soundcloud)'
+ homepage "http://www.musicpd.org/"
+ url "http://www.musicpd.org/download/mpd/0.17/mpd-0.17.5.tar.bz2"
+ sha1 "91e4d8d364a3db02e6f92676dd938880e5bb200a"
+
+ head "git://git.musicpd.org/master/mpd.git"
+
+ option "with-wavpack", "Build with wavpack support (for .wv files)"
+ option "with-lastfm", "Build with last-fm support (for experimental Last.fm radio)"
+ option "with-lame", "Build with lame support (for MP3 encoding when streaming)"
+ option "with-two-lame", "Build with two-lame support (for MP2 encoding when streaming)"
+ option "with-flac", "Build with flac support (for Flac encoding when streaming)"
+ option "with-vorbis", "Build with vorbis support (for Ogg encoding)"
+ option "with-yajl", "Build with yajl support (for playing from soundcloud)"
if MacOS.version < :lion
- option 'with-libwrap', 'Build with libwrap (TCP Wrappers) support'
+ option "with-libwrap", "Build with libwrap (TCP Wrappers) support"
elsif MacOS.version == :lion
- option 'with-libwrap', 'Build with libwrap (TCP Wrappers) support (buggy)'
+ option "with-libwrap", "Build with libwrap (TCP Wrappers) support (buggy)"
end
- depends_on 'pkg-config' => :build
- depends_on 'glib'
- depends_on 'libid3tag'
- depends_on 'sqlite'
- depends_on 'libsamplerate'
+ depends_on "pkg-config" => :build
+ depends_on "glib"
+ depends_on "libid3tag"
+ depends_on "sqlite"
+ depends_on "libsamplerate"
- depends_on 'ffmpeg' # lots of codecs
+ depends_on "ffmpeg" # lots of codecs
# mpd also supports mad, mpg123, libsndfile, and audiofile, but those are
# redundant with ffmpeg
- depends_on 'fluid-synth' # MIDI
- depends_on 'faad2' # MP4/AAC
- depends_on 'wavpack' => :optional # WavPack
- depends_on 'libshout' => :optional # Streaming (also pulls in Vorbis encoding)
- depends_on 'lame' => :optional # MP3 encoding
- depends_on 'two-lame' => :optional # MP2 encoding
- depends_on 'flac' => :optional # Flac encoding
- depends_on 'jack' => :optional # Output to JACK
- depends_on 'libmms' => :optional # MMS input
- depends_on 'libzzip' => :optional # Reading from within ZIPs
- depends_on 'yajl' => :optional # JSON library for SoundCloud
-
- depends_on 'libvorbis' if build.with? 'vorbis' # Vorbis support
+ depends_on "fluid-synth" # MIDI
+ depends_on "faad2" # MP4/AAC
+ depends_on "wavpack" => :optional # WavPack
+ depends_on "libshout" => :optional # Streaming (also pulls in Vorbis encoding)
+ depends_on "lame" => :optional # MP3 encoding
+ depends_on "two-lame" => :optional # MP2 encoding
+ depends_on "flac" => :optional # Flac encoding
+ depends_on "jack" => :optional # Output to JACK
+ depends_on "libmms" => :optional # MMS input
+ depends_on "libzzip" => :optional # Reading from within ZIPs
+ depends_on "yajl" => :optional # JSON library for SoundCloud
+
+ depends_on "libvorbis" if build.with? "vorbis" # Vorbis support
# Removes usage of deprecated AVCODEC_MAX_AUDIO_FRAME_SIZE constant
# We're many versions behind; this bug has long since been fixed upstream
def patches; DATA; end
def install
- if build.include? 'lastfm' or build.include? 'libwrap' \
- or build.include? 'enable-soundcloud'
- opoo 'You are using an option that has been replaced.'
- opoo 'See this formula\'s caveats for details.'
+ if build.include? "lastfm" or build.include? "libwrap" \
+ or build.include? "enable-soundcloud"
+ opoo "You are using an option that has been replaced."
+ opoo "See this formula's caveats for details."
end
- if build.with? 'libwrap' and MacOS.version > :lion
- opoo 'Ignoring --with-libwrap: TCP Wrappers were removed in OSX 10.8'
+ if build.with? "libwrap" and MacOS.version > :lion
+ opoo "Ignoring --with-libwrap: TCP Wrappers were removed in OSX 10.8"
end
- system './autogen.sh' if build.head?
+ system "./autogen.sh" if build.head?
args = %W[
--disable-debug
@@ -69,21 +69,21 @@ class Mpd < Formula
--enable-fluidsynth
]
- args << '--disable-mad'
- args << '--disable-curl' if MacOS.version <= :leopard
-
- args << "--with-faad=#{Formula.factory('faad2').opt_prefix}"
- args << '--enable-zzip' if build.with? 'libzzip'
- args << '--enable-lastfm' if build.with? 'lastfm'
- args << '--disable-libwrap' if build.without? 'libwrap'
- args << '--disable-lame-encoder' if build.without? 'lame'
- args << '--disable-soundcloud' if build.without? 'yajl'
- args << '--enable-vorbis-encoder' if build.with? 'vorbis'
-
- system './configure', *args
- system 'make'
- ENV.j1 # Directories are created in parallel, so let's not do that
- system 'make install'
+ args << "--disable-mad"
+ args << "--disable-curl" if MacOS.version <= :leopard
+
+ args << "--with-faad=#{Formula.factory("faad2").opt_prefix}"
+ args << "--enable-zzip" if build.with? "libzzip"
+ args << "--enable-lastfm" if build.with? "lastfm"
+ args << "--disable-libwrap" if build.without? "libwrap"
+ args << "--disable-lame-encoder" if build.without? "lame"
+ args << "--disable-soundcloud" if build.without? "yajl"
+ args << "--enable-vorbis-encoder" if build.with? "vorbis"
+
+ system "./configure", *args
+ system "make"
+ ENV.j1 # Directories are created in parallel, so let"s not do that
+ system "make install"
end
def caveats