diff options
author | Michael Johnson <youngmug@animeneko.net> | 2010-05-12 17:37:07 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 17:37:07 +0200 |
commit | 1ee225c0713ed0cb3824cd2dbb1e86044a1a68ae (patch) | |
tree | d6aac3b4830b212faf35f381248d568d17bc6f92 /audio/last.fm/patches | |
parent | 85fa8fc31c3d26ce070497645e10897d71b1b375 (diff) | |
download | slackbuilds-1ee225c0713ed0cb3824cd2dbb1e86044a1a68ae.tar.gz |
audio/last.fm: Updated for version 1.5.1.31879
Diffstat (limited to 'audio/last.fm/patches')
-rw-r--r-- | audio/last.fm/patches/no-fingerprint-lib.diff | 289 | ||||
-rw-r--r-- | audio/last.fm/patches/reduce-linkage.diff | 251 | ||||
-rw-r--r-- | audio/last.fm/patches/volumeslider_h-qt45.patch | 19 |
3 files changed, 559 insertions, 0 deletions
diff --git a/audio/last.fm/patches/no-fingerprint-lib.diff b/audio/last.fm/patches/no-fingerprint-lib.diff new file mode 100644 index 0000000000..9b0d710ab6 --- /dev/null +++ b/audio/last.fm/patches/no-fingerprint-lib.diff @@ -0,0 +1,289 @@ +diff -Naur last.fm-1.5.1.31879.orig/LastFM.pro last.fm-1.5.1.31879/LastFM.pro +--- last.fm-1.5.1.31879.orig/LastFM.pro 2008-06-18 11:46:57.000000000 +0000 ++++ last.fm-1.5.1.31879/LastFM.pro 2009-03-27 19:50:51.000000000 +0000 +@@ -39,6 +39,8 @@ + + linux* { + SUBDIRS -= src/Twiddly \ ++ src/libFingerprint/fplib/pro_qmake/fplib.pro \ ++ src/libFingerprint/ \ + src/Bootstrapper/ITunesDevice + + SUBDIRS += src/output/alsa-playback \ +diff -Naur last.fm-1.5.1.31879.orig/src/DiagnosticsDialog.cpp last.fm-1.5.1.31879/src/DiagnosticsDialog.cpp +--- last.fm-1.5.1.31879.orig/src/DiagnosticsDialog.cpp 2008-06-18 11:46:55.000000000 +0000 ++++ last.fm-1.5.1.31879/src/DiagnosticsDialog.cpp 2009-03-27 19:50:51.000000000 +0000 +@@ -27,7 +27,10 @@ + #include "container.h" + #include "lastfmapplication.h" + #include "libMoose/LastFmSettings.h" ++ ++#ifndef LINUX + #include "libFingerprint/FingerprintCollector.h" ++#endif + + #include <QProcess> + #include <QClipboard> +@@ -106,6 +109,7 @@ + connect( ui.scrobbleIpodButton, SIGNAL( clicked() ), SLOT( onScrobbleIpodClicked() ) ); + + // Fingerprint collector ++#ifndef LINUX + ui.fpQueueSizeLabel->setText( "0" ); + connect( The::app().m_fpCollector, SIGNAL( trackFingerprintingStarted( TrackInfo ) ), + this, SLOT( onTrackFingerprintingStarted( TrackInfo ) ), +@@ -116,6 +120,9 @@ + connect( The::app().m_fpCollector, SIGNAL( cantFingerprintTrack( TrackInfo, QString ) ), + this, SLOT( onCantFingerprintTrack( TrackInfo, QString ) ), + Qt::QueuedConnection ); ++#else ++ ui.tabWidget->removeTab( 2 ); ++#endif + + m_logTimer = new QTimer( this ); + connect( m_logTimer, SIGNAL( timeout() ), +@@ -336,6 +343,7 @@ + } + + ++#ifndef LINUX + void + DiagnosticsDialog::onTrackFingerprintingStarted( TrackInfo track ) + { +@@ -360,7 +368,7 @@ + ui.fpCurrentTrackLabel->setText( "" ); + ui.fpQueueSizeLabel->setText( QString::number( The::app().m_fpCollector->queueSize() ) ); + } +- ++#endif + + void + DiagnosticsDialog::onLogPoll() +diff -Naur last.fm-1.5.1.31879.orig/src/DiagnosticsDialog.h last.fm-1.5.1.31879/src/DiagnosticsDialog.h +--- last.fm-1.5.1.31879.orig/src/DiagnosticsDialog.h 2008-06-18 11:46:55.000000000 +0000 ++++ last.fm-1.5.1.31879/src/DiagnosticsDialog.h 2009-03-27 19:50:51.000000000 +0000 +@@ -63,9 +63,11 @@ + void onRefresh(); + void onCopyToClipboard(); + ++ #ifndef LINUX + void onTrackFingerprintingStarted( TrackInfo ); + void onTrackFingerprinted( TrackInfo ); + void onCantFingerprintTrack( TrackInfo track, QString reason ); ++ #endif + + void onScrobbleIpodClicked(); + void onLogPoll(); +diff -Naur last.fm-1.5.1.31879.orig/src/Radio.cpp last.fm-1.5.1.31879/src/Radio.cpp +--- last.fm-1.5.1.31879.orig/src/Radio.cpp 2008-06-18 11:46:55.000000000 +0000 ++++ last.fm-1.5.1.31879/src/Radio.cpp 2009-03-27 19:50:51.000000000 +0000 +@@ -129,7 +129,9 @@ + m_session = handshake->session(); + m_basePath = handshake->basePath(); + ++ #ifndef LINUX + The::settings().setFingerprintUploadUrl( handshake->fingerprintUploadUrl() ); ++ #endif + + setState( State_Handshaken ); + +diff -Naur last.fm-1.5.1.31879.orig/src/configwizard.cpp last.fm-1.5.1.31879/src/configwizard.cpp +--- last.fm-1.5.1.31879.orig/src/configwizard.cpp 2008-06-18 11:46:55.000000000 +0000 ++++ last.fm-1.5.1.31879/src/configwizard.cpp 2009-03-27 19:51:39.000000000 +0000 +@@ -750,7 +750,7 @@ + + nextButtonClicked(); + #else +- m_pageOffset += 7; ++ m_pageOffset += 8; + BaseWizard::nextButtonClicked(); + #endif + +diff -Naur last.fm-1.5.1.31879.orig/src/lastfmapplication.cpp last.fm-1.5.1.31879/src/lastfmapplication.cpp +--- last.fm-1.5.1.31879.orig/src/lastfmapplication.cpp 2008-06-18 11:46:55.000000000 +0000 ++++ last.fm-1.5.1.31879/src/lastfmapplication.cpp 2009-03-27 19:50:51.000000000 +0000 +@@ -26,8 +26,10 @@ + #include "confirmdialog.h" + #include "container.h" + #include "LastMessageBox.h" ++#ifndef LINUX + #include "libFingerprint/FingerprintCollector.h" + #include "libFingerprint/FingerprintQueryer.h" ++#endif + #include "logger.h" + #include "loginwidget.h" + #include "MediaDeviceScrobbler.h" +@@ -167,10 +169,12 @@ + new ITunesScript( this, m_listener ); + #endif + ++ #ifndef LINUX + m_fpCollector = new FingerprintCollector( 1 /*number of threads*/, this ); + m_fpQueryer = new FingerprintQueryer( this ); + connect( m_fpQueryer, SIGNAL( trackFingerprinted( TrackInfo, bool ) ), + SLOT( onFingerprintQueryDone( TrackInfo, bool ) ) ); ++ #endif + + m_radio = new Radio( this ); + connect( m_radio, SIGNAL( stateChanged( RadioState ) ), SLOT( onRadioStateChanged( RadioState ) ) ); +@@ -365,8 +369,10 @@ + sendPostedEvents( m_scrobbler, 0 /*all event types*/ ); + //TODO send events to individual scrobblers in the manager too? + ++ #ifndef LINUX + delete m_fpQueryer; + delete m_fpCollector; ++ #endif + + #ifdef Q_WS_MAC + if ( !m_pidFile.remove() ) +@@ -534,6 +540,7 @@ + QString password = m_user->settings().password(); + QString version = The::settings().version(); + ++ #ifndef LINUX + // as you can see we are initialising the fingerprinter, I like this comment + m_fpCollector->setUsername( username ); + m_fpCollector->setPasswordMd5( password ); +@@ -542,6 +549,7 @@ + m_fpQueryer->setPasswordMd5( password ); + m_fpQueryer->setPasswordMd5Lower( password ); // FIXME: surely they can't be the same! + m_fpQueryer->setVersion( The::settings().version() ); ++ #endif + + // init radio YTIO + m_radio->init( username, password, version ); +@@ -849,12 +857,14 @@ + if ( m_container->isVisible() ) + fetchMetaData(); + ++ #ifndef LINUX + if ( QFile::exists( m_currentTrack.path() ) && + The::settings().currentUser().fingerprintingEnabled() ) + { + m_activeNorman = 0; + m_fpQueryer->fingerprint( m_currentTrack ); + } ++ #endif + } + } + break; +@@ -1167,6 +1177,7 @@ + } + + ++#ifndef LINUX + void + LastFmApplication::onFingerprintQueryDone( TrackInfo track, bool fullFpRequested ) + { +@@ -1199,6 +1210,7 @@ + } + } + } ++#endif + + + void +diff -Naur last.fm-1.5.1.31879.orig/src/lastfmapplication.h last.fm-1.5.1.31879/src/lastfmapplication.h +--- last.fm-1.5.1.31879.orig/src/lastfmapplication.h 2008-06-18 11:46:55.000000000 +0000 ++++ last.fm-1.5.1.31879/src/lastfmapplication.h 2009-03-27 19:50:51.000000000 +0000 +@@ -181,7 +181,9 @@ + void onAppEvent( int event, const QVariant& ); + void onRequestReturned( class Request* request ); + void onScrobblerStatusUpdate( int, const QVariant& ); ++#ifndef LINUX + void onFingerprintQueryDone( TrackInfo, bool fullFpRequested ); ++#endif + void onNormanRequestDone( Request* r ); + void onPlaybackEndedTimerTimeout(); + +@@ -208,8 +210,10 @@ + class QTcpServer* m_control; + class ScrobblerManager* m_scrobbler; + class Radio* m_radio; ++#ifndef LINUX + class FingerprintCollector* m_fpCollector; + class FingerprintQueryer* m_fpQueryer; ++#endif + class FrikkinNormanRequest* m_activeNorman; + + QPointer<class ArtistMetaDataRequest> m_activeArtistReq; +diff -Naur last.fm-1.5.1.31879.orig/src/settingsdialog.cpp last.fm-1.5.1.31879/src/settingsdialog.cpp +--- last.fm-1.5.1.31879.orig/src/settingsdialog.cpp 2008-06-18 11:46:55.000000000 +0000 ++++ last.fm-1.5.1.31879/src/settingsdialog.cpp 2009-03-27 19:57:29.000000000 +0000 +@@ -92,6 +92,8 @@ + ui_mediadevices.setupUi( mediadeviceWidget ); + ui_mediadevices.deviceWidget->header()->setResizeMode( QHeaderView::ResizeToContents ); + ui.pageStack->addWidget( mediadeviceWidget ); ++#else ++ ui_scrobbling.groupBox->hide(); + #endif + + // Add icons to user icon dropdown +@@ -210,7 +212,11 @@ + connect( ui_scrobbling.dirTree, SIGNAL( dataChanged() ), this, SLOT( configChanged() ) ); + connect( ui_scrobbling.scrobblePointSlider, SIGNAL( valueChanged( int ) ), this, SLOT( configChanged() ) ); + connect( ui_scrobbling.launchWithMediaPlayerCheck, SIGNAL( toggled( bool ) ), this, SLOT( configChanged() ) ); ++#ifndef LINUX + connect( ui_scrobbling.fingerprintCheckBox, SIGNAL( stateChanged( int ) ), this, SLOT( configChanged() ) ); ++#else ++ ui_scrobbling.fingerprintCheckBox->hide(); ++#endif + connect( ui_connection.proxyBox, SIGNAL( toggled( bool ) ), this, SLOT( configChanged() ) ); + connect( ui_connection.proxyHostEdit, SIGNAL( textChanged( QString ) ), this, SLOT( configChanged() ) ); + connect( ui_connection.proxyPortEdit, SIGNAL( textChanged( QString ) ), this, SLOT( configChanged() ) ); +@@ -379,7 +385,9 @@ + ui_scrobbling.scrobblePointSlider->setValue( user.scrobblePoint() ); + ui_scrobbling.scrobblePointLabel->setText( QString::number( user.scrobblePoint() ) ); + ui_scrobbling.launchWithMediaPlayerCheck->setChecked( The::settings().launchWithMediaPlayer() ); ++#ifndef LINUX + ui_scrobbling.fingerprintCheckBox->setChecked( user.fingerprintingEnabled() ); ++#endif + ui_scrobbling.dirTree->setExclusions( user.excludedDirs() ); + } + +@@ -567,7 +575,9 @@ + user.setScrobblePoint( ui_scrobbling.scrobblePointSlider->value() ); + user.setExcludedDirs( ui_scrobbling.dirTree->getExclusions() ); + The::settings().setLaunchWithMediaPlayer( ui_scrobbling.launchWithMediaPlayerCheck->isChecked() ); ++#ifndef LINUX + user.setFingerprintingEnabled( ui_scrobbling.fingerprintCheckBox->checkState() == Qt::Checked ? true : false ); ++#endif + + pageSaved( 2 ); + } +diff -Naur last.fm-1.5.1.31879.orig/src/settingsdialog_scrobbling.ui last.fm-1.5.1.31879/src/settingsdialog_scrobbling.ui +--- last.fm-1.5.1.31879.orig/src/settingsdialog_scrobbling.ui 2008-06-18 11:46:56.000000000 +0000 ++++ last.fm-1.5.1.31879/src/settingsdialog_scrobbling.ui 2009-03-27 19:57:29.000000000 +0000 +@@ -175,6 +175,19 @@ + </layout> + </widget> + </item> ++ <item> ++ <spacer> ++ <property name="orientation" > ++ <enum>Qt::Vertical</enum> ++ </property> ++ <property name="sizeHint" > ++ <size> ++ <width>20</width> ++ <height>0</height> ++ </size> ++ </property> ++ </spacer> ++ </item> + </layout> + </widget> + <customwidgets> +diff -Naur last.fm-1.5.1.31879.orig/src/src.pro last.fm-1.5.1.31879/src/src.pro +--- last.fm-1.5.1.31879.orig/src/src.pro 2008-06-18 11:46:55.000000000 +0000 ++++ last.fm-1.5.1.31879/src/src.pro 2009-03-27 19:50:51.000000000 +0000 +@@ -217,6 +217,8 @@ + + SOURCES -= Bootstrapper/iTunesBootstrapper.cpp \ + Bootstrapper/PluginBootstrapper.cpp ++ ++ LIBS -= -lLastFmFingerprint$$EXT + } + + diff --git a/audio/last.fm/patches/reduce-linkage.diff b/audio/last.fm/patches/reduce-linkage.diff new file mode 100644 index 0000000000..91f362a48e --- /dev/null +++ b/audio/last.fm/patches/reduce-linkage.diff @@ -0,0 +1,251 @@ +--- a/definitions.pro.inc ++++ b/definitions.pro.inc +@@ -41,8 +41,6 @@ + UNICORNPATH = $$ROOT_DIR/src/libUnicorn + include( src/libUnicorn/unicorn.pro.inc ) + +-LIBS += -lMoose$$EXT +- + # TODO: not sure if this is right now, should probably be determined on a per-plugin basis + plugin:LIBS += -lLastFmTools$$EXT + contains( TEMPLATE, app ):LIBS += -lLastFmTools$$EXT +--- a/src/libFingerprint/libFingerprint.pro ++++ b/src/libFingerprint/libFingerprint.pro +@@ -2,7 +2,7 @@ + VERSION = 1.0.0 + CONFIG += dll + TARGET = LastFmFingerprint +-QT += xml network sql ++QT -= gui + + include( ../../definitions.pro.inc ) + +--- a/src/libUnicorn/CachedHttp.h ++++ b/src/libUnicorn/CachedHttp.h +@@ -26,7 +26,7 @@ + #include "UnicornDllExportMacro.h" + + #include <QDebug> +-#include <QHttp> ++#include <QtNetwork/QHttp> + #include <QHash> + #include <QStack> + #include <QString> +--- a/src/libUnicorn/RedirectHttp.h ++++ b/src/libUnicorn/RedirectHttp.h +@@ -26,7 +26,7 @@ + #include "UnicornDllExportMacro.h" + + #include <QDebug> +-#include <QHttp> ++#include <QtNetwork/QHttp> + #include <QString> + #include <QHash> + +--- a/src/libFingerprint/FingerprintCollector.cpp ++++ b/src/libFingerprint/FingerprintCollector.cpp +@@ -25,8 +25,6 @@ + #include "logger.h" + #include "FingerprintExtractor.h" + +-#include <QApplication> +- + + FingerprintCollector::FingerprintCollector( int numberOfThreads, QObject* parent ) + : QObject( parent ) +--- a/src/libUnicorn/WebService/Request.h ++++ b/src/libUnicorn/WebService/Request.h +@@ -31,7 +31,7 @@ + #include "WeightedStringList.h" + + #include <QTimer> +-#include <QHttpHeader> ++#include <QtNetwork/QHttpHeader> + + //TODO mxcl check error handling, since that was the point of all this + //TODO escape query paramaeters in paths in get function +--- a/src/libUnicorn/Collection.h ++++ b/src/libUnicorn/Collection.h +@@ -31,7 +31,7 @@ + + #include <QObject> + #include <QMutex> +-#include <QSqlDatabase> ++#include <QtSql/QSqlDatabase> + + + /** @author: <chris@last.fm> */ +--- a/src/libFingerprint/FingerprintQueryer.cpp ++++ b/src/libFingerprint/FingerprintQueryer.cpp +@@ -26,8 +26,6 @@ + #include "logger.h" + #include "FingerprintExtractor.h" + +-#include <QApplication> +- + + FingerprintQueryer::FingerprintQueryer( QObject* parent ) : + QObject( parent ), +--- a/src/src.pro ++++ b/src/src.pro +@@ -1,12 +1,14 @@ + TEMPLATE = app + TARGET = Last.fm +-QT += gui network xml sql ++QT += gui network xml + + INCLUDEPATH += lib libFingerprint/recommendation-commons + + PRECOMPILED_HEADER = precompiled.h + CONFIG += precompile_header + ++LIBS += -lMoose$$EXT ++ + unix { + # precompiled headers breaks icecream builds for some reason :( + system( test `ps aux | grep iceccd | wc -l` -gt 1 ): CONFIG -= precompile_header +@@ -27,12 +29,9 @@ + + include( ../definitions.pro.inc ) + +-# TODO remove +-INCLUDEPATH += $$ROOT_DIR/res/mad +-INCLUDEPATH += $$ROOT_DIR/src/libFingerprint/libs/fftw +- + breakpad { + LIBS += -lbreakpad$$EXT ++ LIBS += -lmad -lfftw3f + } + + LIBS += -L$$BIN_DIR -lLastFmFingerprint$$EXT +@@ -210,8 +209,6 @@ + SOURCES += simplewizard_mac.cpp \ + winstyleoverrides.cpp + +- LIBS += -lmad -lfftw3f +- + HEADERS -= Bootstrapper/iTunesBootstrapper.h \ + Bootstrapper/PluginBootstrapper.h + +--- a/src/mediadevices/ipod/IpodDevice.h ++++ b/src/mediadevices/ipod/IpodDevice.h +@@ -22,7 +22,7 @@ + #define IPOD_DEVICE_H + + #include "TrackInfo.h" +-#include <QSqlDatabase> ++#include <QtSql/QSqlDatabase> + + typedef struct _Itdb_iTunesDB Itdb_iTunesDB; + typedef struct _Itdb_Track Itdb_Track; +--- a/src/httpinput/httpinput.cpp ++++ b/src/httpinput/httpinput.cpp +@@ -21,8 +21,6 @@ + + #include "httpinput.h" + #include "logger.h" +-#include "WebService.h" +-#include "WebService/Request.h" + #include "RadioEnums.h" + + #include "MooseCommon.h" +--- a/src/httpinput/httpinput.pro ++++ b/src/httpinput/httpinput.pro +@@ -1,7 +1,8 @@ + TEMPLATE = lib + CONFIG += service + TARGET = httpinput +-QT += network gui xml ++QT += network ++QT -= gui + + include( ../../definitions.pro.inc ) + +--- a/src/mediadevices/ipod/IpodDevice.cpp ++++ b/src/mediadevices/ipod/IpodDevice.cpp +@@ -24,12 +24,11 @@ + + #include "logger.h" + +-#include <QApplication> + #include <QDateTime> ++#include <QFileInfo> + #include <QSqlError> + #include <QSqlQuery> + #include <QtPlugin> +-#include <QFileDialog> + #include <QSettings> + + extern "C" +--- a/src/mediadevices/ipod/ipod.pro ++++ b/src/mediadevices/ipod/ipod.pro +@@ -2,6 +2,7 @@ + CONFIG += service + TARGET = Ipod_device + QT += sql ++QT -= gui + + include( ../../../definitions.pro.inc ) + +--- a/src/transcode/mad/mad.pro ++++ b/src/transcode/mad/mad.pro +@@ -1,7 +1,7 @@ + TEMPLATE = lib + CONFIG += service + TARGET = madtranscode +-QT += gui xml network ++QT -= gui + + include( ../../../definitions.pro.inc ) + +--- a/src/output/alsa-playback/alsa-playback.pro ++++ b/src/output/alsa-playback/alsa-playback.pro +@@ -1,7 +1,7 @@ + TEMPLATE = lib + TARGET = output_alsa + CONFIG += service +-QT += gui xml network ++QT -= gui + + LIBS += -lasound + QMAKE_CFLAGS_WARN_OFF = -w +@@ -9,5 +9,6 @@ + + include( ../../../definitions.pro.inc ) + ++LIBS -= -lLastFmTools$$EXT + HEADERS = alsaplayback.h alsaaudio.h xconvert.h + SOURCES = alsaplayback.cpp alsaaudio.cpp xconvert.c +--- a/src/libMoose/libMoose.pro ++++ b/src/libMoose/libMoose.pro +@@ -2,7 +2,7 @@ + VERSION = 1.0.0 + CONFIG += dll + TARGET = Moose +-QT += xml network gui ++QT += network gui + + include( ../../definitions.pro.inc ) + +--- a/src/output/RtAudio/RtAudio.pro ++++ b/src/output/RtAudio/RtAudio.pro +@@ -1,7 +1,7 @@ + TEMPLATE = lib + CONFIG += service + TARGET = rtaudioplayback +-QT += gui xml network ++QT -= gui + + include( ../../../definitions.pro.inc ) + +--- a/src/output/RtAudio/rtaudioplayback.cpp ++++ b/src/output/RtAudio/rtaudioplayback.cpp +@@ -19,7 +19,7 @@ + * 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +-#include <QtGui> ++#include <qplugin.h> + + #include "rtaudioplayback.h" + #include "logger.h" diff --git a/audio/last.fm/patches/volumeslider_h-qt45.patch b/audio/last.fm/patches/volumeslider_h-qt45.patch new file mode 100644 index 0000000000..91374423b6 --- /dev/null +++ b/audio/last.fm/patches/volumeslider_h-qt45.patch @@ -0,0 +1,19 @@ +Index: lastfm-1.5.1.31879/src/myvolumeslider.h +=================================================================== +--- /dev/null ++++ lastfm-1.5.1.31879/src/myvolumeslider.h +@@ -0,0 +1 @@ ++#include "volumeslider.h" +Index: lastfm-1.5.1.31879/src/playcontrols.ui +=================================================================== +--- lastfm-1.5.1.31879.orig/src/playcontrols.ui ++++ lastfm-1.5.1.31879/src/playcontrols.ui +@@ -146,7 +146,7 @@ + <customwidget> + <class>VolumeSlider</class> + <extends>QFrame</extends> +- <header>volumeslider.h</header> ++ <header>myvolumeslider.h</header> + <container>1</container> + </customwidget> + </customwidgets> |