mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
qBittorrent: bump version
This commit is contained in:
49
net-p2p/qbittorrent/patches/qbittorrent-3.3.1.patchset
Normal file
49
net-p2p/qbittorrent/patches/qbittorrent-3.3.1.patchset
Normal file
@@ -0,0 +1,49 @@
|
||||
From 12906e1526d1efdec43624c7d86b7a1042687a41 Mon Sep 17 00:00:00 2001
|
||||
From: Sergei Reznikov <diver@gelios.net>
|
||||
Date: Mon, 30 Nov 2015 11:40:43 +0300
|
||||
Subject: Disable QtLockedFile on Haiku
|
||||
|
||||
|
||||
diff --git a/src/app/qtsingleapplication/qtlockedfile_unix.cpp b/src/app/qtsingleapplication/qtlockedfile_unix.cpp
|
||||
index 976c1b9..65813b8 100644
|
||||
--- a/src/app/qtsingleapplication/qtlockedfile_unix.cpp
|
||||
+++ b/src/app/qtsingleapplication/qtlockedfile_unix.cpp
|
||||
@@ -61,6 +61,7 @@ bool QtLockedFile::lock(LockMode mode, bool block)
|
||||
if (m_lock_mode != NoLock)
|
||||
unlock();
|
||||
|
||||
+#ifndef __HAIKU__
|
||||
struct flock fl;
|
||||
fl.l_whence = SEEK_SET;
|
||||
fl.l_start = 0;
|
||||
@@ -75,7 +76,7 @@ bool QtLockedFile::lock(LockMode mode, bool block)
|
||||
return false;
|
||||
}
|
||||
|
||||
-
|
||||
+#endif
|
||||
m_lock_mode = mode;
|
||||
return true;
|
||||
}
|
||||
@@ -91,6 +92,8 @@ bool QtLockedFile::unlock()
|
||||
if (!isLocked())
|
||||
return true;
|
||||
|
||||
+#ifndef __HAIKU__
|
||||
+
|
||||
struct flock fl;
|
||||
fl.l_whence = SEEK_SET;
|
||||
fl.l_start = 0;
|
||||
@@ -102,7 +105,8 @@ bool QtLockedFile::unlock()
|
||||
qWarning("QtLockedFile::lock(): fcntl: %s", strerror(errno));
|
||||
return false;
|
||||
}
|
||||
-
|
||||
+
|
||||
+#endif
|
||||
m_lock_mode = NoLock;
|
||||
return true;
|
||||
}
|
||||
--
|
||||
2.2.2
|
||||
|
||||
76
net-p2p/qbittorrent/qbittorrent-3.3.1.recipe
Normal file
76
net-p2p/qbittorrent/qbittorrent-3.3.1.recipe
Normal file
@@ -0,0 +1,76 @@
|
||||
SUMMARY="BitTorrent client in C++ and Qt"
|
||||
DESCRIPTION="The qBittorrent project aims to provide a Free Software \
|
||||
alternative to µtorrent. Additionally, qBittorrent runs and provides \
|
||||
the same features on all major platforms (Linux, Mac OS X, Windows, \
|
||||
OS/2, FreeBSD).
|
||||
|
||||
qBittorrent is based on Qt4 toolkit and libtorrent-rasterbar."
|
||||
HOMEPAGE="http://www.qbittorrent.org/"
|
||||
COPYRIGHT="2006-2015 The qBittorrent project"
|
||||
LICENSE="MIT"
|
||||
SOURCE_URI="http://sourceforge.net/projects/qbittorrent/files/qbittorrent/qbittorrent-$portVersion/qbittorrent-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="98579f15c86932331f7f274ddc936e84ec7efb95b8a86f3f6c53066c99b8a3c3"
|
||||
REVISION="1"
|
||||
ADDITIONAL_FILES="qbittorrent.rdef"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86 !x86_gcc2"
|
||||
|
||||
PROVIDES="
|
||||
qbittorrent$secondaryArchSuffix = $portVersion
|
||||
app:qBittorrent = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libboost_system$secondaryArchSuffix
|
||||
lib:libqt5$secondaryArchSuffix
|
||||
lib:libtorrent_rasterbar$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
boost${secondaryArchSuffix}_devel
|
||||
devel:libboost_system$secondaryArchSuffix
|
||||
devel:libexecinfo$secondaryArchSuffix
|
||||
devel:libssl$secondaryArchSuffix
|
||||
devel:libqt5$secondaryArchSuffix
|
||||
devel:libtorrent_rasterbar$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:awk
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PATCHES="qbittorrent-$portVersion.patchset"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
bootstrap.sh
|
||||
BOOST_CPPFLAGS=-I/system/$relativeHearersDir runConfigure \
|
||||
./configure --with-boost-libdir=/system/$relativeLibDir \
|
||||
--disable-qt-dbus
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
mkdir -p $appsDir/qBittorrent/translations
|
||||
cp dist/qt-translations/*.qm $appsDir/qBittorrent/translations
|
||||
mv $prefix/bin/qbittorrent $appsDir/qBittorrent/qBittorrent
|
||||
rm -r $prefix/{bin,data,documentation}
|
||||
strip $appsDir/qBittorrent/qBittorrent
|
||||
|
||||
addResourcesToBinaries $portDir/additional-files/qbittorrent.rdef \
|
||||
$appsDir/qBittorrent/qBittorrent
|
||||
|
||||
addAppDeskbarSymlink $appsDir/qBittorrent/qBittorrent
|
||||
}
|
||||
Reference in New Issue
Block a user