mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-text/zathura: add 2026.07.18
manpages are unconditionally added (pre-built) Closes: https://bugs.gentoo.org/976983 Signed-off-by: Mason Rocha <turret@turret.cyou> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
committed by
Michael Orlitzky
parent
3df59b8940
commit
5997a18d4d
@@ -2,3 +2,5 @@ DIST zathura-0.5.13.tar.gz 395362 BLAKE2B e66f10d7b73c6560b2b3215ec620e33e306ff9
|
||||
DIST zathura-0.5.14.tar.gz 399930 BLAKE2B fd3396e4a56a484009188d87548743423e3a14060aee2790174d0ca6aadff33c5e66ba668ae3f83f3069baa851571a4bd05a44602ed0fcc3b078df6aaa6a5527 SHA512 1bf77b3e2a24644bbad3bff8a2d603fc3bf5a8803e217c38c0d30ffa2731ff083de7f5cfe0b4ce93923a66b91351118f267a22fea922238bb044634d7c6bc091
|
||||
DIST zathura-0.5.8.tar.gz 219371 BLAKE2B c7c163e0c1cd5e344ae566ab71ad66d51b89cacd11ef9b335589c0fa705e7a300adab680b7c13a197da3c10b5161656fbb9c8449667eb05e64f0506bf254e675 SHA512 6954f8bf8c76526e86a4e335c18c3c68f509fbbe1081f7c74d333f8a9ba83bc5da971ad744f91408f8b0fb8f0b647ae07f02601b5efa97961155ba193c8777f6
|
||||
DIST zathura-2026.02.22.tar.gz 527036 BLAKE2B c8bfe65d7d3fc492044d36df5c1b14f4b0613d84a20509710b1183f4d12898192f13a8fcd1ba4394a352d2df38ce28a74533cc6650749c3c857d239f5dd7c6cb SHA512 ab5e2df7ec551c13eaa5b86d6a1157b75706d7ccbd268bcdd103af21e2262b5e052cf621f8cf7aeca324c7b6d358bc4fcf278e94827519e06d6891ba007399c6
|
||||
DIST zathura-2026.07.18-manpages.tar.xz 11064 BLAKE2B 86e44cb93ce84c2c7a61fb29a37fa386e15a2cd40a7813d8d448937594999b8f360a01d56636e10b454b75ca9d170ba1454398b4a580bffec2bc90ec3eb7a6c2 SHA512 78cd3ba921385c0948c9578bf76ac2446ae6c22e658adeca93d540489244c8afcaa5619d77059813aad00bcf76229b4dcac9a4bf4ba9baa5d29332095a74f49d
|
||||
DIST zathura-2026.07.18.tar.gz 524430 BLAKE2B fa60a0a9f4b99c884fdc134fe2b38186e0435014210218012c9b396a5c5235845f450ef913ab2b472550917224121eb7af65154e30f3362db3bdfd5014720dcb SHA512 1d0900e67e43e4bcd6dfcb05918969ff30b0a0c7e0cd214ff09499359e5e61a20440d7b9723192683a540bb9d34a9239a05075558baf26b1a14ccffa383d0200
|
||||
|
||||
115
app-text/zathura/zathura-2026.07.18.ebuild
Normal file
115
app-text/zathura/zathura-2026.07.18.ebuild
Normal file
@@ -0,0 +1,115 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit flag-o-matic meson xdg
|
||||
|
||||
DESCRIPTION="Highly customizable & functional document viewer"
|
||||
HOMEPAGE="https://pwmt.org/projects/zathura/"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/pwmt/zathura.git"
|
||||
else
|
||||
SRC_URI="
|
||||
https://github.com/pwmt/zathura/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://oss.turretllc.us/manpages/${P}-manpages.tar.xz
|
||||
"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0/8.9" # plugin versions api.abi (see meson.build)
|
||||
IUSE="+man landlock seccomp synctex test wayland X"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="
|
||||
|| ( wayland X )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/json-glib
|
||||
>=dev-db/sqlite-3.35:3
|
||||
>=dev-libs/girara-2026.07.07:=[X?]
|
||||
>=dev-libs/glib-2.84:2
|
||||
sys-apps/file
|
||||
x11-libs/cairo
|
||||
>=x11-libs/gtk+-3.24:3[wayland?,X?]
|
||||
x11-libs/pango
|
||||
seccomp? ( sys-libs/libseccomp )
|
||||
synctex? ( app-text/texlive-core )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
>=sys-kernel/linux-headers-5.13
|
||||
"
|
||||
BDEPEND="
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
test? (
|
||||
dev-libs/appstream
|
||||
wayland? ( dev-libs/weston[headless] )
|
||||
X? ( x11-misc/xvfb-run )
|
||||
)
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
# defang automagic dependencies
|
||||
use X || append-flags -DGENTOO_GTK_HIDE_X11
|
||||
use wayland || append-flags -DGENTOO_GTK_HIDE_WAYLAND
|
||||
|
||||
local emesonargs=(
|
||||
-Dconvert-icon=disabled
|
||||
-Dmanpages=disabled
|
||||
$(meson_feature landlock)
|
||||
$(meson_feature seccomp)
|
||||
$(meson_feature synctex)
|
||||
)
|
||||
|
||||
if use test ; then
|
||||
emesonargs+=(
|
||||
$(meson_feature X tests-x11)
|
||||
$(meson_feature wayland tests-wayland)
|
||||
)
|
||||
else
|
||||
emesonargs+=(
|
||||
-Dtests-x11=disabled
|
||||
-Dtests-wayland=disabled
|
||||
)
|
||||
fi
|
||||
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
addwrite /dev/dri
|
||||
meson_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
if use seccomp || use landlock; then
|
||||
mv "${ED}"/usr/bin/zathura{,-full} || die
|
||||
dosym zathura-sandbox /usr/bin/zathura
|
||||
fi
|
||||
|
||||
[[ ${PV} != *9999 ]] && doman "${WORKDIR}"/man/zathura*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
|
||||
if use seccomp || use landlock; then
|
||||
elog "Zathura has been installed as a symlink to zathura-sandbox due to USE"
|
||||
elog "seccomp or USE landlock. Some features such as printing or hyperlinks"
|
||||
elog "may be unavailable when running with the default executable (zathura)."
|
||||
elog "If you require these features, you can temporarily switch to using"
|
||||
elog "zathura-full or disable these use flags."
|
||||
if ! use elibc_glibc; then
|
||||
ewarn ""
|
||||
ewarn "Upstream zathura does not test sandboxing rules on non-glibc"
|
||||
ewarn "environments. Your mileage may vary using the sandboxed variant."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user