git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #27891 from jraygauthier/jrg/clementine_from_123_to_131

clementine: 1.2.3 -> 1.3.1

commit46f586fb25337433068e2c1faed21a89e90aabea authorTim Steinbach <NeQuissimus@users.noreply.github.com> dateSat 5 Aug 2017, 10:32 (9 years ago) parent3ed5af70322f66
6 files changed+53−83
pkgs/applications/audio/clementine/clementine-1.2.1-include-paths.patch−14 pkgs/applications/audio/clementine/clementine-dbus-namespace.patch−36 pkgs/applications/audio/clementine/clementine-spotify-blob-remove-from-build.patch+21 pkgs/applications/audio/clementine/clementine-spotify-blob.patch+7−19 pkgs/applications/audio/clementine/default.nix+23−13 pkgs/top-level/all-packages.nix+2−1
pkgs/applications/audio/clementine/clementine-1.2.1-include-paths.patchdeleted−14
@@ -1,14 +0,0 @@
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})
pkgs/applications/audio/clementine/clementine-dbus-namespace.patchdeleted−36
@@ -1,36 +0,0 @@
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)
pkgs/applications/audio/clementine/clementine-spotify-blob-remove-from-build.patchnew file+21
@@ -0,0 +1,21 @@
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)
pkgs/applications/audio/clementine/clementine-spotify-blob.patch+7−19
@@ -1,25 +1,13 @@
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)
156 system_blob_path_ = QCoreApplication::applicationDirPath() +
16− "/../PlugIns/clementine-spotifyblob";
7+ "/../PlugIns/clementine-spotifyblob";
178 #else
189- system_blob_path_ = QCoreApplication::applicationDirPath() +
1910+ system_blob_path_ = qgetenv("CLEMENTINE_SPOTIFYBLOB") +
20− "/clementine-spotifyblob" CMAKE_EXECUTABLE_SUFFIX;
11+ "/clementine-spotifyblob" CMAKE_EXECUTABLE_SUFFIX;
2112 #endif
2213
23−--
24−2.3.6
25−
pkgs/applications/audio/clementine/default.nix+23−13
@@ -1,7 +1,7 @@
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 }:
55
66let
77 withSpotify = config.clementine.spotify or false;
@@ -10,31 +10,36 @@ let
1010 withCD = config.clementine.cd or true;
1111 withCloud = config.clementine.cloud or true;
1212
13− version = "1.2.3";
13+ version = "1.3.1";
1414
1515 exeName = "clementine";
1616
1717 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";
2020 };
2121
2222 patches = [
23− ./clementine-1.2.1-include-paths.patch
24− ./clementine-dbus-namespace.patch
2523 ./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
2627 ];
2728
2829 buildInputs = [
2930 boost
3031 cmake
32+ chromaprint
3133 fftw
3234 gettext
3335 glew
34− gst-plugins-base
35− gstreamer
36+ gst_all_1.gst-plugins-base
37+ gst_all_1.gstreamer
3638 gvfs
39+ libechonest
3740 liblastfm
41+ libpulseaudio
42+ pcre
3843 pkgconfig
3944 protobuf
4045 qca2
@@ -71,7 +76,12 @@ let
7176 blob = stdenv.mkDerivation {
7277 name = "clementine-blob-${version}";
7378 # 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+
7585 buildInputs = buildInputs ++ [ libspotify ];
7686 # Only build and install the Spotify blob
7787 preBuild = ''
@@ -119,7 +129,7 @@ runCommand "clementine-${version}"
119129 mkdir -p $out/bin
120130 makeWrapper "$free/bin/${exeName}" "$out/bin/${exeName}" \
121131 ${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"
123133
124134 mkdir -p $out/share
125135 for dir in applications icons kde4; do
pkgs/top-level/all-packages.nix+2−1
@@ -1338,7 +1338,8 @@ with pkgs;
13381338
13391339 clementine = callPackage ../applications/audio/clementine {
13401340 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 ];
13421343 };
13431344
13441345 clementineFree = clementine.free;