summaryrefslogtreecommitdiff
path: root/app-text
diff options
context:
space:
mode:
Diffstat (limited to 'app-text')
-rw-r--r--app-text/evince/Manifest1
-rw-r--r--app-text/evince/evince-40.4-r1.ebuild123
-rw-r--r--app-text/evince/files/40.0-internal-synctex.patch28
-rw-r--r--app-text/evince/metadata.xml17
-rw-r--r--app-text/pdfsizeopt/metadata.xml8
-rw-r--r--app-text/pdfsizeopt/pdfsizeopt-9999.ebuild37
-rw-r--r--app-text/zathura/Manifest1
-rw-r--r--app-text/zathura/files/zathura-disable-seccomp-tests.patch22
-rw-r--r--app-text/zathura/files/zathura-docutils.patch119
-rw-r--r--app-text/zathura/metadata.xml24
-rw-r--r--app-text/zathura/zathura-0.5.2-r3.ebuild61
11 files changed, 227 insertions, 214 deletions
diff --git a/app-text/evince/Manifest b/app-text/evince/Manifest
deleted file mode 100644
index 57fec11..0000000
--- a/app-text/evince/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST evince-40.4.tar.xz 2928100 BLAKE2B 491b2333e21093b032ec9c4f24c61cdaa31e4a46ee058b0f109b0998fb7216ada2c933e6202eae1d6193caad0cfa94a77434ef042555bab7cf4aeed959be759b SHA512 dbec3828f1e8f0b9b48dd90ce605ce83312e53cbeb8f8e7358c1318f1701680a69a9bcd26b7cf1da4b53679ae11e334ce514f5df4c5bbcc976581441e0d654cd
diff --git a/app-text/evince/evince-40.4-r1.ebuild b/app-text/evince/evince-40.4-r1.ebuild
deleted file mode 100644
index a06f5ce..0000000
--- a/app-text/evince/evince-40.4-r1.ebuild
+++ /dev/null
@@ -1,123 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit gnome.org gnome2-utils meson systemd xdg
-
-DESCRIPTION="Simple document viewer for GNOME"
-HOMEPAGE="https://wiki.gnome.org/Apps/Evince"
-
-LICENSE="GPL-2+ CC-BY-SA-3.0"
-# subslot = evd3.(suffix of libevdocument3)-evv3.(suffix of libevview3)
-SLOT="0/evd3.4-evv3.3"
-IUSE="cups djvu dvi gstreamer gnome gnome-keyring gtk-doc +introspection nautilus nsplugin postscript spell t1lib tiff xps"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-solaris"
-
-# atk used in libview
-# bundles unarr
-DEPEND="
- dev-libs/atk
- >=dev-libs/glib-2.44.0:2
- >=gui-libs/libhandy-1.0:1=
- >=dev-libs/libxml2-2.5:2
- sys-libs/zlib:=
- >=x11-libs/gdk-pixbuf-2.40:2
- >=x11-libs/gtk+-3.22.0:3[cups?,introspection?]
- gnome-base/gsettings-desktop-schemas
- >=x11-libs/cairo-1.10:=
- >=app-text/poppler-0.76.0[cairo]
- >=app-arch/libarchive-3.2.0
- djvu? ( >=app-text/djvu-3.5.22:= )
- dvi? (
- >=app-text/libspectre-0.2:=
- dev-libs/kpathsea:=
- t1lib? ( >=media-libs/t1lib-5:= ) )
- gstreamer? (
- media-libs/gstreamer:1.0
- media-libs/gst-plugins-base:1.0
- media-libs/gst-plugins-good:1.0 )
- gnome? ( gnome-base/gnome-desktop:3= )
- gnome-keyring? ( >=app-crypt/libsecret-0.5 )
- introspection? ( >=dev-libs/gobject-introspection-1:= )
- nautilus? ( >=gnome-base/nautilus-3.28.0 )
- postscript? ( >=app-text/libspectre-0.2:= )
- spell? ( >=app-text/gspell-1.6.0:= )
- tiff? ( >=media-libs/tiff-3.6:0= )
- xps? ( >=app-text/libgxps-0.2.1:= )
-"
-RDEPEND="${DEPEND}
- || (
- >=x11-themes/adwaita-icon-theme-2.17.1
- >=x11-themes/hicolor-icon-theme-0.10
- )
-"
-BDEPEND="
- gtk-doc? ( >=dev-util/gtk-doc-1.33 )
- app-text/docbook-xml-dtd:4.3
- dev-libs/appstream-glib
- dev-util/gdbus-codegen
- dev-util/glib-utils
- dev-util/itstool
- >=sys-devel/gettext-0.19.8
- virtual/pkgconfig
-"
-
-PATCHES=(
- "${FILESDIR}"/40.0-internal-synctex.patch
-)
-
-src_prepare() {
- xdg_src_prepare
-
- # Do not depend on adwaita-icon-theme, bug #326855, #391859
- # https://gitlab.freedesktop.org/xdg/default-icon-theme/issues/7
- sed -i '/adwaita_icon_theme_dep/d' meson.build shell/meson.build || die
-}
-
-src_configure() {
- local emesonargs=(
- -Dplatform=gnome
-
- -Dviewer=true
- -Dpreviewer=true
- -Dthumbnailer=true
- $(meson_use nsplugin browser_plugin)
- $(meson_use nautilus)
-
- -Dcomics=enabled
- $(meson_feature djvu)
- $(meson_feature dvi)
- -Dpdf=enabled
- $(meson_feature postscript ps)
- $(meson_feature tiff)
- $(meson_feature xps)
-
- $(meson_use gtk-doc gtk_doc)
- -Duser_doc=true
- $(meson_use introspection)
- -Ddbus=true
- $(meson_feature gnome-keyring keyring)
- $(meson_feature cups gtk_unix_print)
- $(meson_feature gnome thumbnail_cache)
- $(meson_feature gstreamer multimedia)
- $(meson_feature spell gspell)
-
- $(meson_feature t1lib)
-
- -Dbrowser_plugin_dir="${EPREFIX}/usr/$(get_libdir)/nsbrowser/plugins"
- -Dsystemduserunitdir="$(systemd_get_userunitdir)"
-
- )
- meson_src_configure
-}
-
-pkg_postinst() {
- xdg_pkg_postinst
- gnome2_schemas_update
-}
-
-pkg_postrm() {
- xdg_pkg_postrm
- gnome2_schemas_update
-}
diff --git a/app-text/evince/files/40.0-internal-synctex.patch b/app-text/evince/files/40.0-internal-synctex.patch
deleted file mode 100644
index 8c45548..0000000
--- a/app-text/evince/files/40.0-internal-synctex.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From ce976d98317535d17d8aabd67729918a94b24cea Mon Sep 17 00:00:00 2001
-From: Matt Turner <mattst88@gmail.com>
-Date: Mon, 12 Apr 2021 23:07:50 -0400
-Subject: [PATCH] build: always use internal synctex instead of automagically
-
-We don't have a separate synctex package and would have to pull in
-all of texlive-core; so instead of fixing the automagic use of it,
-just remove support for external synctex, as that's easier.
----
- meson.build | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/meson.build b/meson.build
-index abee124d..63c5040c 100644
---- a/meson.build
-+++ b/meson.build
-@@ -251,7 +251,7 @@ config_h.set('HAVE_DESKTOP_SCHEMAS', gsettings_desktop_schemas_dep.found())
-
- # *** libsynctex ***
- synctex_dep = dependency('synctex', version: '>= 1.19', required: false)
--external_synctex = synctex_dep.found()
-+external_synctex = false
-
- # *** Mime types list ***
- mime_types_list = {
---
-2.26.3
-
diff --git a/app-text/evince/metadata.xml b/app-text/evince/metadata.xml
deleted file mode 100644
index 12e5645..0000000
--- a/app-text/evince/metadata.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>gnome@gentoo.org</email>
- <name>Gentoo GNOME Desktop</name>
- </maintainer>
- <use>
- <flag name="dvi">Enable the built-in DVI viewer</flag>
- <flag name="nautilus">Enable property page extension in <pkg>gnome-base/nautilus</pkg></flag>
- <flag name="postscript" restrict="&gt;=app-text/evince-3.26">Enable support for PostScript and Adobe Illustrator documents with <pkg>app-text/libspectre</pkg></flag>
- <flag name="spell">Enable inline spell check for annotations via <pkg>app-text/gspell</pkg></flag>
- <flag name="t1lib">Enable the Type-1 fonts for the built-in DVI viewer
- (<pkg>media-libs/t1lib</pkg>)</flag>
- <flag name="xps">Enable XPS viewer using <pkg>app-text/libgxps</pkg></flag>
- </use>
-</pkgmetadata>
diff --git a/app-text/pdfsizeopt/metadata.xml b/app-text/pdfsizeopt/metadata.xml
deleted file mode 100644
index 004555a..0000000
--- a/app-text/pdfsizeopt/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>alex_y_xu@yahoo.ca</email>
- <name>Alex Xu (Hello71)</name>
- </maintainer>
-</pkgmetadata>
diff --git a/app-text/pdfsizeopt/pdfsizeopt-9999.ebuild b/app-text/pdfsizeopt/pdfsizeopt-9999.ebuild
deleted file mode 100644
index 386d0d7..0000000
--- a/app-text/pdfsizeopt/pdfsizeopt-9999.ebuild
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python2_7 )
-_PYTHON_ALLOW_PY27=1
-inherit git-r3 python-single-r1
-
-DESCRIPTION="PDF file size optimizer"
-HOMEPAGE="https://github.com/pts/pdfsizeopt"
-EGIT_REPO_URI="https://github.com/pts/pdfsizeopt.git"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS=""
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-RDEPEND="${PYTHON_DEPS}
- app-text/ghostscript-gpl
- media-gfx/tif22pnm
- media-gfx/sam2p
-"
-BDEPEND="${PYTHON_DEPS}"
-
-src_prepare() {
- default
- python_fix_shebang mksingle.py
-}
-
-src_compile() {
- ./mksingle.py
-}
-
-src_install() {
- newbin pdfsizeopt.single pdfsizeopt
-}
diff --git a/app-text/zathura/Manifest b/app-text/zathura/Manifest
new file mode 100644
index 0000000..10f9a96
--- /dev/null
+++ b/app-text/zathura/Manifest
@@ -0,0 +1 @@
+DIST zathura-0.5.2.tar.gz 208606 BLAKE2B fc7e8042a373a3fd66973fd5d6c7c3e7d6da884fb40269545e4074b42fdbc9b6f286089769a435394812e24a8b24de328521a2fd797bbb13c16115b112dd9a48 SHA512 17f2a6535b2b3c6f61986cd8a6ccdef2c1a129d8ebf8c86cbe3c8eac868c2780801f3fe2fdc17c429ca0c63a71a328bbb6c7f814f82714dd7f1a5a4728663b1f
diff --git a/app-text/zathura/files/zathura-disable-seccomp-tests.patch b/app-text/zathura/files/zathura-disable-seccomp-tests.patch
new file mode 100644
index 0000000..f3d88a2
--- /dev/null
+++ b/app-text/zathura/files/zathura-disable-seccomp-tests.patch
@@ -0,0 +1,22 @@
+diff --git a/tests/meson.build b/tests/meson.build
+index ac7edb8..68216f3 100644
+--- a/tests/meson.build
++++ b/tests/meson.build
+@@ -25,17 +25,6 @@ if check.found()
+ timeout: 60*60
+ )
+
+- if seccomp.found()
+- sandbox = executable('test_sandbox', ['test_sandbox.c', 'tests.c'],
+- dependencies: build_dependencies + test_dependencies,
+- include_directories: include_directories,
+- c_args: defines + flags
+- )
+- test('sandbox', sandbox,
+- timeout: 60*60
+- )
+- endif
+-
+ utils = executable('test_utils', ['test_utils.c', 'tests.c'],
+ dependencies: build_dependencies + test_dependencies,
+ include_directories: include_directories,
diff --git a/app-text/zathura/files/zathura-docutils.patch b/app-text/zathura/files/zathura-docutils.patch
new file mode 100644
index 0000000..7d313f6
--- /dev/null
+++ b/app-text/zathura/files/zathura-docutils.patch
@@ -0,0 +1,119 @@
+diff --git a/doc/man/conf.py b/doc/man/conf.py
+deleted file mode 100644
+index 2aad25f..0000000
+--- a/doc/man/conf.py
++++ /dev/null
+@@ -1,36 +0,0 @@
+-# -*- coding: utf-8 -*-
+-#
+-# SPDX-License-Identifier: Zlib
+-
+-import os.path
+-import glob
+-import time
+-
+-dirname = os.path.dirname(__file__)
+-files = glob.glob(os.path.join(dirname, '*.rst'))
+-
+-maxdate = 0
+-for path in files:
+- s = os.stat(path)
+- maxdate = max(maxdate, s.st_mtime)
+-
+-# -- General configuration ------------------------------------------------
+-
+-source_suffix = '.rst'
+-master_doc = 'zathura.1'
+-templates_path = ['_templates']
+-today = time.strftime('%Y-%m-%d', time.gmtime(maxdate))
+-
+-# -- Project configuration ------------------------------------------------
+-
+-project = 'zathura'
+-copyright = '2009-2018, pwmt.org'
+-version = '0.2.7'
+-release = '0.2.7'
+-
+-# -- Options for manual page output ---------------------------------------
+-
+-man_pages = [
+- ('zathura.1', 'zathura', 'a document viewer', ['pwmt.org'], 1),
+- ('zathurarc.5', 'zathurarc', 'zathura configuration file', ['pwmt.org'], 5)
+-]
+diff --git a/doc/man/zathura.1.rst b/doc/man/zathura.1.rst
+index 089dbf7..19cc44c 100644
+--- a/doc/man/zathura.1.rst
++++ b/doc/man/zathura.1.rst
+@@ -1,5 +1,14 @@
+-Manpage
+ =======
++zathura
++=======
++
++-----------------
++a document viewer
++-----------------
++
++:Author: pwmt.org
++:Copyright: 2009-2018, pwmt.org
++:Manual section: 1
+
+ Synopsis
+ --------
+diff --git a/doc/man/zathurarc.5.rst b/doc/man/zathurarc.5.rst
+index bf519ae..1ec6462 100644
+--- a/doc/man/zathurarc.5.rst
++++ b/doc/man/zathurarc.5.rst
+@@ -2,6 +2,14 @@
+ zathurarc
+ *********
+
++--------------------------
++zathura configuration file
++--------------------------
++
++:Author: pwmt.org
++:Copyright: 2009-2018, pwmt.org
++:Manual section: 5
++
+ SYNOPSIS
+ ========
+
+diff --git a/doc/meson.build b/doc/meson.build
+index b67c8ab..a02116b 100644
+--- a/doc/meson.build
++++ b/doc/meson.build
+@@ -1,24 +1,10 @@
+-sphinx = find_program('sphinx-build', required: get_option('manpages'))
+-if sphinx.found()
+- custom_target('man pages',
+- command: [
+- sphinx,
+- '-b', 'man',
+- '-D', 'version=' + version,
+- '-D', 'release=' + version,
+- join_paths(meson.current_source_dir(), 'man'),
+- meson.current_build_dir()],
+- output: ['zathura.1', 'zathurarc.5'],
+- input: [
+- 'man/conf.py',
+- 'man/zathurarc.5.rst',
+- 'man/zathura.1.rst'
+- ],
+- build_by_default: true,
+- install: true,
+- install_dir: [
+- join_paths(get_option('mandir'), 'man1'),
+- join_paths(get_option('mandir'), 'man5')
+- ]
+- )
++rst2man = find_program('rst2man', 'rst2man.py', required: get_option('manpages'))
++
++if rst2man.found()
++ custom_target('zathura.1', input: [ 'man/zathura.1.rst' ], output: [ 'zathura.1' ],
++ command: [rst2man, '@INPUT@', '@OUTPUT@'], install: true,
++ install_dir: join_paths(get_option('mandir'), 'man1'))
++ custom_target('zathurarc.5', input: [ 'man/zathurarc.5.rst' ], output: [ 'zathurarc.5' ],
++ command: [rst2man, '@INPUT@', '@OUTPUT@'], install: true,
++ install_dir: join_paths(get_option('mandir'), 'man5'))
+ endif
diff --git a/app-text/zathura/metadata.xml b/app-text/zathura/metadata.xml
new file mode 100644
index 0000000..f7b9cf8
--- /dev/null
+++ b/app-text/zathura/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>slashbeast@gentoo.org</email>
+ <name>Piotr Karbowski</name>
+ </maintainer>
+ <use>
+ <flag name="synctex">Use libsynctex to get latex codeline from pdf</flag>
+ </use>
+ <upstream>
+ <maintainer status="active">
+ <email>mlq@pwmt.org</email>
+ <name>Moritz Lipp</name>
+ </maintainer>
+ <maintainer status="active">
+ <email>sebastian+dev@ramacher.at</email>
+ <name>Sebastian Ramacher</name>
+ </maintainer>
+ <changelog>http://pwmt.org/projects/zathura/download/</changelog>
+ <doc lang="en">http://pwmt.org/projects/zathura/</doc>
+ <bugs-to>http://bugs.pwmt.org/</bugs-to>
+ </upstream>
+</pkgmetadata>
diff --git a/app-text/zathura/zathura-0.5.2-r3.ebuild b/app-text/zathura/zathura-0.5.2-r3.ebuild
new file mode 100644
index 0000000..da82595
--- /dev/null
+++ b/app-text/zathura/zathura-0.5.2-r3.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit meson virtualx xdg
+
+DESCRIPTION="A highly customizable and functional document viewer"
+HOMEPAGE="https://pwmt.org/projects/zathura/"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://git.pwmt.org/pwmt/${PN}.git"
+ EGIT_BRANCH="develop"
+else
+ SRC_URI="https://github.com/pwmt/zathura/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~riscv ~x86 ~amd64-linux ~x86-linux"
+fi
+
+LICENSE="ZLIB"
+SLOT="0/$(ver_cut 1-2)"
+IUSE="seccomp sqlite synctex test"
+
+RESTRICT="!test? ( test )"
+
+DEPEND=">=dev-libs/girara-0.3.7
+ >=dev-libs/glib-2.50:2
+ >=sys-devel/gettext-0.19.8
+ x11-libs/cairo
+ >=x11-libs/gtk+-3.22:3
+ sys-apps/file
+ seccomp? ( sys-libs/libseccomp )
+ sqlite? ( >=dev-db/sqlite-3.5.9:3 )
+ synctex? ( app-text/texlive-core )"
+
+RDEPEND="${DEPEND}"
+
+BDEPEND="dev-python/docutils
+ test? ( dev-libs/appstream-glib
+ dev-libs/check )
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/zathura-disable-seccomp-tests.patch
+ "${FILESDIR}/zathura-docutils.patch"
+)
+
+src_configure() {
+ local emesonargs=(
+ -Dconvert-icon=disabled
+ -Dmanpages=enabled
+ -Dseccomp=$(usex seccomp enabled disabled)
+ -Dsqlite=$(usex sqlite enabled disabled)
+ -Dsynctex=$(usex synctex enabled disabled)
+ )
+ meson_src_configure
+}
+
+src_test() {
+ virtx meson_src_test
+}