mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 20:43:38 +02:00
okular-backend-mupdf: new pdf backend end its deps
This commit is contained in:
parent
afae4597d0
commit
4098b9167b
5 changed files with 82 additions and 0 deletions
1
app-text/mujs/Manifest
Normal file
1
app-text/mujs/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
EBUILD mujs-20140925.ebuild 525 SHA256 9e9983d9f03d2767256e0c3e133b15e38d9e46fa866d533f2c301e5b2cc151bd SHA512 18f351ffc95074b937758e3d5222f8d3b6b314c6b383f77b94004a0218e90c94b5bf2d57d9be46d04c55468567e66fcf239c666c659259499104783cb08dd2a1 WHIRLPOOL 245e8bec7d6a2d485fb4cce3932073b7e24019ba5dad83c68081a13b58c13bcb6d9a411d7746bff33e455e7e8a2923df3fb88cca40915635fe7f04610236b21e
|
||||
24
app-text/mujs/mujs-20140925.ebuild
Normal file
24
app-text/mujs/mujs-20140925.ebuild
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: blshkv Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils git-2
|
||||
|
||||
DESCRIPTION="An embeddable Javascript interpreter in C."
|
||||
HOMEPAGE="http://mupdf.com/"
|
||||
EGIT_REPO_URI="https://github.com/ccxvii/mujs.git"
|
||||
EGIT_COMMIT="a381ba196327a606bfe0849436a8955d0cb729fc"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-text/mupdf"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_install(){
|
||||
emake DESTDIR="${D}" prefix="/usr" install
|
||||
}
|
||||
3
kde-base/okular-backend-mupdf/Manifest
Normal file
3
kde-base/okular-backend-mupdf/Manifest
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
AUX okular_412.patch 1220 SHA256 d25991533a2f315fffdf6eb7b3d2d062ca4dc8ff4e4c53875b1778692a40dd9a SHA512 cde6c123e5960fb1ece2ba616d5008cc080a415260b0eb1b80677bdb88e91b8d67ff0ab08eabdc8b9250967f6461c1ea35c3f8a565c5ed79c313256f3642988d WHIRLPOOL ad479fd53da02f9059dd99105d5fd1a0404236e1c7f41cc5113701ac5df21c80918c1a9c791b6498101bd8a8d682b4c5f5b1baadbaf8bbe01db0673a68570f20
|
||||
DIST okular-backend-mupdf-0.0.3.tar.gz 56613 SHA256 15a539dc23dc3948c3fb5dbb609f5d07cbfbb07cfc7d91e3a10fa13460a191ce SHA512 3b4af977ddd04e475daa0a627f61b2ec814c2b477b5ed90fd58d9b5f455faa0034d9cf55e98ec41436959fa0ddf119377ae91cbaec6115c3c369cbab4464f2b7 WHIRLPOOL b2c6cbe0ef71aedfc869a403ca1e776ebfedde4e264a20730719fe38b45568ebbd83f7ae0643651ed407423880a2dd88fae4aaa051210b5cbccfe9a3b06c4a37
|
||||
EBUILD okular-backend-mupdf-0.0.3.ebuild 676 SHA256 01ce4d067bc351f48275c6f54effbdcdc996e8b5815395386bcfd2410c4aaa92 SHA512 c63ab9a8e260ee288fe6ffc7cc8b7164cfeecc0d4a119be03f810c4781cf5b0bf753dde6b45faa82fcf880e29c38ba8ff5ef16d05b038ede914a8bb9bac59823 WHIRLPOOL 3693be52bf5b6ca5cc0b92b856131c459beb48d6db6f5d059952012363e683fd2acb0ae895492ffb4b82584503a71c9aace75ef29fea1fb1beef573422f5d9f8
|
||||
31
kde-base/okular-backend-mupdf/files/okular_412.patch
Normal file
31
kde-base/okular-backend-mupdf/files/okular_412.patch
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
--- generator_mupdf.cpp.orig 2014-09-03 20:10:59.000000000 +0800
|
||||
+++ generator_mupdf.cpp 2014-09-24 14:35:38.679592999 +0800
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <okular/core/page.h>
|
||||
#include <okular/core/textpage.h>
|
||||
+#include <okular/core/utils.h>
|
||||
|
||||
static const int MuPDFDebug = 4716;
|
||||
|
||||
@@ -295,7 +296,7 @@
|
||||
return 0;
|
||||
|
||||
if (synctex_edit_query(synctex_scanner, pageNr + 1, absX * 96. /
|
||||
- dpi().width(), absY * 96. / dpi().height()) > 0)
|
||||
+ Okular::Utils::dpiX(), absY * 96. / Okular::Utils::dpiY()) > 0)
|
||||
{
|
||||
synctex_node_t node;
|
||||
while ((node = synctex_next_result( synctex_scanner) ))
|
||||
@@ -375,9 +376,9 @@
|
||||
if ( !viewport.isValid() ) return;
|
||||
|
||||
// TeX small points ...
|
||||
- double px = (synctex_node_visible_h( node ) * dpi().width()) /
|
||||
+ double px = (synctex_node_visible_h( node ) * Okular::Utils::dpiX()) /
|
||||
96;
|
||||
- double py = (synctex_node_visible_v( node ) * dpi().height()) /
|
||||
+ double py = (synctex_node_visible_v( node ) * Okular::Utils::dpiY()) /
|
||||
96;
|
||||
viewport.rePos.normalizedX = px /
|
||||
document()->page(viewport.pageNumber)->width();
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/kde-base/okular/okular-4.14.1.ebuild,v 1.1 2014/09/16 18:17:30 johu Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit kde4-base
|
||||
|
||||
DESCRIPTION="Okular is a universal document viewer based on KPDF for KDE 4"
|
||||
HOMEPAGE="http://okular.kde.org http://www.kde.org/applications/graphics/okular"
|
||||
SRC_URI="https://github.com/xylosper/okular-backend-mupdf/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="kde-base/okular
|
||||
app-text/mupdf
|
||||
app-text/mujs"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
#patch is for KDE <4.13
|
||||
PATCHES="${FILESDIR}/okular_412.patch"
|
||||
Loading…
Reference in a new issue