Advertisement
hu6

ncmpcpp.rb

hu6
Jan 4th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.27 KB | None | 0 0
  1. require 'formula'
  2.  
  3. class Ncmpcpp < Formula
  4.   homepage 'http://ncmpcpp.rybczak.net/'
  5.   url 'http://ncmpcpp.rybczak.net/stable/ncmpcpp-0.5.10.tar.bz2'
  6.   sha1 '5e34733e7fbaf2862f04fdf8af8195ce860a9014'
  7.  
  8.   head do
  9.     url 'git://repo.or.cz/ncmpcpp.git'
  10.  
  11.     depends_on :autoconf
  12.     depends_on :automake
  13.     depends_on :libtool
  14.     depends_on 'boost' # not needed by stable
  15.   end
  16.  
  17.   depends_on 'pkg-config' => :build
  18.   depends_on 'taglib'
  19.   depends_on 'libmpdclient'
  20.   depends_on 'fftw'
  21.  
  22.   fails_with :clang do
  23.     cause "'itsTempString' is a private member of 'NCurses::basic_buffer<char>'"
  24.   end if build.stable?
  25.  
  26.   option 'outputs', 'Compile with mpd outputs control'
  27.   option 'visualizer', 'Compile with built-in visualizer'
  28.   option 'clock', 'Compile with optional clock tab'
  29.  
  30.   def install
  31.     ENV.append 'LDFLAGS', '-liconv'
  32.     args = ["--disable-dependency-tracking",
  33.             "--prefix=#{prefix}",
  34.             "--with-taglib",
  35.             "--with-curl",
  36.             "--enable-unicode",
  37.             "--enable-outputs",
  38.         "--enable-visualizer",
  39.         "--enable-clock"]
  40.  
  41.     if build.head?
  42.       # Also runs configure
  43.       system "./autogen.sh", *args
  44.     else
  45.       system "./configure", *args
  46.     end
  47.     system "make install"
  48.   end
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement