Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 28th, 2012  |  syntax: None  |  size: 1.75 KB  |  views: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. require 'formula'
  2.  
  3. class Moc <Formula
  4.   url 'ftp://ftp.daper.net/pub/soft/moc/stable/moc-2.4.4.tar.bz2'
  5.   homepage 'http://moc.daper.net'
  6.   md5 '647c770a5542a4ae5437386807a89796'
  7.  
  8.         depends_on 'berkeley-db'
  9.         depends_on 'jack'
  10.        
  11.         def patches
  12.                 DATA
  13.         end
  14.  
  15.         def install
  16.                 system "env > testenv"
  17.                 system "./configure", "prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
  18.                 #system "PATH=/bin:/usr/bin; ./configure --prefix=#{prefix} --disable-debug --disable-dependency-tracking"
  19.                 #"PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/opt/local/bin/:/opt/local/sbin:/usr/local/sbin:/opt/local/bin/:/opt/local/sbin:/usr/local/sbin",
  20.     system "make install"
  21.   end
  22. end
  23.  
  24. __END__
  25. diff -ur ../moc-2.4.3.orig/configure ./configure
  26. --- ../moc-2.4.3.orig/configure 2007-07-30 17:49:11.000000000 +0200
  27. +++ ./configure 2008-03-26 19:32:00.000000000 +0100
  28. @@ -21998,7 +21998,7 @@
  29.                 ;;
  30.  esac
  31.  
  32. -LDFLAGS="$LDFLAGS -export-dynamic"
  33. +LDFLAGS="$LDFLAGS ${export_dynamic_flag}"
  34.  
  35.  { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  36.  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  37. diff -ur ../moc-2.4.3.orig/options.c ./options.c
  38. --- ../moc-2.4.3.orig/options.c 2007-05-22 20:24:34.000000000 +0200
  39. +++ ./options.c 2008-03-26 20:02:14.000000000 +0100
  40. @@ -172,8 +172,8 @@
  41.         option_add_int ("SyncPlaylist", 1);
  42.         option_add_int ("InputBuffer", 512);
  43.         option_add_int ("Prebuffering", 64);
  44. -       option_add_str ("JackOutLeft", "alsa_pcm:playback_1");
  45. -       option_add_str ("JackOutRight", "alsa_pcm:playback_2");
  46. +       option_add_str ("JackOutLeft", "system:playback_1");
  47. +       option_add_str ("JackOutRight", "system:playback_2");
  48.         option_add_int ("ASCIILines", 0);
  49.         option_add_str ("FastDir1", NULL);
  50.         option_add_str ("FastDir2", NULL);
clone this paste RAW Paste Data