diff options
Diffstat (limited to 'app-text/djview')
-rw-r--r-- | app-text/djview/Manifest | 4 | ||||
-rw-r--r-- | app-text/djview/djview-4.10.6-r1.ebuild | 85 | ||||
-rw-r--r-- | app-text/djview/files/djview-4.10.6-hidpi.patch | 68 | ||||
-rw-r--r-- | app-text/djview/metadata.xml | 11 |
4 files changed, 0 insertions, 168 deletions
diff --git a/app-text/djview/Manifest b/app-text/djview/Manifest deleted file mode 100644 index a5ac46a02235..000000000000 --- a/app-text/djview/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -AUX djview-4.10.6-hidpi.patch 2313 BLAKE2B 4d3356baa36cf830a8e01314f6fbf081c0b8fe8b6a43b2e14e4966fab2d07932088c66e1f68802282537d490503586a528c2a4b86eea26615fc8eefbf6b7d058 SHA512 922b0c321edaeed3a76ee206fa4353366e3d744dd30612d034070c251ecfca6bc18a2ddaf110cfbc811ea47426f2d9e370d5a58cce41b396b793ba27223bb881 -DIST djview-4.10.6.tar.gz 1113072 BLAKE2B db965ad7dc3b8191855e9c5f23af3cd963901ca649a937e6f85bad8f9f924e0636b30a9a5350c114dcfecea570f013ba395508eb6cf1d45afda674892bcd196e SHA512 c06b9c4c7addd9dededdc9d441094bca685c4d23744e3d1208eab33d9d341a85f120176bf9f1b879ac6620f591eefe05ac774870b1ba3215c43baf1eaf9d14f8 -EBUILD djview-4.10.6-r1.ebuild 2030 BLAKE2B 79d80ba1e21ce05edcd2462e56f1d61e6279fbce72f24c21142c4b0b3bf74326343d505d06f06d7e595ca7a688dbbc4fe3c3b58f63fb091bb5f85ff4a592a6da SHA512 6cbf7319de31e604e9e09915b98fe206403fbda2fb524889fefac97cfafca3aa9db36a328f8f4deeb62bf6303bc08c5f15a369c13ed46f91636b02f9f65cfc88 -MISC metadata.xml 323 BLAKE2B c8498cdd0e1820eb610a9e2ede4e10287977c2eb71dd1b6b9862e3d11a34760cf8dcb5e9e59535ab0ceed04f3be2b00aa4942657a25fffc87b23966c2b2c1caf SHA512 53a7a7290a2286fd31248db31160697a3b2693275013a1ea453258f9ac52fa3ea7111718ca35a5eb1652050699e5be1111c7ebb73b2a3c699383d8305509a5c4 diff --git a/app-text/djview/djview-4.10.6-r1.ebuild b/app-text/djview/djview-4.10.6-r1.ebuild deleted file mode 100644 index fa5fe0ff6bd9..000000000000 --- a/app-text/djview/djview-4.10.6-r1.ebuild +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools gnome2-utils flag-o-matic nsplugins qmake-utils toolchain-funcs versionator xdg-utils - -DESCRIPTION="Portable DjVu viewer using Qt" -HOMEPAGE="http://djvu.sourceforge.net/djview4.html" -SRC_URI="mirror://sourceforge/djvu/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~hppa ppc ppc64 x86" -IUSE="debug nsplugin" - -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} - >=sys-devel/autoconf-2.67 - virtual/pkgconfig - nsplugin? ( dev-libs/glib:2 )" - -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} - 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 \ - $(use_enable nsplugin nsdejavu) -} - -src_compile() { - emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" -} - -src_install() { - emake DESTDIR="${D}" \ - plugindir=/usr/$(get_libdir)/${PLUGINS_DIR} \ - install - - einstalldocs - - cd desktopfiles - insinto /usr/share/icons/hicolor/32x32/apps - newins prebuilt-hi32-djview4.png djvulibre-djview4.png - insinto /usr/share/icons/hicolor/64x64/apps - newins prebuilt-hi64-djview4.png djvulibre-djview4.png - insinto /usr/share/icons/hicolor/scalable/apps - newins djview.svg djvulibre-djview4.svg - sed -i -e 's/Exec=djview4/Exec=djview/' djvulibre-djview4.desktop - domenu djvulibre-djview4.desktop -} - -pkg_postinst() { - xdg_desktop_database_update - gnome2_icon_cache_update -} - -pkg_postrm() { - xdg_desktop_database_update - gnome2_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 <leon@bottou.org> -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 73ad11b1a6a5..000000000000 --- a/app-text/djview/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>tex@gentoo.org</email> - <name>Gentoo TeX Project</name> - </maintainer> - <upstream> - <remote-id type="sourceforge">djvu</remote-id> - </upstream> -</pkgmetadata> |