Upgrade libspotify to 9.1.32
Closes Homebrew/homebrew#7355. Signed-off-by: Max Howell <max@methylblue.com>
This commit is contained in:
parent
8c94bcb569
commit
3f466d5003
1 changed files with 9 additions and 8 deletions
|
@ -1,22 +1,23 @@
|
|||
require 'formula'
|
||||
|
||||
class Libspotify < Formula
|
||||
url "http://developer.spotify.com/download/libspotify/libspotify-0.0.8-Darwin.zip"
|
||||
version '0.0.8'
|
||||
url "http://developer.spotify.com/download/libspotify/libspotify-9.1.32-Darwin-universal.tar.gz"
|
||||
version '9.1.32'
|
||||
homepage 'http://developer.spotify.com/en/libspotify/overview/'
|
||||
md5 'a59b824d36e689b7162d067d6e2497a7'
|
||||
md5 '6a98f3198430f426cf7cd1c3ed90c553'
|
||||
|
||||
def install
|
||||
prefix.install 'share'
|
||||
(include+'libspotify').install "libspotify.framework/Versions/0.0.8/Headers/api.h"
|
||||
lib.install "libspotify.framework/Versions/0.0.8/libspotify" => "libspotify.0.0.8.dylib"
|
||||
(include+'libspotify').install "libspotify.framework/Versions/9/Headers/api.h"
|
||||
lib.install "libspotify.framework/Versions/9/libspotify" => "libspotify.9.1.32.dylib"
|
||||
doc.install Dir['doc/*']
|
||||
man3.install Dir['man/man3/man3spotify/*']
|
||||
|
||||
cd lib
|
||||
ln_s "libspotify.0.0.8.dylib", "libspotify.dylib"
|
||||
ln_s "libspotify.9.1.32.dylib", "libspotify.dylib"
|
||||
ln_s "libspotify.9.1.32.dylib", "libspotify.9.dylib"
|
||||
|
||||
system "install_name_tool", "-id",
|
||||
"#{HOMEBREW_PREFIX}/lib/libspotify.0.0.8.dylib",
|
||||
"#{HOMEBREW_PREFIX}/lib/libspotify.9.1.32.dylib",
|
||||
"libspotify.dylib"
|
||||
|
||||
(lib+'pkgconfig/libspotify.pc').write pc_content
|
||||
|
|
Loading…
Reference in a new issue