commit:     d080b413ea693ccae98f9716aa4d46ef63406fb5
Author:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Tue Feb  6 20:25:50 2024 +0000
Commit:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Tue Feb  6 20:59:33 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d080b413

app-text/sioyek: add 2.0.0

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>

 app-text/sioyek/Manifest                                    |  1 +
 app-text/sioyek/{sioyek-9999.ebuild => sioyek-2.0.0.ebuild} | 11 +++++++++--
 app-text/sioyek/sioyek-9999.ebuild                          | 11 +++++++++--
 3 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/app-text/sioyek/Manifest b/app-text/sioyek/Manifest
new file mode 100644
index 0000000000..35939db608
--- /dev/null
+++ b/app-text/sioyek/Manifest
@@ -0,0 +1 @@
+DIST sioyek-2.0.0.tar.gz 4900368 BLAKE2B 
47361713265360cb291f39cccdbb2ecb4e0ec7db64e4ed02029b8d1ac8ecf06a90cd2f61ecd0d2dffc89638c82a16ac6e62f536290f614318fb3b92f2690f612
 SHA512 
3ed9959ddbc133b9c7bb241f8076da886b74790a475646911dc6d38724160ae8335020db308e405c60fce49b9260536861e8946199f1670dc8c2331e9fbd2e00

diff --git a/app-text/sioyek/sioyek-9999.ebuild 
b/app-text/sioyek/sioyek-2.0.0.ebuild
similarity index 79%
copy from app-text/sioyek/sioyek-9999.ebuild
copy to app-text/sioyek/sioyek-2.0.0.ebuild
index 1c53974a1b..55d22022e8 100644
--- a/app-text/sioyek/sioyek-9999.ebuild
+++ b/app-text/sioyek/sioyek-2.0.0.ebuild
@@ -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";
 

diff --git a/app-text/sioyek/sioyek-9999.ebuild 
b/app-text/sioyek/sioyek-9999.ebuild
index 1c53974a1b..55d22022e8 100644
--- a/app-text/sioyek/sioyek-9999.ebuild
+++ b/app-text/sioyek/sioyek-9999.ebuild
@@ -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";
 

Reply via email to