summaryrefslogtreecommitdiff
path: root/community/fatrat
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-04-01 00:05:25 -0700
committerroot <root@rshg054.dnsready.net>2013-04-01 00:05:25 -0700
commitc623429f33c434cb1cb11974d9e71f48dd5a881f (patch)
treea5ef4b20d134eb0384a567b98ea41733f2db73c7 /community/fatrat
parentbccd6b361bd252b2d32bc9a793c9e1b8448bfcd9 (diff)
Mon Apr 1 00:05:25 PDT 2013
Diffstat (limited to 'community/fatrat')
-rw-r--r--community/fatrat/PKGBUILD19
-rw-r--r--community/fatrat/QTBUG-22829-workaround.diff12
2 files changed, 25 insertions, 6 deletions
diff --git a/community/fatrat/PKGBUILD b/community/fatrat/PKGBUILD
index ed6ea96d9..b962073e5 100644
--- a/community/fatrat/PKGBUILD
+++ b/community/fatrat/PKGBUILD
@@ -1,21 +1,28 @@
-# $Id: PKGBUILD 85341 2013-03-01 10:29:45Z andrea $
+# $Id: PKGBUILD 87410 2013-03-31 19:18:13Z stephane $
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=fatrat
pkgver=1.2.0_beta2
-pkgrel=5
+pkgrel=6
pkgdesc="QT4 based download manager with support for HTTP, FTP, SFTP, BitTorrent, rapidshare and more"
arch=('i686' 'x86_64')
url="http://fatrat.dolezel.info/"
license=('GPL')
-depends=('gloox' 'libtorrent-rasterbar' 'pion' 'qtwebkit')
-optdepends=('geoip: GeoIP support')
+depends=('gloox' 'libtorrent-rasterbar' 'pion' 'qtwebkit' 'curl')
+optdepends=('geoip: GeoIP support' 'java-runtime: Java plugins')
makedepends=('boost' 'cmake' 'java-environment')
-source=(http://www.dolezel.info/download/data/fatrat/fatrat-$pkgver.tar.xz)
-md5sums=('ad823d2a81f0583316ece815b928c71b')
+source=(http://www.dolezel.info/download/data/fatrat/fatrat-$pkgver.tar.xz \
+ QTBUG-22829-workaround.diff)
+md5sums=('ad823d2a81f0583316ece815b928c71b'
+ '9c017f227437b8a72e92219ee6d58578')
build() {
cd "$srcdir/$pkgname-$pkgver"
+ # workaround the moc bug (QTBUG-22829) with new boost
+ patch -Np1 < "$srcdir/QTBUG-22829-workaround.diff" || true
+ # fix help generation with qt4
+ sed -s 's|qcollectiongenerator|qcollectiongenerator-qt4|' -i CMakeLists.txt
+
cmake \
-DWITH_EVERYTHING=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
diff --git a/community/fatrat/QTBUG-22829-workaround.diff b/community/fatrat/QTBUG-22829-workaround.diff
new file mode 100644
index 000000000..dc0ed0c3f
--- /dev/null
+++ b/community/fatrat/QTBUG-22829-workaround.diff
@@ -0,0 +1,12 @@
+diff -rup fatrat-1.2.0_beta2/CMakeLists.txt fatrat-1.2.0_beta2.new/CMakeLists.txt
+--- fatrat-1.2.0_beta2/CMakeLists.txt 2012-07-14 11:44:27.000000000 +0000
++++ fatrat-1.2.0_beta2.new/CMakeLists.txt 2013-03-25 16:21:03.143596960 +0000
+@@ -552,7 +552,7 @@ if(WITH_DOCUMENTATION)
+ )
+ endif(WITH_DOCUMENTATION)
+
+-qt4_wrap_cpp(fatrat_MOC_SRCS ${fatrat_MOC_HDRS})
++qt4_wrap_cpp(fatrat_MOC_SRCS ${fatrat_MOC_HDRS} OPTIONS -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED -DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
+
+ set(fatrat_RCS
+ gfx/resources.qrc