commit:     f455ec9777c74f2a7c1d83a1c3fce454d1896eca
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 26 10:26:12 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Sep 28 08:26:47 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f455ec97

app-text/djview: treeclean

Closes: https://bugs.gentoo.org/759976 (pkgremoved)
Closes: https://bugs.gentoo.org/910052 (pkgremoved)
Closes: https://bugs.gentoo.org/961794 (pkgremoved)
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-text/djview/Manifest                        |  1 -
 app-text/djview/djview-4.10.6-r2.ebuild         | 86 -------------------------
 app-text/djview/files/djview-4.10.6-hidpi.patch | 68 -------------------
 app-text/djview/metadata.xml                    | 11 ----
 profiles/package.mask                           |  7 --
 5 files changed, 173 deletions(-)

diff --git a/app-text/djview/Manifest b/app-text/djview/Manifest
deleted file mode 100644
index 7f6eea3bb2e4..000000000000
--- a/app-text/djview/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST djview-4.10.6.tar.gz 1113072 BLAKE2B 
db965ad7dc3b8191855e9c5f23af3cd963901ca649a937e6f85bad8f9f924e0636b30a9a5350c114dcfecea570f013ba395508eb6cf1d45afda674892bcd196e
 SHA512 
c06b9c4c7addd9dededdc9d441094bca685c4d23744e3d1208eab33d9d341a85f120176bf9f1b879ac6620f591eefe05ac774870b1ba3215c43baf1eaf9d14f8

diff --git a/app-text/djview/djview-4.10.6-r2.ebuild 
b/app-text/djview/djview-4.10.6-r2.ebuild
deleted file mode 100644
index afe3918dd9d5..000000000000
--- a/app-text/djview/djview-4.10.6-r2.ebuild
+++ /dev/null
@@ -1,86 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools desktop flag-o-matic qmake-utils toolchain-funcs xdg-utils
-
-DESCRIPTION="Portable DjVu viewer using Qt"
-HOMEPAGE="https://djvu.sourceforge.net/djview4.html";
-SRC_URI="https://downloads.sourceforge.net/djvu/${P}.tar.gz";
-
-LICENSE="GPL-2+"
-SLOT="0"
-KEYWORDS="amd64 ~hppa ppc ppc64 x86"
-IUSE="debug"
-
-RDEPEND="
-       >=app-text/djvu-3.5.22-r1
-       dev-qt/qtcore:5
-       dev-qt/qtgui:5
-       dev-qt/qtnetwork:5
-       dev-qt/qtopengl:5
-       dev-qt/qtprintsupport:5
-       dev-qt/qtwidgets:5"
-DEPEND="${RDEPEND}"
-BDEPEND="
-       dev-qt/linguist-tools:5
-       >=dev-build/autoconf-2.67
-       virtual/pkgconfig"
-
-DOCS=( README NEWS )
-
-PATCHES=( "${FILESDIR}/${P}-hidpi.patch" )
-
-src_prepare() {
-       default
-
-       # Force XEmbed instead of Xt-based mainloop (disable Xt autodep)
-       sed -e 's:\(ac_xt=\)yes:\1no:' -i configure* || die
-       sed 's/AC_CXX_OPTIMIZE/OPTS=;AC_SUBST(OPTS)/' -i configure.ac || die 
#263688
-       rm aclocal.m4 config/{libtool.m4,install-sh,ltmain.sh,lt*.m4} || die
-       AT_M4DIR="config" eautoreconf
-}
-
-src_configure() {
-       # See config/acinclude.m4
-       use debug || append-cppflags "-DNDEBUG"
-
-       QTDIR=$(qt5_get_libdir)/qt5 \
-       econf \
-               --with-x \
-               --disable-desktopfiles \
-               --disable-nsdejavu
-}
-
-src_compile() {
-       emake CC="$(tc-getCC)" CXX="$(tc-getCXX)"
-}
-
-src_install() {
-       emake DESTDIR="${D}" \
-               plugindir=/usr/$(get_libdir)/${PLUGINS_DIR} \
-                       install
-
-       einstalldocs
-
-       insinto /usr/share/icons/hicolor/32x32/apps
-       newins desktopfiles/prebuilt-hi32-djview4.png djvulibre-djview4.png
-       insinto /usr/share/icons/hicolor/64x64/apps
-       newins desktopfiles/prebuilt-hi64-djview4.png djvulibre-djview4.png
-       insinto /usr/share/icons/hicolor/scalable/apps
-       newins desktopfiles/djview.svg djvulibre-djview4.svg
-       sed -e 's/Exec=djview4/Exec=djview/' \
-               -i desktopfiles/djvulibre-djview4.desktop || die
-       domenu desktopfiles/djvulibre-djview4.desktop
-}
-
-pkg_postinst() {
-       xdg_desktop_database_update
-       xdg_icon_cache_update
-}
-
-pkg_postrm() {
-       xdg_desktop_database_update
-       xdg_icon_cache_update
-}

diff --git a/app-text/djview/files/djview-4.10.6-hidpi.patch 
b/app-text/djview/files/djview-4.10.6-hidpi.patch
deleted file mode 100644
index 1063b4c5b827..000000000000
--- a/app-text/djview/files/djview-4.10.6-hidpi.patch
+++ /dev/null
@@ -1,68 +0,0 @@
-commit 090398d4181797d2284be16026f8e0573fd0579b
-Author: Leon Bottou <[email protected]>
-Date:   Wed Mar 2 20:52:03 2016 -0500
-
-    High dpi support for page thumbnails
-
-diff --git a/src/djview.cpp b/src/djview.cpp
-index 2571c49..df14110 100644
---- a/src/djview.cpp
-+++ b/src/djview.cpp
-@@ -137,7 +137,12 @@ QDjViewApplication::QDjViewApplication(int &argc, char 
**argv)
-   extern void qt_mac_set_native_menubar(bool);
-   qt_mac_set_native_menubar(false);
- #endif
--
-+  
-+  // Enable highdpi pixmaps
-+#if QT_VERSION >= 0x50200
-+  setAttribute(Qt::AA_UseHighDpiPixmaps, true);
-+#endif
-+  
-   // Wire session management signals
-   connect(this, SIGNAL(saveStateRequest(QSessionManager&)),
-           this, SLOT(saveSessionState(QSessionManager&)) );
-diff --git a/src/qdjviewsidebar.cpp b/src/qdjviewsidebar.cpp
-index 38edf45..34e8c3c 100644
---- a/src/qdjviewsidebar.cpp
-+++ b/src/qdjviewsidebar.cpp
-@@ -603,9 +603,14 @@ QDjViewThumbnails::Model::makeIcon(int pageno) const
-   if (doc)
-     {
-       // render thumbnail
--      int w = size;
--      int h = size;
--      QImage img(size, size, QImage::Format_RGB32);
-+#if QT_VERSION >= 0x50200
-+      int dpr = djview->devicePixelRatio();
-+#else
-+      int dpr = 1;
-+#endif
-+      int w = size * dpr;
-+      int h = size * dpr;
-+      QImage img(size*dpr, size*dpr, QImage::Format_RGB32);
-       int status = ddjvu_thumbnail_status(*doc, pageno, 0);
-       if (status == DDJVU_JOB_NOTSTARTED)
-         {
-@@ -614,9 +619,9 @@ QDjViewThumbnails::Model::makeIcon(int pageno) const
-       else if (ddjvu_thumbnail_render(*doc, pageno, &w, &h, format, 
-                                       img.bytesPerLine(), (char*)img.bits() ))
-         {
--          QPixmap pixmap(size,size);
-+          QPixmap pixmap(size*dpr,size*dpr);
-           pixmap.fill();
--          QPoint dst((size-w)/2, (size-h)/2);
-+          QPoint dst((size*dpr-w)/2, (size*dpr-h)/2);
-           QRect src(0,0,w,h);
-           QPainter painter;
-           painter.begin(&pixmap);
-@@ -625,6 +630,9 @@ QDjViewThumbnails::Model::makeIcon(int pageno) const
-           painter.setPen(Qt::darkGray);
-           painter.drawRect(dst.x(), dst.y(), w-1, h-1);
-           painter.end();
-+#if QT_VERSION >= 0x50200
-+          pixmap.setDevicePixelRatio(dpr);
-+#endif
-           return QIcon(pixmap);
-         }
-     }

diff --git a/app-text/djview/metadata.xml b/app-text/djview/metadata.xml
deleted file mode 100644
index 5d6d042f8e80..000000000000
--- a/app-text/djview/metadata.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
-<pkgmetadata>
-       <maintainer type="project">
-               <email>[email protected]</email>
-               <name>Gentoo TeX Project</name>
-       </maintainer>
-       <upstream>
-               <remote-id type="sourceforge">djvu</remote-id>
-       </upstream>
-</pkgmetadata>

diff --git a/profiles/package.mask b/profiles/package.mask
index f303a1af38e3..6c2844000edf 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -177,13 +177,6 @@ dev-lang/yap
 # Removal on 2025-09-28.  Bugs #962124, #729162.
 app-crypt/md4sum
 
-# Andreas Sturmlechner <[email protected]> (2025-08-29)
-# A version bump pending since 2020, Qt5-based and stuck on EAPI-7.
-# This package needs a maintainer. Step up if you need this, try to make
-# sense of upstream's repositories and contact them about the need to port
-# to Qt6. Bugs #759976, #910052, #961794. Removal on 2025-09-28.
-app-text/djview
-
 # Mike Pagano <[email protected]> (2025-08-28)
 # Long unmaintained upstream (20+ years since last release).
 # Does not compile.

Reply via email to