Skip to content

Instantly share code, notes, and snippets.

@llacroix
Created September 23, 2012 16:36
Show Gist options
  • Save llacroix/3772241 to your computer and use it in GitHub Desktop.
Save llacroix/3772241 to your computer and use it in GitHub Desktop.
Brew xmms2 formula
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Xmms2 < Formula
homepage 'http://xmms2.org/wiki/Main_Page'
url 'http://git.xmms2.org/xmms2/xmms2-devel/snapshot/6e6a9635f04c3e2c7af8dd9336ca6006d89f8114.tar.gz'
sha1 'b8ade9e2c511280fe98ed81df438e357b22f8157'
version '0.8.1'
# depends_on 'cmake' => :build
# depends_on :x11 # if your formula requires any X11/XQuartz components
# ENV.libxml2
depends_on 'glib'
depends_on 'sqlite'
depends_on 'flac'
depends_on 'mad'
depends_on 'mpg123'
depends_on 'musepack'
depends_on 'libmms'
depends_on 'libsndfile'
depends_on 'libvorbis'
depends_on 'libao'
def install
# Some dependencie on s4 which doesn't build
system "which brew"
system "git clone", "git://git.xmms.se/xmms2/s4.git", "src/lib/s4"
system "./waf configure", "--prefix=#{prefix}", "--without-optional=s4"
system "./waf build"
system "./waf install"
end
def test
# This test will fail and we won't accept that! It's enough to just replace
# "false" with the main program this formula installs, but it'd be nice if you
# were more thorough. Run the test with `brew test xmms2`.
system "false"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment