Gentoo Archives: gentoo-commits

From: Piotr Karbowski <slashbeast@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/zathura/files/, app-text/zathura/
Date: Fri, 30 Dec 2022 18:26:28
Message-Id: 1672424782.b80c10b9f9bd027e1a9aaefe5a3569023de54621.slashbeast@gentoo
1 commit: b80c10b9f9bd027e1a9aaefe5a3569023de54621
2 Author: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 30 18:22:38 2022 +0000
4 Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 30 18:26:22 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b80c10b9
7
8 app-text/zathura: 0.5.2 version bump
9
10 Disabled seccomp tests as those seems to require other dependencies like
11 plugins and files to be installed that are not part of this package, no
12 way to get them working in the scope of what portage tests.
13
14 Closes: https://bugs.gentoo.org/743070
15 Closes: https://bugs.gentoo.org/885445
16 Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org>
17
18 app-text/zathura/Manifest | 1 +
19 .../files/zathura-disable-seccomp-tests.patch | 22 ++++++++
20 app-text/zathura/zathura-0.5.2.ebuild | 60 ++++++++++++++++++++++
21 3 files changed, 83 insertions(+)
22
23 diff --git a/app-text/zathura/Manifest b/app-text/zathura/Manifest
24 index fe867e8053fd..590059c04fb6 100644
25 --- a/app-text/zathura/Manifest
26 +++ b/app-text/zathura/Manifest
27 @@ -1 +1,2 @@
28 DIST zathura-0.4.9.tar.gz 206194 BLAKE2B 0dd4b153cf7f8e3ddd4ede5514389b2c5e4aa88e2c416646acc38f7e19419e11165c2a5b51548a05d69a1b947e661b885f7c9d8c100179d0d23d8754cb441d97 SHA512 fbab65cba7ac37e4021233a4ae0356a85f4a88d2c1a2d8337cd627eae389856b6b4e692904233332d2fa14ad0300e8c52732059a75314a0ef147a02ca9f8db10
29 +DIST zathura-0.5.2.tar.gz 208606 BLAKE2B fc7e8042a373a3fd66973fd5d6c7c3e7d6da884fb40269545e4074b42fdbc9b6f286089769a435394812e24a8b24de328521a2fd797bbb13c16115b112dd9a48 SHA512 17f2a6535b2b3c6f61986cd8a6ccdef2c1a129d8ebf8c86cbe3c8eac868c2780801f3fe2fdc17c429ca0c63a71a328bbb6c7f814f82714dd7f1a5a4728663b1f
30
31 diff --git a/app-text/zathura/files/zathura-disable-seccomp-tests.patch b/app-text/zathura/files/zathura-disable-seccomp-tests.patch
32 new file mode 100644
33 index 000000000000..f3d88a2746d2
34 --- /dev/null
35 +++ b/app-text/zathura/files/zathura-disable-seccomp-tests.patch
36 @@ -0,0 +1,22 @@
37 +diff --git a/tests/meson.build b/tests/meson.build
38 +index ac7edb8..68216f3 100644
39 +--- a/tests/meson.build
40 ++++ b/tests/meson.build
41 +@@ -25,17 +25,6 @@ if check.found()
42 + timeout: 60*60
43 + )
44 +
45 +- if seccomp.found()
46 +- sandbox = executable('test_sandbox', ['test_sandbox.c', 'tests.c'],
47 +- dependencies: build_dependencies + test_dependencies,
48 +- include_directories: include_directories,
49 +- c_args: defines + flags
50 +- )
51 +- test('sandbox', sandbox,
52 +- timeout: 60*60
53 +- )
54 +- endif
55 +-
56 + utils = executable('test_utils', ['test_utils.c', 'tests.c'],
57 + dependencies: build_dependencies + test_dependencies,
58 + include_directories: include_directories,
59
60 diff --git a/app-text/zathura/zathura-0.5.2.ebuild b/app-text/zathura/zathura-0.5.2.ebuild
61 new file mode 100644
62 index 000000000000..a348aaac0cce
63 --- /dev/null
64 +++ b/app-text/zathura/zathura-0.5.2.ebuild
65 @@ -0,0 +1,60 @@
66 +# Copyright 1999-2022 Gentoo Authors
67 +# Distributed under the terms of the GNU General Public License v2
68 +
69 +EAPI=7
70 +
71 +inherit meson virtualx xdg
72 +
73 +DESCRIPTION="A highly customizable and functional document viewer"
74 +HOMEPAGE="https://pwmt.org/projects/zathura/"
75 +
76 +if [[ ${PV} == *9999 ]]; then
77 + inherit git-r3
78 + EGIT_REPO_URI="https://git.pwmt.org/pwmt/${PN}.git"
79 + EGIT_BRANCH="develop"
80 +else
81 + SRC_URI="https://github.com/pwmt/zathura/archive/${PV}.tar.gz -> ${P}.tar.gz"
82 + KEYWORDS="~amd64 ~arm ~riscv ~x86 ~amd64-linux ~x86-linux"
83 +fi
84 +
85 +LICENSE="ZLIB"
86 +SLOT="0"
87 +IUSE="doc seccomp sqlite synctex test"
88 +
89 +RESTRICT="!test? ( test )"
90 +
91 +DEPEND=">=dev-libs/girara-0.3.7
92 + >=dev-libs/glib-2.50:2
93 + >=sys-devel/gettext-0.19.8
94 + x11-libs/cairo
95 + >=x11-libs/gtk+-3.22:3
96 + sys-apps/file
97 + seccomp? ( sys-libs/libseccomp )
98 + sqlite? ( >=dev-db/sqlite-3.5.9:3 )
99 + synctex? ( app-text/texlive-core )"
100 +
101 +RDEPEND="${DEPEND}"
102 +
103 +BDEPEND="doc? ( dev-python/sphinx )
104 + test? ( dev-libs/appstream-glib
105 + dev-libs/check )
106 + virtual/pkgconfig"
107 +
108 +PATCHES=(
109 + "${FILESDIR}"/zathura-disable-seccomp-tests.patch
110 +)
111 +
112 +src_configure() {
113 + local emesonargs=(
114 + -Dconvert-icon=disabled
115 + -Dmanpages=$(usex doc enabled disabled)
116 + -Dseccomp=$(usex seccomp enabled disabled)
117 + -Dsqlite=$(usex sqlite enabled disabled)
118 + -Dsynctex=$(usex synctex enabled disabled)
119 + )
120 + meson_src_configure
121 +}
122 +
123 +src_test() {
124 + virtx meson_src_test
125 +}