Merge pull request #27891 from jraygauthier/jrg/clementine_from_123_to_131

clementine: 1.2.3 -> 1.3.1

authored by Tim Steinbach and committed by GitHub 46f586fb 3ed5af74

+53 -83
-14
pkgs/applications/audio/clementine/clementine-1.2.1-include-paths.patch
··· 1 - diff -ur clementine-1.2.1-a/CMakeLists.txt clementine-1.2.1-b/CMakeLists.txt 2 - --- clementine-1.2.1-a/CMakeLists.txt 2013-11-25 15:16:24.000000000 -0600 3 - +++ clementine-1.2.1-b/CMakeLists.txt 2013-12-30 17:01:48.470011058 -0600 4 - @@ -158,6 +158,10 @@ 5 - include_directories(${TAGLIB_INCLUDE_DIRS}) 6 - include_directories(${QJSON_INCLUDE_DIRS}) 7 - include_directories(${GSTREAMER_INCLUDE_DIRS}) 8 - +include_directories(${GSTREAMER_APP_INCLUDE_DIRS}) 9 - +include_directories(${GSTREAMER_BASE_INCLUDE_DIRS}) 10 - +include_directories(${GSTREAMER_CDDA_INCLUDE_DIRS}) 11 - +include_directories(${GSTREAMER_TAG_INCLUDE_DIRS}) 12 - include_directories(${GLIB_INCLUDE_DIRS}) 13 - include_directories(${GLIBCONFIG_INCLUDE_DIRS}) 14 - include_directories(${LIBXML_INCLUDE_DIRS})
-36
pkgs/applications/audio/clementine/clementine-dbus-namespace.patch
··· 1 - From ec580cb815c16ec1ab43a469d5af7d51d8d03082 Mon Sep 17 00:00:00 2001 2 - From: Chocobozzz <florian.chocobo@gmail.com> 3 - Date: Wed, 16 Jul 2014 15:57:25 +0200 4 - Subject: [PATCH] No namespaces for DBus interfaces. Fixes #4401 5 - 6 - --- 7 - src/CMakeLists.txt | 9 ++++----- 8 - 1 file changed, 4 insertions(+), 5 deletions(-) 9 - 10 - diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt 11 - index 650fa74..775b0a5 100644 12 - --- a/src/CMakeLists.txt 13 - +++ b/src/CMakeLists.txt 14 - @@ -892,11 +892,6 @@ optional_source(LINUX SOURCES widgets/osd_x11.cpp) 15 - if(HAVE_DBUS) 16 - file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/dbus) 17 - 18 - - # Hack to get it to generate interfaces without namespaces - required 19 - - # because otherwise org::freedesktop::UDisks and 20 - - # org::freedesktop::UDisks::Device conflict. 21 - - list(APPEND QT_DBUSXML2CPP_EXECUTABLE -N) 22 - - 23 - # MPRIS DBUS interfaces 24 - qt4_add_dbus_adaptor(SOURCES 25 - dbus/org.freedesktop.MediaPlayer.player.xml 26 - @@ -964,6 +959,10 @@ if(HAVE_DBUS) 27 - 28 - # DeviceKit DBUS interfaces 29 - if(HAVE_DEVICEKIT) 30 - + set_source_files_properties(dbus/org.freedesktop.UDisks.xml 31 - + PROPERTIES NO_NAMESPACE dbus/udisks) 32 - + set_source_files_properties(dbus/org.freedesktop.UDisks.Device.xml 33 - + PROPERTIES NO_NAMESPACE dbus/udisksdevice) 34 - qt4_add_dbus_interface(SOURCES 35 - dbus/org.freedesktop.UDisks.xml 36 - dbus/udisks)
+21
pkgs/applications/audio/clementine/clementine-spotify-blob-remove-from-build.patch
··· 1 + diff --git a/CMakeLists.txt b/CMakeLists.txt 2 + index 23070d9..83b6772 100644 3 + --- a/CMakeLists.txt 4 + +++ b/CMakeLists.txt 5 + @@ -275,8 +275,6 @@ optional_component(LIBPULSE ON "Pulse audio integration" 6 + optional_component(VISUALISATIONS ON "Visualisations") 7 + 8 + if(NOT HAVE_SPOTIFY_BLOB AND NOT CRYPTOPP_FOUND) 9 + - message(FATAL_ERROR "Either crypto++ must be available or the non-GPL Spotify " 10 + - "code must be compiled in") 11 + elseif(CRYPTOPP_FOUND) 12 + set(HAVE_CRYPTOPP ON) 13 + set(HAVE_SPOTIFY_DOWNLOADER ON) 14 + @@ -434,7 +432,6 @@ if(HAVE_BREAKPAD) 15 + endif(HAVE_BREAKPAD) 16 + 17 + if(HAVE_SPOTIFY_BLOB) 18 + - add_subdirectory(ext/clementine-spotifyblob) 19 + endif(HAVE_SPOTIFY_BLOB) 20 + 21 + if(HAVE_MOODBAR)
+7 -19
pkgs/applications/audio/clementine/clementine-spotify-blob.patch
··· 1 - From d9ebe7ec09a48b1ea505ccc33686b72642f083f4 Mon Sep 17 00:00:00 2001 2 - From: Thomas Tuegel <ttuegel@gmail.com> 3 - Date: Mon, 4 May 2015 19:59:38 -0500 4 - Subject: [PATCH] Runtime selection of Spotify blob 5 - 6 - --- 7 - src/internet/spotifyservice.cpp | 2 +- 8 - 1 file changed, 1 insertion(+), 1 deletion(-) 9 - 10 - diff --git a/src/internet/spotifyservice.cpp b/src/internet/spotifyservice.cpp 11 - index 543744e..d987a36 100644 12 - --- a/src/internet/spotifyservice.cpp 13 - +++ b/src/internet/spotifyservice.cpp 14 - @@ -65,7 +65,7 @@ SpotifyService::SpotifyService(Application* app, InternetModel* parent) 1 + diff --git a/src/internet/spotify/spotifyservice.cpp b/src/internet/spotify/spotifyservice.cpp 2 + index 88c7383..6e0893c 100644 3 + --- a/src/internet/spotify/spotifyservice.cpp 4 + +++ b/src/internet/spotify/spotifyservice.cpp 5 + @@ -94,7 +94,7 @@ SpotifyService::SpotifyService(Application* app, InternetModel* parent) 15 6 system_blob_path_ = QCoreApplication::applicationDirPath() + 16 - "/../PlugIns/clementine-spotifyblob"; 7 + "/../PlugIns/clementine-spotifyblob"; 17 8 #else 18 9 - system_blob_path_ = QCoreApplication::applicationDirPath() + 19 10 + system_blob_path_ = qgetenv("CLEMENTINE_SPOTIFYBLOB") + 20 - "/clementine-spotifyblob" CMAKE_EXECUTABLE_SUFFIX; 11 + "/clementine-spotifyblob" CMAKE_EXECUTABLE_SUFFIX; 21 12 #endif 22 13 23 - -- 24 - 2.3.6 25 -
+23 -13
pkgs/applications/audio/clementine/default.nix
··· 1 - { stdenv, fetchurl, boost, cmake, gettext, gstreamer, gst-plugins-base 2 - , liblastfm, qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist 3 - , usbmuxd, libmtp, gvfs, libcdio, libspotify, protobuf, qca2, pkgconfig 4 - , sparsehash, config, makeWrapper, runCommand, gst_plugins }: 1 + { stdenv, fetchurl, boost, cmake, chromaprint, gettext, gst_all_1, liblastfm 2 + , qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist, usbmuxd, libmtp 3 + , libpulseaudio, gvfs, libcdio, libechonest, libspotify, pcre, protobuf 4 + , qca2, pkgconfig, sparsehash, config, makeWrapper, runCommand, gst_plugins }: 5 5 6 6 let 7 7 withSpotify = config.clementine.spotify or false; ··· 10 10 withCD = config.clementine.cd or true; 11 11 withCloud = config.clementine.cloud or true; 12 12 13 - version = "1.2.3"; 13 + version = "1.3.1"; 14 14 15 15 exeName = "clementine"; 16 16 17 17 src = fetchurl { 18 - url = https://github.com/clementine-player/Clementine/archive/1.2.3.tar.gz; 19 - sha256 = "1gx1109i4pylz6x7gvp4rdzc6dvh0w6in6hfbygw01d08l26bxbx"; 18 + url = https://github.com/clementine-player/Clementine/archive/1.3.1.tar.gz; 19 + sha256 = "0z7k73wyz54c3020lb6x2dgw0vz4ri7wcl3vs03qdj5pk8d971gq"; 20 20 }; 21 21 22 22 patches = [ 23 - ./clementine-1.2.1-include-paths.patch 24 - ./clementine-dbus-namespace.patch 25 23 ./clementine-spotify-blob.patch 24 + # Required so as to avoid adding libspotify as a build dependency (as it is 25 + # unfree and thus would prevent us from having a free package). 26 + ./clementine-spotify-blob-remove-from-build.patch 26 27 ]; 27 28 28 29 buildInputs = [ 29 30 boost 30 31 cmake 32 + chromaprint 31 33 fftw 32 34 gettext 33 35 glew 34 - gst-plugins-base 35 - gstreamer 36 + gst_all_1.gst-plugins-base 37 + gst_all_1.gstreamer 36 38 gvfs 39 + libechonest 37 40 liblastfm 41 + libpulseaudio 42 + pcre 38 43 pkgconfig 39 44 protobuf 40 45 qca2 ··· 71 76 blob = stdenv.mkDerivation { 72 77 name = "clementine-blob-${version}"; 73 78 # Use the same patches and sources as Clementine 74 - inherit patches src; 79 + inherit src; 80 + 81 + patches = [ 82 + ./clementine-spotify-blob.patch 83 + ]; 84 + 75 85 buildInputs = buildInputs ++ [ libspotify ]; 76 86 # Only build and install the Spotify blob 77 87 preBuild = '' ··· 119 129 mkdir -p $out/bin 120 130 makeWrapper "$free/bin/${exeName}" "$out/bin/${exeName}" \ 121 131 ${optionalString withSpotify "--set CLEMENTINE_SPOTIFYBLOB \"$blob/libexec/clementine\""} \ 122 - --prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH" 132 + --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" 123 133 124 134 mkdir -p $out/share 125 135 for dir in applications icons kde4; do
+2 -1
pkgs/top-level/all-packages.nix
··· 1338 1338 1339 1339 clementine = callPackage ../applications/audio/clementine { 1340 1340 boost = boost155; 1341 - gst_plugins = [ gst-plugins-base gst-plugins-good gst-plugins-ugly gst-ffmpeg ]; 1341 + gst_plugins = 1342 + with gst_all_1; [ gst-plugins-base gst-plugins-good gst-plugins-ugly ]; 1342 1343 }; 1343 1344 1344 1345 clementineFree = clementine.free;