qupzilla: add recipe for version 1.8.9.

* switch to qt5.
This commit is contained in:
Jerome Duval
2017-02-16 22:25:35 +01:00
parent 1a4a568a1a
commit 31f6cb6033
2 changed files with 133 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
From 9b624cfa3d7d53bf6640c4fa50381614e60f8ae3 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sun, 5 Apr 2015 20:51:42 +1000
Subject: Turn on system certificates
diff --git a/src/lib/network/networkmanager.cpp b/src/lib/network/networkmanager.cpp
index a0f55df..c31de81 100644
--- a/src/lib/network/networkmanager.cpp
+++ b/src/lib/network/networkmanager.cpp
@@ -107,7 +107,7 @@ void NetworkManager::loadSettings()
m_acceptLanguage = AcceptLanguage::generateHeader(settings.value("Language/acceptLanguage", AcceptLanguage::defaultLanguage()).toStringList());
-#if defined(Q_OS_WIN) || defined(Q_OS_HAIKU) || defined(Q_OS_OS2)
+#if defined(Q_OS_WIN) || defined(Q_OS_OS2)
QString certDir = DataPaths::currentProfilePath() + "/certificates";
QString bundlePath = certDir + "/ca-bundle.crt";
QString bundleVersionPath = certDir + "/bundle_version";
--
2.10.2
From 10f89aae0669c723caea8d06f14e98aff338b9cc Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Thu, 16 Feb 2017 22:17:01 +0100
Subject: fix app signature on qt5.
diff --git a/haiku/QupZilla.rdef b/haiku/QupZilla.rdef
index 5470444..7fdf185 100644
--- a/haiku/QupZilla.rdef
+++ b/haiku/QupZilla.rdef
@@ -1,4 +1,4 @@
-resource app_signature "application/x-vnd.QupZilla";
+resource app_signature "application/x-vnd.qt5-QupZilla";
resource app_flags B_SINGLE_LAUNCH;
resource app_version {
major = 1,
--
2.10.2

View File

@@ -0,0 +1,91 @@
SUMMARY="A lightweight QtWebKit browser"
DESCRIPTION="QupZilla is a free and open-source web browser, \
intended for general users. It allows seamless integration with \
users' desktop environments and has several distinguishing features \
positively received by reviewers:
- A unified interface for bookmarks, history and RSS reading.
- A themeable interface.
- Integrated Adblock.
- Speed dial."
HOMEPAGE="http://www.qupzilla.com"
COPYRIGHT="2010-2015 David Rosca"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/QupZilla/qupzilla/releases/download/v$portVersion/QupZilla-$portVersion.tar.xz"
CHECKSUM_SHA256="620ffb10a3f6b3f596c2c38a84d9c320cb66dd2d5e6701e8e31945e26308fcac"
SOURCE_DIR="QupZilla-$portVersion"
PATCHES="qupzilla-1.8.x-system_certificates.patchset
qupzilla-1.8.9.patchset"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
qupzilla$secondaryArchSuffix = $portVersion
app:QupZilla$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku${secondaryArchSuffix}
lib:libcrypto$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5Script$secondaryArchSuffix
lib:libQt5Sql$secondaryArchSuffix
lib:libQt5PrintSupport$secondaryArchSuffix
lib:libQt5WebKit$secondaryArchSuffix
lib:libQt5WebKitWidgets$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
#
# lib:libexecinfo$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Network$secondaryArchSuffix
devel:libQt5Script$secondaryArchSuffix
devel:libQt5Sql$secondaryArchSuffix
devel:libQt5PrintSupport$secondaryArchSuffix
devel:libQt5WebKit$secondaryArchSuffix
devel:libQt5WebKitWidgets$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
devel:libcrypto$secondaryArchSuffix
devel:libexecinfo$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:g++$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:qmake$secondaryArchSuffix >= 5
"
BUILD()
{
export QUPZILLA_PREFIX=$appsDir/QupZilla
qmake
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir/QupZilla/lib
cd bin
# Add Haiku resources
rc -o ../haiku/QupZilla.rsrc ../haiku/QupZilla.rdef
xres -o qupzilla ../haiku/QupZilla.rsrc
mimeset -f qupzilla
cp qupzilla $appsDir/QupZilla/QupZilla
cp -R locale $appsDir/QupZilla
cp -R plugins $appsDir/QupZilla
cp -R themes $appsDir/QupZilla
cp libQupZilla.* $appsDir/QupZilla/lib
addAppDeskbarSymlink $appsDir/QupZilla/QupZilla "QupZilla"
}