summaryrefslogtreecommitdiff
path: root/app-text/diffpdf
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/diffpdf')
-rw-r--r--app-text/diffpdf/diffpdf-2.1.3-r4.ebuild (renamed from app-text/diffpdf/diffpdf-2.1.3-r3.ebuild)8
-rw-r--r--app-text/diffpdf/files/diffpdf-2.1.3-qt6.10.patch11
-rw-r--r--app-text/diffpdf/files/diffpdf.desktop9
3 files changed, 16 insertions, 12 deletions
diff --git a/app-text/diffpdf/diffpdf-2.1.3-r3.ebuild b/app-text/diffpdf/diffpdf-2.1.3-r4.ebuild
index 3aa2d346d900..760b4910a4f3 100644
--- a/app-text/diffpdf/diffpdf-2.1.3-r3.ebuild
+++ b/app-text/diffpdf/diffpdf-2.1.3-r4.ebuild
@@ -24,14 +24,16 @@ RDEPEND="
DEPEND="${RDEPEND}"
PATCHES=(
- "${FILESDIR}"/${P}-qt5.patch
- "${FILESDIR}"/${P}-qt6.patch
+ "${FILESDIR}"/${P}-qt5.patch # bug #641850
+ "${FILESDIR}"/${P}-qt6.patch # bug #947239
+ "${FILESDIR}"/${P}-qt6.10.patch # bug #966860
)
src_install() {
cmake_src_install
einstalldocs
doman diffpdf.1
- domenu "${FILESDIR}"/${PN}.desktop
+ make_desktop_entry --eapi9 diffpdf -n DiffPDF -d "eu.qtrac.diffpdf" \
+ -c "Utility;Qt;" -C "Compare two PDF files"
newicon images/icon.png ${PN}.png
}
diff --git a/app-text/diffpdf/files/diffpdf-2.1.3-qt6.10.patch b/app-text/diffpdf/files/diffpdf-2.1.3-qt6.10.patch
new file mode 100644
index 000000000000..5af2bb28d260
--- /dev/null
+++ b/app-text/diffpdf/files/diffpdf-2.1.3-qt6.10.patch
@@ -0,0 +1,11 @@
+--- a/textitem.cpp
++++ b/textitem.cpp
+@@ -161,7 +161,7 @@ void TextItems::debug(const int page, const int ToleranceY,
+ const QRect rect = item.toRect();
+ out << item.text;
+ if (!ComparingWords)
+- out << QString(" %1").arg(item.text.at(0).unicode(), 4, 16,
++ out << QString(" %1").arg(static_cast<int>(item.text.at(0).unicode()), 4, 16,
+ QChar('0'));
+ if (Yx) {
+ const int y = normalizedY(static_cast<int>(item.rect.y()), \ No newline at end of file
diff --git a/app-text/diffpdf/files/diffpdf.desktop b/app-text/diffpdf/files/diffpdf.desktop
deleted file mode 100644
index 1f4d0cb0d090..000000000000
--- a/app-text/diffpdf/files/diffpdf.desktop
+++ /dev/null
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Name=DiffPDF
-Comment=Compare two PDF files
-Exec=diffpdf
-Icon=diffpdf
-Terminal=false
-Type=Application
-Categories=Utility;Qt;