CutyCapt: new recipe (#2517)

This commit is contained in:
miqlas
2018-05-20 16:54:52 +02:00
committed by waddlesplash
parent 6d9f144ebc
commit 3eb34686be
2 changed files with 111 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
SUMMARY="A Qt WebKit Web Page Rendering Capture Utility"
DESCRIPTION="CutyCapt is a Qt and WebKit based command-line utility that \
captures WebKit's rendering of a web page into various bitmap, vector, and \
other file formats."
HOMEPAGE="https://github.com/hoehrmann/CutyCapt"
COPYRIGHT="2003-2013 Bjoern Hoehrmann"
LICENSE="GNU LGPL v2.1"
REVISION="1"
srcGitRev="bea8c782dba815ff7f2d688d113b05e3c2fe82f7"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="32468530e153ab62488c50f76b83c9c79f3995fd62ef92588dec632252f9be37"
SOURCE_FILENAME="cutycapt-$srcGitRev.tar.gz"
SOURCE_DIR="CutyCapt-$srcGitRev"
PATCHES="cutycapt-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
cutycapt$secondaryArchSuffix = $portVersion
cmd:cutycapt$commandSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5PrintSupport$secondaryArchSuffix
lib:libQt5Svg$secondaryArchSuffix
lib:libQt5WebKit$secondaryArchSuffix
lib:libQt5WebKitWidgets$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libGL$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Network$secondaryArchSuffix
devel:libQt5PrintSupport$secondaryArchSuffix
devel:libQt5Svg$secondaryArchSuffix
devel:libQt5WebKit$secondaryArchSuffix
devel:libQt5WebKitWidgets$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:qmake$secondaryArchSuffix >= 5
"
defineDebugInfoPackage cutycapt$secondaryArchSuffix \
"$commandBinDir"/CutyCapt
BUILD()
{
qmake .
make $jobArgs
}
INSTALL()
{
install -d "$commandBinDir"
install -t "$commandBinDir" CutyCapt
}

View File

@@ -0,0 +1,35 @@
From 09d1b93bb82407ea5dc56c79ae9d9789dd17ba5d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Mon, 30 Apr 2018 13:49:10 +0200
Subject: Build fix
diff --git a/CutyCapt.cpp b/CutyCapt.cpp
old mode 100755
new mode 100644
index c732cb9..067c77f
--- a/CutyCapt.cpp
+++ b/CutyCapt.cpp
@@ -27,6 +27,7 @@
#include <QtWebKit>
#include <QtGui>
#include <QSvgGenerator>
+#include "QtPrintSupport/QPrinter"
#if QT_VERSION < 0x050000
#include <QPrinter>
diff --git a/CutyCapt.pro b/CutyCapt.pro
old mode 100755
new mode 100644
index 10dda79..049293e
--- a/CutyCapt.pro
+++ b/CutyCapt.pro
@@ -1,4 +1,4 @@
-QT += webkit svg network
+QT += webkit svg network printsupport
SOURCES = CutyCapt.cpp
HEADERS = CutyCapt.hpp
CONFIG += qt console
--
2.16.2