commit:     1e864dac04d2d9e0ec90856d5471c8397242924a
Author:     Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail <DOT> com>
AuthorDate: Sun Jun  8 12:19:33 2025 +0000
Commit:     Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail <DOT> com>
CommitDate: Sun Jun  8 12:26:20 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1e864dac

net-misc/ffsend: add 9999

Signed-off-by: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail.com>

 net-misc/ffsend/ffsend-0.2.77.ebuild               | 25 +++++++++++++++++-----
 .../{ffsend-0.2.77.ebuild => ffsend-9999.ebuild}   | 25 +++++++++++++++++-----
 2 files changed, 40 insertions(+), 10 deletions(-)

diff --git a/net-misc/ffsend/ffsend-0.2.77.ebuild 
b/net-misc/ffsend/ffsend-0.2.77.ebuild
index 21983926cf..7f2c6a3c69 100644
--- a/net-misc/ffsend/ffsend-0.2.77.ebuild
+++ b/net-misc/ffsend/ffsend-0.2.77.ebuild
@@ -10,10 +10,17 @@ inherit cargo optfeature shell-completion
 DESCRIPTION="Easily and securely share files from the command line"
 HOMEPAGE="https://timvisee.com/projects/ffsend/";
 
-SRC_URI="
-       https://github.com/timvisee/ffsend/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz
-       
https://github.com/beatussum/gentoo-tarballs/releases/download/latest/${P}-crates.tar.xz
-"
+if [[ "${PV}" = "9999" ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/timvisee/ffsend.git";
+else
+       SRC_URI="
+               
https://github.com/timvisee/ffsend/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz
+               
https://github.com/beatussum/gentoo-tarballs/releases/download/latest/${P}-crates.tar.xz
+       "
+
+       KEYWORDS="~amd64"
+fi
 
 LICENSE="GPL-3"
 
@@ -21,7 +28,6 @@ LICENSE="GPL-3"
 LICENSE+=" Apache-2.0 BSD-2 BSD ISC MIT MPL-2.0 Unicode-DFS-2016"
 
 SLOT="0"
-KEYWORDS="~amd64"
 
 DOCS=(
        res/
@@ -30,6 +36,15 @@ DOCS=(
        SECURITY.md
 )
 
+src_unpack() {
+       if [[ "${PV}" = "9999" ]]; then
+               git-r3_src_unpack
+               cargo_live_src_unpack
+       else
+               cargo_src_unpack
+       fi
+}
+
 src_install() {
        einstalldocs
        cargo_src_install

diff --git a/net-misc/ffsend/ffsend-0.2.77.ebuild 
b/net-misc/ffsend/ffsend-9999.ebuild
similarity index 66%
copy from net-misc/ffsend/ffsend-0.2.77.ebuild
copy to net-misc/ffsend/ffsend-9999.ebuild
index 21983926cf..7f2c6a3c69 100644
--- a/net-misc/ffsend/ffsend-0.2.77.ebuild
+++ b/net-misc/ffsend/ffsend-9999.ebuild
@@ -10,10 +10,17 @@ inherit cargo optfeature shell-completion
 DESCRIPTION="Easily and securely share files from the command line"
 HOMEPAGE="https://timvisee.com/projects/ffsend/";
 
-SRC_URI="
-       https://github.com/timvisee/ffsend/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz
-       
https://github.com/beatussum/gentoo-tarballs/releases/download/latest/${P}-crates.tar.xz
-"
+if [[ "${PV}" = "9999" ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/timvisee/ffsend.git";
+else
+       SRC_URI="
+               
https://github.com/timvisee/ffsend/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz
+               
https://github.com/beatussum/gentoo-tarballs/releases/download/latest/${P}-crates.tar.xz
+       "
+
+       KEYWORDS="~amd64"
+fi
 
 LICENSE="GPL-3"
 
@@ -21,7 +28,6 @@ LICENSE="GPL-3"
 LICENSE+=" Apache-2.0 BSD-2 BSD ISC MIT MPL-2.0 Unicode-DFS-2016"
 
 SLOT="0"
-KEYWORDS="~amd64"
 
 DOCS=(
        res/
@@ -30,6 +36,15 @@ DOCS=(
        SECURITY.md
 )
 
+src_unpack() {
+       if [[ "${PV}" = "9999" ]]; then
+               git-r3_src_unpack
+               cargo_live_src_unpack
+       else
+               cargo_src_unpack
+       fi
+}
+
 src_install() {
        einstalldocs
        cargo_src_install

Reply via email to