aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonçalo Negrier Duarte <gonegrier.duarte@gmail.com>2024-02-19 10:38:21 +0000
committerGonçalo Negrier Duarte <gonegrier.duarte@gmail.com>2024-02-19 12:39:20 +0000
commite145d1eb03c30baeb19afe72efd92999066ef48e (patch)
treeea8e4465e19653c2ee064c80211cf09aefda30d9 /app-text
parentgames-util/HeroicGamesLauncher-bin: add 2.13.0, drop 2.12.1 (diff)
downloadguru-e145d1eb03c30baeb19afe72efd92999066ef48e.tar.gz
guru-e145d1eb03c30baeb19afe72efd92999066ef48e.tar.bz2
guru-e145d1eb03c30baeb19afe72efd92999066ef48e.zip
app-text/sioyek: give a lack of qt6 support upstream
* (aslo qt3d, qtbase qt5 support drop on gentoo) * and large number of mupdf dependencies * the tag version will be removed for now Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/sioyek/Manifest1
-rw-r--r--app-text/sioyek/sioyek-2.0.0.ebuild52
-rw-r--r--app-text/sioyek/sioyek-9999.ebuild22
3 files changed, 20 insertions, 55 deletions
diff --git a/app-text/sioyek/Manifest b/app-text/sioyek/Manifest
deleted file mode 100644
index 35939db60..000000000
--- a/app-text/sioyek/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST sioyek-2.0.0.tar.gz 4900368 BLAKE2B 47361713265360cb291f39cccdbb2ecb4e0ec7db64e4ed02029b8d1ac8ecf06a90cd2f61ecd0d2dffc89638c82a16ac6e62f536290f614318fb3b92f2690f612 SHA512 3ed9959ddbc133b9c7bb241f8076da886b74790a475646911dc6d38724160ae8335020db308e405c60fce49b9260536861e8946199f1670dc8c2331e9fbd2e00
diff --git a/app-text/sioyek/sioyek-2.0.0.ebuild b/app-text/sioyek/sioyek-2.0.0.ebuild
deleted file mode 100644
index 5a60a5fd1..000000000
--- a/app-text/sioyek/sioyek-2.0.0.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# 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"
- KEYWORDS="~amd64"
-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:6
- dev-qt/qt3d:6
-"
-
-src_compile() {
- #Make Mupdf specific for build
- pushd mupdf || die
- emake USE_SYSTEM_HARFBUZZ=yes
- popd || die
-
- eqmake6 "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
-}
diff --git a/app-text/sioyek/sioyek-9999.ebuild b/app-text/sioyek/sioyek-9999.ebuild
index 5a60a5fd1..8e5fcaaaf 100644
--- a/app-text/sioyek/sioyek-9999.ebuild
+++ b/app-text/sioyek/sioyek-9999.ebuild
@@ -2,11 +2,17 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+MUPDF_PV=1.23.10
+ZLIB_PV=1.3.1
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"
+ SRC_URI="
+ https://github.com/ahrm/sioyek/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/ArtifexSoftware/mupdf/archive/refs/tags/${MUPDF_PV}.tar.gz -> mupdf-${MUPDF_PV}.tar.gz
+ https://github.com/madler/zlib/archive/refs/tags/v${ZLIB_PV}.tar.gz -> zlib-${ZLIB_PV}.tar.gz
+ "
KEYWORDS="~amd64"
else
inherit git-r3
@@ -19,11 +25,22 @@ HOMEPAGE="https://github.com/ahrm/sioyek"
LICENSE="GPL-3"
SLOT="0"
-BDEPEND="media-libs/harfbuzz
+BDEPEND="
+ media-libs/harfbuzz
dev-qt/qtbase:6
dev-qt/qt3d:6
"
+src_prepare() {
+ default
+
+ if [[ ${PV} != 9999 ]]; then
+ rm -r "${S}/mupdf" "${S}/zlib" || die
+ mv "${WORKDIR}/mupdf-${MUPDF_PV}" "${S}/mupdf" || die
+ mv "${WORKDIR}/zlib-${ZLIB_PV}" "${S}/zlib" || die
+ fi
+}
+
src_compile() {
#Make Mupdf specific for build
pushd mupdf || die
@@ -33,6 +50,7 @@ src_compile() {
eqmake6 "CONFIG+=linux_app_image" pdf_viewer_build_config.pro
emake
}
+
src_install() {
#intall bin and shaders
insinto /opt/sioyek