public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/rg/
Date: Sun,  6 Oct 2024 19:53:31 +0000 (UTC)	[thread overview]
Message-ID: <1728244291.6a7569efbb173ff46ab0666c4aaa2019e35ffcb7.xgqt@gentoo> (raw)

commit:     6a7569efbb173ff46ab0666c4aaa2019e35ffcb7
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  6 18:36:53 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun Oct  6 19:51:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a7569ef

app-emacs/rg: minor tweaks

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

 app-emacs/rg/rg-2.3.0.ebuild | 33 ++++++++++++++++++++-------------
 1 file changed, 20 insertions(+), 13 deletions(-)

diff --git a/app-emacs/rg/rg-2.3.0.ebuild b/app-emacs/rg/rg-2.3.0.ebuild
index e3cadd443056..9d3045be9e02 100644
--- a/app-emacs/rg/rg-2.3.0.ebuild
+++ b/app-emacs/rg/rg-2.3.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -8,15 +8,21 @@ inherit elisp
 DESCRIPTION="GNU Emacs search tool based on ripgrep"
 HOMEPAGE="https://rgel.readthedocs.io/
 	https://github.com/dajva/rg.el/"
-SRC_URI="https://github.com/dajva/rg.el/archive/${PV}.tar.gz
-	-> ${P}.tar.gz"
-S="${WORKDIR}"/rg.el-${PV}
+
+if [[ "${PV}" == *9999* ]] ; then
+	inherit git-r3
+
+	EGIT_REPO_URI="https://github.com/dajva/rg.el.git"
+else
+	SRC_URI="https://github.com/dajva/rg.el/archive/${PV}.tar.gz
+		-> ${P}.tar.gz"
+	S="${WORKDIR}/rg.el-${PV}"
+
+	KEYWORDS="~amd64 ~x86"
+fi
 
 LICENSE="GPL-3+"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
 
 COMMON_DEPEND="
 	app-emacs/transient
@@ -29,25 +35,26 @@ RDEPEND="
 BDEPEND="
 	${COMMON_DEPEND}
 	test? (
-		app-emacs/ert-runner
 		app-emacs/s
 		app-emacs/undercover
 	)
 "
 
+ELISP_REMOVE="
+	test/rg.el-test.el
+	test/rg-isearch.el-test.el
+"
+
 DOCS=( README.md )
-ELISP_REMOVE="test/rg.el-test.el test/rg-isearch.el-test.el"
 SITEFILE="50${PN}-gentoo.el"
 
+elisp-enable-tests ert-runner test
+
 src_compile() {
 	elisp_src_compile
 	elisp-make-autoload-file
 }
 
-src_test() {
-	ert-runner -L . -L test --reporter ert+duration --script test || die
-}
-
 src_install() {
 	elisp_src_install
 	doinfo rgel.info


             reply	other threads:[~2024-10-06 19:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-06 19:53 Maciej Barć [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-19  7:32 [gentoo-commits] repo/gentoo:master commit in: app-emacs/rg/ Arthur Zamarin
2023-08-20 20:32 Maciej Barć
2023-03-28  0:57 Maciej Barć

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1728244291.6a7569efbb173ff46ab0666c4aaa2019e35ffcb7.xgqt@gentoo \
    --to=xgqt@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox