Skip to content
This repository
Browse code

Break long lines

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
commit e459d51d0ba4c98d6825f0a8072b229775979ddd 1 parent 404a8cd
Jack Nagel authored May 15, 2012
8  Library/Formula/appledoc.rb
@@ -7,7 +7,13 @@ class Appledoc < Formula
7 7
   md5 '142cf80513ca8eda2aba631483b2e4e6'
8 8
 
9 9
   def install
10  
-    system "xcodebuild", "-project", "appledoc.xcodeproj", "-target", "appledoc", "-configuration", "Release", "install", "SYMROOT=build", "DSTROOT=build", "INSTALL_PATH=/bin"
  10
+    system "xcodebuild", "-project", "appledoc.xcodeproj",
  11
+                         "-target", "appledoc",
  12
+                         "-configuration", "Release",
  13
+                         "install",
  14
+                         "SYMROOT=build",
  15
+                         "DSTROOT=build",
  16
+                         "INSTALL_PATH=/bin"
11 17
     bin.install "build/bin/appledoc"
12 18
     prefix.install "Templates/"
13 19
   end
15  Library/Formula/grads.rb
@@ -11,18 +11,19 @@ class Grads < Formula
11 11
   md5 '3c94e4e2f840a323df24df5264e159ff'
12 12
 
13 13
   def install
14  
-    bin.install ['bin/bufrscan', 'bin/grads', 'bin/grib2scan', 'bin/gribmap', 'bin/gribscan', 'bin/gxeps', 'bin/gxps', 'bin/gxtran', 'bin/stnmap', 'bin/wgrib']
  14
+    rm 'bin/INSTALL'
  15
+    prefix.install 'bin/COPYRIGHT'
  16
+    prefix.install 'bin'
15 17
 
16 18
     # Install the required supplementary files
17 19
     GradsSupplementary.new.brew{ (lib+'grads').install Dir['*'] }
18 20
   end
19 21
 
20  
-  if HOMEBREW_PREFIX.to_s != '/usr/local'
21  
-    def caveats
22  
-      <<-EOS.undent
23  
-        In order to use the GrADS tools, you will need to set the GADDIR
24  
-        environment variable to:
25  
-          #{HOMEBREW_PREFIX}/lib/grads
  22
+  def caveats
  23
+    if HOMEBREW_PREFIX.to_s != '/usr/local' then <<-EOS.undent
  24
+      In order to use the GrADS tools, you will need to set the GADDIR
  25
+      environment variable to:
  26
+        #{HOMEBREW_PREFIX}/lib/grads
26 27
       EOS
27 28
     end
28 29
   end
7  Library/Formula/gwenhywfar.rb
@@ -12,8 +12,11 @@ class Gwenhywfar < Formula
12 12
 
13 13
   def options
14 14
     [[
15  
-      "--with-gui=XX,...",
16  
-      "Install gui support XX where XX is the name of the gui toolkit\n\te.g.: --with-gui=gtk\n\tAvailable gui toolkits are: qt, gtk"
  15
+      "--with-gui=XX,...", <<-EOS.undent
  16
+        Install gui support XX where XX is the name of the gui toolkit
  17
+        \te.g.: --with-gui=gtk
  18
+        \tAvailable gui toolkits are: qt, gtk"
  19
+        EOS
17 20
     ]]
18 21
   end
19 22
 
7  Library/Formula/pyside.rb
@@ -24,7 +24,12 @@ def install
24 24
     ENV.append_to_cflags "-F#{qt.prefix}/Frameworks"
25 25
 
26 26
     # Also need `ALTERNATIVE_QT_INCLUDE_DIR` to prevent "missing file" errors.
27  
-    system "cmake #{std_cmake_parameters} -DALTERNATIVE_QT_INCLUDE_DIR='#{qt.prefix}/Frameworks' -DSITE_PACKAGE=#{site_package_dir} -DBUILD_TESTS=NO ."
  27
+    args = std_cmake_parameters.split + %W[
  28
+      -DALTERNATIVE_QT_INCLUDE_DIR=#{qt.prefix}/Frameworks
  29
+      -DSITE_PACKAGE=#{site_package_dir}
  30
+      -DBUILD_TESTS=NO
  31
+      .]
  32
+    system "cmake", *args
28 33
     system 'make install'
29 34
   end
30 35
 
3  Library/Formula/rtorrent.rb
@@ -21,7 +21,8 @@ def install
21 21
     args << "--with-xmlrpc-c" if Formula.factory("xmlrpc-c").installed?
22 22
     if MacOS.leopard?
23 23
       inreplace 'configure' do |s|
24  
-        s.gsub! '  pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.15.4" 2>/dev/null`', '  pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.15.4" | sed -e "s/-arch [^-]*/-arch $(uname -m) /" 2>/dev/null`'
  24
+        s.gsub! '  pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.15.4" 2>/dev/null`',
  25
+          '  pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.15.4" | sed -e "s/-arch [^-]*/-arch $(uname -m) /" 2>/dev/null`'
25 26
       end
26 27
     end
27 28
     system "./configure", *args
6  Library/Formula/sqlite.rb
@@ -49,7 +49,11 @@ def install
49 49
 
50 50
     if ARGV.include? "--with-functions"
51 51
       SqliteFunctions.new.brew { mv 'extension-functions.c?get=25', buildpath/'extension-functions.c' }
52  
-      system ENV.cc, "-fno-common", "-dynamiclib", "extension-functions.c", "-o", "libsqlitefunctions.dylib", *ENV.cflags.split
  52
+      system ENV.cc, "-fno-common",
  53
+                     "-dynamiclib",
  54
+                     "extension-functions.c",
  55
+                     "-o", "libsqlitefunctions.dylib",
  56
+                     *ENV.cflags.split
53 57
       lib.install "libsqlitefunctions.dylib"
54 58
     end
55 59
 
3  Library/Formula/transcode.rb
@@ -18,7 +18,8 @@ class Transcode < Formula
18 18
   depends_on 'libquicktime'
19 19
 
20 20
   def install
21  
-    args = ["--disable-debug", "--disable-dependency-tracking",
  21
+    args = ["--disable-debug",
  22
+            "--disable-dependency-tracking",
22 23
             "--prefix=#{prefix}",
23 24
             "--enable-a52",
24 25
             "--enable-faac",
14  Library/Formula/yarp.rb
@@ -16,7 +16,19 @@ class Yarp < Formula
16 16
   depends_on 'jpeg'
17 17
 
18 18
   def install
19  
-    system "cmake #{std_cmake_parameters} -DCREATE_LIB_MATH=TRUE -DCREATE_GUIS=TRUE -DCREATE_YMANAGER=TRUE -DYARP_USE_SYSTEM_SQLITE=TRUE -DCREATE_OPTIONAL_CARRIERS=TRUE -DENABLE_yarpcar_mjpeg_carrier=TRUE -DENABLE_yarpcar_rossrv_carrier=TRUE -DENABLE_yarpcar_tcpros_carrier=TRUE -DENABLE_yarpcar_xmlrpc_carrier=TRUE ."
  19
+    args = std_cmake_parameters.split + %W[
  20
+      -DCREATE_LIB_MATH=TRUE
  21
+      -DCREATE_GUIS=TRUE
  22
+      -DCREATE_YMANAGER=TRUE
  23
+      -DYARP_USE_SYSTEM_SQLITE=TRUE
  24
+      -DCREATE_OPTIONAL_CARRIERS=TRUE
  25
+      -DENABLE_yarpcar_mjpeg_carrier=TRUE
  26
+      -DENABLE_yarpcar_rossrv_carrier=TRUE
  27
+      -DENABLE_yarpcar_tcpros_carrier=TRUE
  28
+      -DENABLE_yarpcar_xmlrpc_carrier=TRUE
  29
+      .]
  30
+
  31
+    system "cmake", *args
20 32
     system "make install"
21 33
   end
22 34
 end

0 notes on commit e459d51

Please sign in to comment.
Something went wrong with that request. Please try again.