summaryrefslogtreecommitdiff
path: root/app-text/katarakt
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/katarakt')
-rw-r--r--app-text/katarakt/Manifest5
-rw-r--r--app-text/katarakt/files/katarakt-0.2-install.patch26
-rw-r--r--app-text/katarakt/files/katarakt-0.2-poppler.patch29
-rw-r--r--app-text/katarakt/katarakt-0.2.ebuild47
-rw-r--r--app-text/katarakt/metadata.xml25
5 files changed, 132 insertions, 0 deletions
diff --git a/app-text/katarakt/Manifest b/app-text/katarakt/Manifest
new file mode 100644
index 000000000000..97400ac7eca2
--- /dev/null
+++ b/app-text/katarakt/Manifest
@@ -0,0 +1,5 @@
+AUX katarakt-0.2-install.patch 671 BLAKE2B bd647ae915a46d5bf80e1df24c44dbfe5d14ae1eaa9c8db965de24c1cb6b89ba2dd4f7fc86e3e41091af1d62e2fb328c986b1a12419c455a9e87d89381fdd57b SHA512 33400a5114547409e33aa86d43293c98d696e383a190529e34dfd32e36f9c0effd1652648954b5eb5572e80070ef007d1fa6a047c0e4e4e117dca9a5589cfa6d
+AUX katarakt-0.2-poppler.patch 1344 BLAKE2B ade342298b369a1f6a405a849dba2f1a088dbbf202fd713bbb871efe16ab751682aac4ccac91fe740af5126e1eb840814f48f53aa45b66d1ac84896a4626a685 SHA512 8724ea6be2ab6a2efd448406b169662c16b751d723c6bf0a4270c3a425b37630c22b09d019769979b8f57475d2f436b033e89868b3ed7be094120518b5d91752
+DIST katarakt-v0.2.tar.gz 52004 BLAKE2B af014425bbf9c36350f4c10e57d9668f4a362d786c660f032381f6cf68b006d384c88bb0f4cabee4c0bc8e5f01ad25a44ef38d100ddfdfe955a442313b77b322 SHA512 a07054e0e9915f6239b8149bbd08c8b5ec095b0e9ffb54e03761ad9e59914f66166e4b8359298721a6b46c2bcf5114f40ad117c4826a32660c1fba28f69b8e68
+EBUILD katarakt-0.2.ebuild 884 BLAKE2B d2bf53d81e5b5786c3e56a99d3bb6e4c63dd9440743227fe60ae2fb6d0ba7875c1bbd162ca8d2ba12164112912e95ca7069c37c66154c716e169e7ce3f97b413 SHA512 33a9d5aeb8a79df5494af73d7d54f13b690b2b9dfc0ff5df032b0a6d8a5d4dfba584897a955cc58967772b839f788b914149abf8e0e979fe8fb5a61aa3f50c85
+MISC metadata.xml 1036 BLAKE2B fad9496039867e698ee44024a200a8fc77025c8ef7427a6d2903fe898204d0c04324daab893d3f653b0863bd1651f2000c43a323a2a9f6e860853979a2de4015 SHA512 c8874b9aa44646129e1798c59ef1a87607280637a6f8a2715c6af009d9b5990d66aab743a0e108626823cb705fd932058ff27b52083c98f533aac4243353dbe4
diff --git a/app-text/katarakt/files/katarakt-0.2-install.patch b/app-text/katarakt/files/katarakt-0.2-install.patch
new file mode 100644
index 000000000000..96cb6f4b6140
--- /dev/null
+++ b/app-text/katarakt/files/katarakt-0.2-install.patch
@@ -0,0 +1,26 @@
+From 4801619c7752b317da8d57183f590d9c3cce42e1 Mon Sep 17 00:00:00 2001
+From: Kurt Kanzenbach <kurt@kmk-computers.de>
+Date: Thu, 30 Jan 2020 19:22:05 +0100
+Subject: [PATCH] build: Install binary
+
+Add an install target for the binary.
+
+Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
+---
+ katarakt.pro | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/katarakt.pro b/katarakt.pro
+index a632713db2ce..220dfd68b1b9 100644
+--- a/katarakt.pro
++++ b/katarakt.pro
+@@ -57,3 +57,6 @@ web.depends = $$website.target
+ web.CONFIG = phony
+
+ QMAKE_EXTRA_TARGETS += documentation website doc web
++
++target.path = $$INSTALL_ROOT/$$PREFIX/bin/
++INSTALLS += target
+--
+2.24.1
+
diff --git a/app-text/katarakt/files/katarakt-0.2-poppler.patch b/app-text/katarakt/files/katarakt-0.2-poppler.patch
new file mode 100644
index 000000000000..7979bf6a59cd
--- /dev/null
+++ b/app-text/katarakt/files/katarakt-0.2-poppler.patch
@@ -0,0 +1,29 @@
+From 23b68e9c48204d43b37b23735ad9ea0b219fec7b Mon Sep 17 00:00:00 2001
+From: Philipp Erhardt <Philipp.Erhardt@informatik.stud.uni-erlangen.de>
+Date: Mon, 19 Oct 2020 20:42:37 +0200
+Subject: [PATCH] Fix compilation if the version number contains a leading zero
+
+---
+ katarakt.pro | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/katarakt.pro b/katarakt.pro
+index a632713db2ce..84cd59797d0a 100644
+--- a/katarakt.pro
++++ b/katarakt.pro
+@@ -17,9 +17,9 @@ unix {
+
+ isEmpty(PKG_CONFIG):PKG_CONFIG = pkg-config # same as in link_pkgconfig.prf
+ POPPLER_VERSION = $$system($$PKG_CONFIG --modversion $$POPPLER)
+- POPPLER_VERSION_MAJOR = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 1)
+- POPPLER_VERSION_MINOR = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 2)
+- POPPLER_VERSION_MICRO = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 3)
++ POPPLER_VERSION_MAJOR = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 1 | sed "\'s,^0*\\(.\\),\1,\'")
++ POPPLER_VERSION_MINOR = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 2 | sed "\'s,^0*\\(.\\),\1,\'")
++ POPPLER_VERSION_MICRO = $$system(echo "$$POPPLER_VERSION" | cut -d . -f 3 | sed "\'s,^0*\\(.\\),\1,\'")
+
+ DEFINES += POPPLER_VERSION_MAJOR=$$POPPLER_VERSION_MAJOR
+ DEFINES += POPPLER_VERSION_MINOR=$$POPPLER_VERSION_MINOR
+--
+2.33.0
+
diff --git a/app-text/katarakt/katarakt-0.2.ebuild b/app-text/katarakt/katarakt-0.2.ebuild
new file mode 100644
index 000000000000..161ff49aee54
--- /dev/null
+++ b/app-text/katarakt/katarakt-0.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit qmake-utils
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="A simple PDF viewer designed to use as much available screen space as possible"
+HOMEPAGE="https://gitlab.cs.fau.de/Qui_Sum/katarakt"
+SRC_URI="https://gitlab.cs.fau.de/Qui_Sum/${PN}/-/archive/v${PV}/${MY_P}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD-2"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="
+ app-text/asciidoc
+ virtual/pkgconfig
+"
+RDEPEND="
+ app-text/poppler:=[qt5]
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-install.patch"
+ "${FILESDIR}/${P}-poppler.patch"
+)
+
+src_configure() {
+ eqmake5 PREFIX="${EPREFIX}/usr"
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install doc
+ doman doc/katarakt.1
+}
diff --git a/app-text/katarakt/metadata.xml b/app-text/katarakt/metadata.xml
new file mode 100644
index 000000000000..7a3b0ef78c18
--- /dev/null
+++ b/app-text/katarakt/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>kurt@kmk-computers.de</email>
+ <name>Kurt Kanzenbach</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription lang="en">
+ katarakt is a simple PDF viewer. It is designed to use as much available
+ screen space as possible.
+
+ There are currently two layouts. The presentation layout is very simple and
+ only supports scrolling on a per page basis. As the name suggests the
+ current page is displayed in the center and zoomed to fit the window. It is
+ active by default.
+
+ The grid layout is much more advanced and offers continuous (smooth, per
+ pixel) scrolling, zooming and adjusting the column count. Pages keep their
+ correct relative size and are shown in a grid.
+ </longdescription>
+</pkgmetadata>