commit:     d8cc49b3c6fddaad5a329b696a2320da02782383
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  6 16:52:18 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Tue Aug  6 16:53:26 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8cc49b3

app-emacs/distel: re-add required erlang dependency

Closes: https://bugs.gentoo.org/937424
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 ...stel-4.1.1-r1.ebuild => distel-4.1.1-r2.ebuild} | 30 ++++++++++++++++------
 1 file changed, 22 insertions(+), 8 deletions(-)

diff --git a/app-emacs/distel/distel-4.1.1-r1.ebuild 
b/app-emacs/distel/distel-4.1.1-r2.ebuild
similarity index 70%
rename from app-emacs/distel/distel-4.1.1-r1.ebuild
rename to app-emacs/distel/distel-4.1.1-r2.ebuild
index d66a6d6248cd..312c956d10f5 100644
--- a/app-emacs/distel/distel-4.1.1-r1.ebuild
+++ b/app-emacs/distel/distel-4.1.1-r2.ebuild
@@ -1,27 +1,41 @@
 # Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 inherit elisp
 
 DESCRIPTION="Distributed Emacs Lisp for Erlang"
 HOMEPAGE="https://massemanet.github.io/distel/
        https://www.emacswiki.org/emacs/DistributedEmacsLisp";
-SRC_URI="https://github.com/massemanet/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+if [[ "${PV}" == *9999* ]] ; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/massemanet/${PN}.git";
+else
+       SRC_URI="https://github.com/massemanet/${PN}/archive/${PV}.tar.gz
+               -> ${P}.tar.gz"
+
+       KEYWORDS="~amd64 ~x86"
+fi
 
 # "New BSD License" according to https://code.google.com/p/distel/
 # "MIT" according to https://github.com/massemanet/distel
 LICENSE="BSD MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
 IUSE="doc"
 
-RDEPEND="|| (
-       app-emacs/erlang-mode
-       dev-lang/erlang[emacs(-)]
-)"
-BDEPEND="${RDEPEND}"
+RDEPEND="
+       dev-lang/erlang
+       || (
+               app-emacs/erlang-mode
+               dev-lang/erlang[emacs(-)]
+       )
+"
+BDEPEND="
+       ${RDEPEND}
+"
 
 SITEFILE="50${PN}-gentoo.el"
 

Reply via email to