app-text/sioyek: add 2.0.0

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
Gonçalo Negrier Duarte
2024-02-06 20:25:50 +00:00
parent bcf104f0f2
commit d080b413ea
3 changed files with 61 additions and 2 deletions

1
app-text/sioyek/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST sioyek-2.0.0.tar.gz 4900368 BLAKE2B 47361713265360cb291f39cccdbb2ecb4e0ec7db64e4ed02029b8d1ac8ecf06a90cd2f61ecd0d2dffc89638c82a16ac6e62f536290f614318fb3b92f2690f612 SHA512 3ed9959ddbc133b9c7bb241f8076da886b74790a475646911dc6d38724160ae8335020db308e405c60fce49b9260536861e8946199f1670dc8c2331e9fbd2e00

View File

@@ -0,0 +1,51 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit qmake-utils desktop xdg
if [[ ${PV} != 9999 ]]; then
SRC_URI="https://github.com/ahrm/sioyek/archive/refs/tags/v${PV}.tar.gz -> sioyek-2.0.0.tar.gz"
else
inherit git-r3
EGIT_REPO_URI="https://github.com/ahrm/sioyek.git"
fi
DESCRIPTION="Sioyek is a PDF viewer with a focus on textbooks and research papers"
HOMEPAGE="https://github.com/ahrm/sioyek"
LICENSE="GPL-3"
SLOT="0"
BDEPEND="media-libs/harfbuzz
dev-qt/qtbase
dev-qt/qt3d
"
src_compile() {
#Make Mupdf specific for build
pushd mupdf || die
emake USE_SYSTEM_HARFBUZZ=yes
popd || die
eqmake5 "CONFIG+=linux_app_image" pdf_viewer_build_config.pro
emake
}
src_install() {
#intall bin and shaders
insinto /opt/sioyek
doins sioyek
fperms +x /opt/sioyek/sioyek
insinto /opt/sioyek/shaders
doins pdf_viewer/shaders/*
domenu "${FILESDIR}/sioyek.desktop"
doicon resources/sioyek-icon-linux.png
insinto /usr/share/sioyek && doins tutorial.pdf pdf_viewer/keys.config pdf_viewer/prefs.config
doman resources/sioyek.1
}
pkg_postinst() {
xdg_desktop_database_update
}

View File

@@ -3,8 +3,15 @@
EAPI=8
inherit git-r3 qmake-utils desktop xdg
EGIT_REPO_URI="https://github.com/ahrm/sioyek.git"
inherit qmake-utils desktop xdg
if [[ ${PV} != 9999 ]]; then
SRC_URI="https://github.com/ahrm/sioyek/archive/refs/tags/v${PV}.tar.gz -> sioyek-2.0.0.tar.gz"
else
inherit git-r3
EGIT_REPO_URI="https://github.com/ahrm/sioyek.git"
fi
DESCRIPTION="Sioyek is a PDF viewer with a focus on textbooks and research papers"
HOMEPAGE="https://github.com/ahrm/sioyek"