diff options
author | dinoex <dinoex@FreeBSD.org> | 2018-12-14 01:10:52 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2018-12-14 01:10:52 +0800 |
commit | a7d3bade47a2376da072b82e1443ee4b69822f9b (patch) | |
tree | e4f5c5dc8d597276a9e8ed0d4ed5a47613d7df35 | |
parent | 971d999dd83cd79a92557044fec500955cc36f97 (diff) | |
download | freebsd-ports-gnome-a7d3bade47a2376da072b82e1443ee4b69822f9b.tar.gz freebsd-ports-gnome-a7d3bade47a2376da072b82e1443ee4b69822f9b.tar.zst freebsd-ports-gnome-a7d3bade47a2376da072b82e1443ee4b69822f9b.zip |
- use qt5
Obtained from: debian
-rw-r--r-- | graphics/diffpdf/files/patch-aboutform.cpp | 19 | ||||
-rw-r--r-- | graphics/diffpdf/files/patch-diffpdf.pro | 46 | ||||
-rw-r--r-- | graphics/diffpdf/files/patch-generic.hpp | 11 | ||||
-rw-r--r-- | graphics/diffpdf/files/patch-helpform.cpp | 10 | ||||
-rw-r--r-- | graphics/diffpdf/files/patch-label.cpp | 10 | ||||
-rw-r--r-- | graphics/diffpdf/files/patch-lineedit.cpp | 10 | ||||
-rw-r--r-- | graphics/diffpdf/files/patch-main.cpp | 10 | ||||
-rw-r--r-- | graphics/diffpdf/files/patch-mainwindow.hpp | 11 | ||||
-rw-r--r-- | graphics/diffpdf/files/patch-optionsform.cpp | 26 |
9 files changed, 153 insertions, 0 deletions
diff --git a/graphics/diffpdf/files/patch-aboutform.cpp b/graphics/diffpdf/files/patch-aboutform.cpp new file mode 100644 index 000000000000..6c99e437405e --- /dev/null +++ b/graphics/diffpdf/files/patch-aboutform.cpp @@ -0,0 +1,19 @@ +--- aboutform.cpp.orig 2013-10-15 07:01:22 UTC ++++ aboutform.cpp +@@ -11,7 +11,6 @@ + */ + + #include "aboutform.hpp" +-#include <poppler-version.h> + #include <QApplication> + #include <QHBoxLayout> + #include <QSettings> +@@ -52,7 +51,7 @@ AboutForm::AboutForm(QWidget *parent) : + "</ul>" + "I also provide training and consultancy in C++, Go, Python 2, " + "Python 3, C++/Qt, and PyQt4.").arg(qApp->applicationName()) +- .arg(Version).arg(qVersion()).arg(POPPLER_VERSION)); ++ .arg(Version).arg(qVersion()).arg("Qt 5")); + QTextBrowser *contributorsBrowser = new QTextBrowser; + contributorsBrowser->setReadOnly(true); + contributorsBrowser->setHtml(tr("<table>" diff --git a/graphics/diffpdf/files/patch-diffpdf.pro b/graphics/diffpdf/files/patch-diffpdf.pro new file mode 100644 index 000000000000..3b5b2651360c --- /dev/null +++ b/graphics/diffpdf/files/patch-diffpdf.pro @@ -0,0 +1,46 @@ +--- diffpdf.pro.orig 2013-10-15 07:01:22 UTC ++++ diffpdf.pro +@@ -31,35 +31,36 @@ TRANSLATIONS += diffpdf_fr.ts + TRANSLATIONS += diffpdf_de.ts + TRANSLATIONS += diffpdf_es.ts + CODECFORTR = UTF-8 +-LIBS += -lpoppler-qt4 ++LIBS += -lpoppler-qt5 ++QT += widgets printsupport + win32 { + CONFIG += release + } + exists($(HOME)/opt/poppler024/) { + message(Using locally built Poppler library) + INCLUDEPATH += $(HOME)/opt/poppler024/include/poppler/cpp +- INCLUDEPATH += $(HOME)/opt/poppler024/include/poppler/qt4 ++ INCLUDEPATH += $(HOME)/opt/poppler024/include/poppler/qt5 + LIBS += -Wl,-rpath -Wl,$(HOME)/opt/poppler024/lib -L$(HOME)/opt/poppler024/lib + } else { + exists(/poppler_lib) { + message(Using locally built Poppler library on Windows) + INCLUDEPATH += /c/poppler_lib/include/poppler/cpp +- INCLUDEPATH += /c/poppler_lib/include/poppler/qt4 ++ INCLUDEPATH += /c/poppler_lib/include/poppler/qt5 + LIBS += -Wl,-rpath -Wl,/c/poppler_lib/bin -Wl,-L/c/poppler_lib/bin + } else { +- exists(/usr/include/poppler/qt4) { ++ exists(/usr/include/poppler/qt5) { + INCLUDEPATH += /usr/include/poppler/cpp +- INCLUDEPATH += /usr/include/poppler/qt4 ++ INCLUDEPATH += /usr/include/poppler/qt5 + } else { + INCLUDEPATH += /usr/local/include/poppler/cpp +- INCLUDEPATH += /usr/local/include/poppler/qt4 ++ INCLUDEPATH += /usr/local/include/poppler/qt5 + } + } + } + #exists($(HOME)/opt/podofo09/) { + # message(Using locally built PoDoFo library) + # INCLUDEPATH += $(HOME)/opt/podofo09/include/poppler/cpp +-# INCLUDEPATH += $(HOME)/opt/podofo09/include/poppler/qt4 ++# INCLUDEPATH += $(HOME)/opt/podofo09/include/poppler/qt5 + # LIBS += -Wl,-rpath -Wl,$(HOME)/opt/podofo09/lib64 -Wl,-L$(HOME)/opt/podofo09/lib64 + #} else { + # exists(/usr/include/podofo) { diff --git a/graphics/diffpdf/files/patch-generic.hpp b/graphics/diffpdf/files/patch-generic.hpp new file mode 100644 index 000000000000..71b3c93e5fcc --- /dev/null +++ b/graphics/diffpdf/files/patch-generic.hpp @@ -0,0 +1,11 @@ +--- generic.hpp.orig 2013-10-15 07:01:22 UTC ++++ generic.hpp +@@ -12,7 +12,7 @@ + for more details. + */ + +-#include <poppler-qt4.h> ++#include <poppler-qt5.h> + #include <QMetaType> + #include <QPair> + #include <QPixmap> diff --git a/graphics/diffpdf/files/patch-helpform.cpp b/graphics/diffpdf/files/patch-helpform.cpp new file mode 100644 index 000000000000..d9bb0851495f --- /dev/null +++ b/graphics/diffpdf/files/patch-helpform.cpp @@ -0,0 +1,10 @@ +--- helpform.cpp.orig 2013-10-15 07:01:22 UTC ++++ helpform.cpp +@@ -11,7 +11,6 @@ + */ + + #include "helpform.hpp" +-#include <poppler-version.h> + #include <QApplication> + #include <QFile> + #include <QKeySequence> diff --git a/graphics/diffpdf/files/patch-label.cpp b/graphics/diffpdf/files/patch-label.cpp new file mode 100644 index 000000000000..8b74c47538f0 --- /dev/null +++ b/graphics/diffpdf/files/patch-label.cpp @@ -0,0 +1,10 @@ +--- label.cpp.orig 2013-10-15 07:01:22 UTC ++++ label.cpp +@@ -15,6 +15,7 @@ + #include <QDragEnterEvent> + #include <QDragEnterEvent> + #include <QMouseEvent> ++#include <QMimeData> + + Label::Label(QWidget *parent) : QLabel(parent) + { diff --git a/graphics/diffpdf/files/patch-lineedit.cpp b/graphics/diffpdf/files/patch-lineedit.cpp new file mode 100644 index 000000000000..2e1763a9d43f --- /dev/null +++ b/graphics/diffpdf/files/patch-lineedit.cpp @@ -0,0 +1,10 @@ +--- lineedit.cpp.orig 2013-10-15 07:01:22 UTC ++++ lineedit.cpp +@@ -14,6 +14,7 @@ + #include "lineedit.hpp" + #include <QDragEnterEvent> + #include <QDragEnterEvent> ++#include <QMimeData> + + + LineEdit::LineEdit(QWidget *parent) : QLineEdit(parent) diff --git a/graphics/diffpdf/files/patch-main.cpp b/graphics/diffpdf/files/patch-main.cpp new file mode 100644 index 000000000000..50febf5bd24f --- /dev/null +++ b/graphics/diffpdf/files/patch-main.cpp @@ -0,0 +1,10 @@ +--- main.cpp.orig 2013-10-15 07:01:22 UTC ++++ main.cpp +@@ -31,7 +31,6 @@ int main(int argc, char *argv[]) + app.setOrganizationDomain("qtrac.eu"); + app.setApplicationName("DiffPDF"); + app.setWindowIcon(QIcon(":/icon.png")); +- QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8")); + + QTextStream out(stdout); + QStringList args = app.arguments().mid(1); diff --git a/graphics/diffpdf/files/patch-mainwindow.hpp b/graphics/diffpdf/files/patch-mainwindow.hpp new file mode 100644 index 000000000000..09efa165bd59 --- /dev/null +++ b/graphics/diffpdf/files/patch-mainwindow.hpp @@ -0,0 +1,11 @@ +--- mainwindow.hpp.orig 2013-10-15 07:01:22 UTC ++++ mainwindow.hpp +@@ -19,7 +19,7 @@ + #else + #include <tr1/memory> + #endif +-#include <poppler-qt4.h> ++#include <poppler-qt5.h> + #include <QBrush> + #include <QList> + #include <QMainWindow> diff --git a/graphics/diffpdf/files/patch-optionsform.cpp b/graphics/diffpdf/files/patch-optionsform.cpp new file mode 100644 index 000000000000..ae16f5c8b772 --- /dev/null +++ b/graphics/diffpdf/files/patch-optionsform.cpp @@ -0,0 +1,26 @@ +--- optionsform.cpp.orig 2013-10-15 07:01:22 UTC ++++ optionsform.cpp +@@ -76,9 +76,9 @@ void OptionsForm::createWidgets() + << qMakePair(tr("Diagonal \\"), Qt::FDiagPattern) + << qMakePair(tr("Diagonal Cross"), Qt::DiagCrossPattern)) + brushStyleComboBox->addItem(brushSwatch(pair.second, color), +- pair.first, pair.second); ++ pair.first, QVariant::fromValue(pair.second)); + brushStyleComboBox->setCurrentIndex(brushStyleComboBox->findData( +- brush.style())); ++ QVariant::fromValue(brush.style()))); + + penStyleComboBox = new QComboBox; + typedef QPair<QString, Qt::PenStyle> PenPair; +@@ -90,9 +90,9 @@ void OptionsForm::createWidgets() + << qMakePair(tr("Dash-Dotted"), Qt::DashDotLine) + << qMakePair(tr("Dash-Dot-Dotted"), Qt::DashDotDotLine)) + penStyleComboBox->addItem(penStyleSwatch(pair.second, color), +- pair.first, pair.second); ++ pair.first, QVariant::fromValue(pair.second)); + penStyleComboBox->setCurrentIndex(penStyleComboBox->findData( +- pen.style())); ++ QVariant::fromValue(pen.style()))); + + alphaSpinBox = new QSpinBox; + alphaSpinBox->setRange(1, 100); |