transmission: update to 2.83.

This commit is contained in:
Juan RP 2014-06-04 17:07:25 +02:00
parent 0c0e2aa708
commit 6f3daab408
3 changed files with 3 additions and 44 deletions

View File

@ -1,27 +0,0 @@
--- qt/favicon.cc.orig Fri Aug 9 04:45:47 2013
+++ qt/favicon.cc Thu Aug 22 16:39:50 2013
@@ -14,7 +14,12 @@
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
+
+#if QT_VERSION >= 0x050000
#include <QStandardPaths>
+#else
+#include <QDesktopServices>
+#endif
#include "favicon.h"
@@ -40,7 +45,11 @@ Favicons :: ~Favicons( )
QString
Favicons :: getCacheDir( )
{
+#if QT_VERSION >= 0x050000
const QString base = QStandardPaths::writableLocation (QStandardPaths::CacheLocation);
+#else
+ const QString base = QDesktopServices::storageLocation( QDesktopServices::CacheLocation );
+#endif
return QDir( base ).absoluteFilePath( "favicons" );
}

View File

@ -1,14 +0,0 @@
--- qt/file-tree.cc.orig Fri Aug 9 04:45:54 2013
+++ qt/file-tree.cc Thu Aug 22 16:40:53 2013
@@ -885,7 +885,11 @@ FileTreeView :: FileTreeView (QWidget * parent, bool i
for (int i=0; i<NUM_COLUMNS; ++i)
{
setColumnHidden (i, (i<FIRST_VISIBLE_COLUMN) || (LAST_VISIBLE_COLUMN<i));
+#if QT_VERSION >= 0x050000
header()->setSectionResizeMode(i, QHeaderView::Interactive);
+#else
+ header()->setResizeMode(i, QHeaderView::Interactive);
+#endif
}
connect (this, SIGNAL(clicked(const QModelIndex&)),

View File

@ -1,6 +1,6 @@
# Template file for 'transmission'
pkgname=transmission
version=2.82
version=2.83
revision=1
build_style=gnu-configure
configure_args="--enable-nls --enable-cli --enable-daemon --enable-utp"
@ -11,7 +11,7 @@ maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.transmissionbt.com/"
license="MIT, GPL-2"
distfiles="http://download.transmissionbt.com/files/$pkgname-$version.tar.xz"
checksum=3996651087df67a85f1e1b4a92b1b518ddefdd84c654b8df6fbccb0b91f03522
checksum=b0e1b050167e7f71b68e01a8d55b984a828fe880df9abfbc6281cb2a0d7d1433
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" qt-devel"
@ -20,7 +20,7 @@ post_build() {
# Build the qt frontend.
cd qt
qmake qtr.pro
make ${makejobs}
make CXXFLAGS="${CXXFLAGS} -std=c++11" LDFLAGS="${LDFLAGS}" ${makejobs}
}
post_install() {