commit:     50d85d15175d868772d7823703684a8ae463af13
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 20 07:35:49 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu Jul 20 07:51:44 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50d85d15

net-im/sendxmpp-amm: ensure correct scala version is used

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 ...dxmpp-amm-1.1.1.ebuild => sendxmpp-amm-1.1.1-r1.ebuild} | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/net-im/sendxmpp-amm/sendxmpp-amm-1.1.1.ebuild 
b/net-im/sendxmpp-amm/sendxmpp-amm-1.1.1-r1.ebuild
similarity index 70%
rename from net-im/sendxmpp-amm/sendxmpp-amm-1.1.1.ebuild
rename to net-im/sendxmpp-amm/sendxmpp-amm-1.1.1-r1.ebuild
index faee439560d1..4f057429d997 100644
--- a/net-im/sendxmpp-amm/sendxmpp-amm-1.1.1.ebuild
+++ b/net-im/sendxmpp-amm/sendxmpp-amm-1.1.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -22,10 +22,20 @@ LICENSE="GPL-3+"
 SLOT="0"
 
 RDEPEND="
-       dev-lang/ammonite-repl-bin
+       dev-lang/ammonite-repl-bin[scala2-13]
        !net-im/sendxmpp
 "
 
+src_prepare() {
+       default
+       # Ensure that the script is using the right Scala version.
+       sed -i '1 s;^.*$;#!/usr/bin/env amm-2.13;' sendxmpp || die
+}
+
+src_compile() {
+       :
+}
+
 src_install() {
        default
        dobin sendxmpp

Reply via email to