libspotify 10.1.16

Closes Homebrew/homebrew#8405.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Kim Burgestrand 2011-11-01 14:58:43 +01:00 committed by Jack Nagel
parent 78fa376bfb
commit 4d1c4dcde8

View file

@ -1,23 +1,23 @@
require 'formula' require 'formula'
class Libspotify < Formula class Libspotify < Formula
url "http://developer.spotify.com/download/libspotify/libspotify-9.1.32-Darwin-universal.tar.gz" url "http://developer.spotify.com/download/libspotify/libspotify-10.1.16-Darwin-universal.zip"
version '9.1.32' version '10.1.16'
homepage 'http://developer.spotify.com/en/libspotify/overview/' homepage 'http://developer.spotify.com/en/libspotify/overview/'
md5 '6a98f3198430f426cf7cd1c3ed90c553' md5 'd26c3f34b7416ffcfdf27b525b7febeb'
def install def install
(include+'libspotify').install "libspotify.framework/Versions/9/Headers/api.h" (include+'libspotify').install "libspotify.framework/Versions/10.1.16/Headers/api.h"
lib.install "libspotify.framework/Versions/9/libspotify" => "libspotify.9.1.32.dylib" lib.install "libspotify.framework/Versions/10.1.16/libspotify" => "libspotify.10.1.16.dylib"
doc.install Dir['doc/*'] doc.install Dir['docs/*']
man3.install Dir['man/man3/man3spotify/*'] man3.install Dir['man3/*']
cd lib cd lib
ln_s "libspotify.9.1.32.dylib", "libspotify.dylib" ln_s "libspotify.10.1.16.dylib", "libspotify.dylib"
ln_s "libspotify.9.1.32.dylib", "libspotify.9.dylib" ln_s "libspotify.10.1.16.dylib", "libspotify.10.dylib"
system "install_name_tool", "-id", system "install_name_tool", "-id",
"#{HOMEBREW_PREFIX}/lib/libspotify.9.1.32.dylib", "#{HOMEBREW_PREFIX}/lib/libspotify.10.1.16.dylib",
"libspotify.dylib" "libspotify.dylib"
(lib+'pkgconfig/libspotify.pc').write pc_content (lib+'pkgconfig/libspotify.pc').write pc_content