commit:     78bf2c3b3ba99a2c6c99a29695db689ae7bad04a
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 30 20:38:24 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sat Mar 30 23:09:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78bf2c3b

app-emacs/mastodon: support live

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-emacs/mastodon/mastodon-1.0.18.ebuild | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/app-emacs/mastodon/mastodon-1.0.18.ebuild 
b/app-emacs/mastodon/mastodon-1.0.18.ebuild
index 99625fea4848..38f5552d3c9f 100644
--- a/app-emacs/mastodon/mastodon-1.0.18.ebuild
+++ b/app-emacs/mastodon/mastodon-1.0.18.ebuild
@@ -9,19 +9,29 @@ inherit elisp
 
 DESCRIPTION="Emacs client for Mastodon, federated microblogging social network"
 HOMEPAGE="https://codeberg.org/martianh/mastodon.el/";
-SRC_URI="https://codeberg.org/martianh/${PN}.el/archive/${PV}.tar.gz
-       -> ${P}.tar.gz"
-S="${WORKDIR}/${PN}.el/lisp"
+
+if [[ "${PV}" == *9999* ]] ; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://codeberg.org/martianh/mastodon.el.git";
+else
+       SRC_URI="https://codeberg.org/martianh/${PN}.el/archive/${PV}.tar.gz
+               -> ${P}.tar.gz"
+       S="${WORKDIR}/${PN}.el/lisp"
+
+       KEYWORDS="~amd64 ~x86"
+fi
 
 LICENSE="GPL-3+"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
 
 RDEPEND="
        app-emacs/persist
        app-emacs/request
 "
-BDEPEND="${RDEPEND}"
+BDEPEND="
+       ${RDEPEND}
+"
 
 DOCS=( ../README.org )
 ELISP_TEXINFO="../${PN}.texi"

Reply via email to