mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
QPDFView: new recipe (#1508)
This commit is contained in:
26
app-text/qpdfview/additional-files/qpdfview.rdef.in
Normal file
26
app-text/qpdfview/additional-files/qpdfview.rdef.in
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
resource app_flags B_MULTIPLE_LAUNCH;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
short_info = "Qt document reader",
|
||||
long_info = "A tabbed document viewer"
|
||||
};
|
||||
|
||||
resource app_signature "application/x-vnd.qpdfview";
|
||||
|
||||
resource file_types message {
|
||||
"types" = "application",
|
||||
"types" = "application/pdf",
|
||||
"types" = "application/x-pdf",
|
||||
"types" = "application/x-djvu",
|
||||
"types" = "image/jpeg",
|
||||
"types" = "image/gif",
|
||||
"types" = "image/png",
|
||||
"types" = "image/tiff",
|
||||
"types" = "image/bmp"
|
||||
};
|
||||
22
app-text/qpdfview/patches/qpdfview-0.4.17~beta1.patchset
Normal file
22
app-text/qpdfview/patches/qpdfview-0.4.17~beta1.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From 364e06c1cd7f028715cd2779b237e82b25556fe8 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
||||
Date: Tue, 11 Jul 2017 14:16:23 +0200
|
||||
Subject: Haiku build fix
|
||||
|
||||
|
||||
diff --git a/application.pro b/application.pro
|
||||
index 7d0f0c0..ead2b6a 100644
|
||||
--- a/application.pro
|
||||
+++ b/application.pro
|
||||
@@ -242,6 +242,8 @@ lessThan(QT_MAJOR_VERSION, 5) : !without_magic {
|
||||
SOURCES += sources/signalhandler.cpp
|
||||
}
|
||||
|
||||
+haiku:LIBS += -lnetwork -lpoppler -lpoppler-qt5
|
||||
+
|
||||
DEFINES += DATA_INSTALL_PATH=\\\"$${DATA_INSTALL_PATH}\\\"
|
||||
|
||||
|
||||
--
|
||||
2.13.1
|
||||
|
||||
98
app-text/qpdfview/qpdfview-0.4.17~beta1.recipe
Normal file
98
app-text/qpdfview/qpdfview-0.4.17~beta1.recipe
Normal file
@@ -0,0 +1,98 @@
|
||||
SUMMARY="A tabbed document viewer"
|
||||
DESCRIPTION="qPDFView is a tabbed document viewer using Poppler, libspectre, \
|
||||
DjVuLibre, CUPS and Qt, licensed under GPL version 2 or later."
|
||||
HOMEPAGE="https://launchpad.net/qpdfview/"
|
||||
COPYRIGHT="Adam Reichold et al."
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="$HOMEPAGE/trunk/0.4.17beta1/+download/qpdfview-0.4.17beta1.tar.gz"
|
||||
CHECKSUM_SHA256="60206c5f76410a35098e3c965552cec08cd85941776ea6f6b207d7ea63ce940f"
|
||||
SOURCE_DIR="qpdfview-0.4.17beta1"
|
||||
PATCHES="qpdfview-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="qpdfview.rdef.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
poppler$secondaryArchSuffix = $portVersion
|
||||
app:qpdfview$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libdjvulibre$secondaryArchSuffix
|
||||
lib:libGl$secondaryArchSuffix
|
||||
lib:libmagic$secondaryArchSuffix
|
||||
lib:libpoppler$secondaryArchSuffix
|
||||
lib:libpoppler${secondaryArchSuffix}_qt5
|
||||
lib:libQt5Concurrent$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5DBus$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5PrintSupport$secondaryArchSuffix
|
||||
lib:libQt5Sql$secondaryArchSuffix
|
||||
lib:libQt5Svg$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libdbus_1$secondaryArchSuffix
|
||||
devel:libdjvulibre$secondaryArchSuffix
|
||||
devel:libGl$secondaryArchSuffix
|
||||
devel:libmagic$secondaryArchSuffix
|
||||
devel:libpoppler$secondaryArchSuffix
|
||||
devel:libpoppler${secondaryArchSuffix}_qt5
|
||||
devel:libQt5Concurrent$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5DBus$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5PrintSupport$secondaryArchSuffix
|
||||
devel:libQt5Sql$secondaryArchSuffix
|
||||
devel:libQt5Svg$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:lrelease$secondaryArchSuffix >= 5
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:qmake$secondaryArchSuffix >= 5
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
lrelease qpdfview.pro
|
||||
|
||||
mkdir -p haiku_build && cd haiku_build
|
||||
qmake ../qpdfview.pro \
|
||||
CONFIG+="without_ps without_cups without_synctex" \
|
||||
TARGET_INSTALL_PATH=$appsDir/qPDFView \
|
||||
PLUGIN_INSTALL_PATH=$appsDir/qPDFView/lib \
|
||||
MANUAL_INSTALL_PATH=$manDir
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd haiku_build
|
||||
make install
|
||||
|
||||
# Icon
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3 | cut -d~ -f1`"
|
||||
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
$portDir/additional-files/qpdfview.rdef.in > qpdfview.rdef
|
||||
|
||||
addResourcesToBinaries qpdfview.rdef \
|
||||
$appsDir/qPDFView/qpdfview
|
||||
|
||||
addAppDeskbarSymlink $appsDir/qPDFView/qpdfview qPDFView
|
||||
}
|
||||
Reference in New Issue
Block a user