public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Matt Jolly" <kangie@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-repository/
Date: Sun,  8 Dec 2024 23:34:36 +0000 (UTC)	[thread overview]
Message-ID: <1733700841.141153ee9444becebe8b512ef043e258436e8ab5.kangie@gentoo> (raw)

commit:     141153ee9444becebe8b512ef043e258436e8ab5
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 30 04:00:57 2024 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Sun Dec  8 23:34:01 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=141153ee

app-eselect/eselect-repository: add 'git' and 'mercurial' USE.

We have documentation in the wiki for using eselect-repository to (e.g.)
enable syncing ::gentoo via Git, however nothing actually ensures that
appropriate sync types are available.

After discussion with mgorny added the two USE flags, with 'git' being
enabled by default.

Closes: https://github.com/gentoo/gentoo/pull/37764
Closes: https://github.com/gentoo/gentoo/pull/39631
Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>

 .../eselect-repository-14-r1.ebuild                | 60 ++++++++++++++++++++++
 app-eselect/eselect-repository/metadata.xml        |  3 ++
 2 files changed, 63 insertions(+)

diff --git a/app-eselect/eselect-repository/eselect-repository-14-r1.ebuild b/app-eselect/eselect-repository/eselect-repository-14-r1.ebuild
new file mode 100644
index 000000000000..e4febaebdadd
--- /dev/null
+++ b/app-eselect/eselect-repository/eselect-repository-14-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+inherit python-single-r1
+
+DESCRIPTION="Manage repos.conf via eselect"
+HOMEPAGE="https://github.com/projg2/eselect-repository/"
+SRC_URI="
+	https://github.com/projg2/eselect-repository/archive/v${PV}.tar.gz
+		-> ${P}.tar.gz
+"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~arm64-macos ~x64-macos"
+IUSE="+git mercurial test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+RDEPEND="
+	${PYTHON_DEPS}
+	app-admin/eselect
+	$(python_gen_cond_dep '
+		dev-python/lxml[${PYTHON_USEDEP}]
+	')
+	net-misc/wget
+	git? ( dev-vcs/git )
+	mercurial? ( dev-vcs/mercurial )
+"
+BDEPEND="
+	test? (
+		$(python_gen_cond_dep '
+			dev-python/pytest[${PYTHON_USEDEP}]
+		')
+	)
+"
+
+src_compile() {
+	MAKEARGS=(
+		PREFIX="${EPREFIX}/usr"
+		SYSCONFDIR="${EPREFIX}/etc"
+		SHAREDSTATEDIR="${EPREFIX}/var"
+		ESELECTDIR="${EPREFIX}/usr/share/eselect/modules"
+	)
+
+	emake "${MAKEARGS[@]}"
+	python_fix_shebang eselect-repo-helper
+}
+
+src_test() {
+	epytest
+}
+
+src_install() {
+	emake "${MAKEARGS[@]}" DESTDIR="${D}" install
+	einstalldocs
+}

diff --git a/app-eselect/eselect-repository/metadata.xml b/app-eselect/eselect-repository/metadata.xml
index affa96ed287a..889aeb82b1a5 100644
--- a/app-eselect/eselect-repository/metadata.xml
+++ b/app-eselect/eselect-repository/metadata.xml
@@ -5,6 +5,9 @@
 		<email>mgorny@gentoo.org</email>
 		<name>Michał Górny</name>
 	</maintainer>
+	<use>
+		<flag name="mercurial">Support mercurial sync-type.</flag>
+	</use>
 	<upstream>
 		<remote-id type="github">projg2/eselect-repository</remote-id>
 	</upstream>


             reply	other threads:[~2024-12-08 23:34 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-08 23:34 Matt Jolly [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-29 11:36 [gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-repository/ Michał Górny
2023-11-30 21:54 James Le Cuirot
2023-11-02 12:58 Michał Górny
2023-11-01 20:37 Arthur Zamarin
2023-09-25  2:55 Michał Górny
2023-08-01 13:02 Benda XU
2023-05-30  0:27 Sam James
2022-12-31 12:37 Michał Górny
2022-12-31 12:10 Arthur Zamarin
2022-09-19 12:01 Michał Górny
2022-07-28  8:45 Michał Górny
2022-07-28  8:28 Sam James
2022-07-09  6:02 WANG Xuerui
2022-02-02  6:45 Michał Górny
2022-02-02  6:27 Sam James
2022-01-13  7:59 Michał Górny
2022-01-11 21:00 Georgy Yakovlev
2022-01-11 21:00 Georgy Yakovlev
2021-08-01  8:17 Michał Górny
2021-07-31 22:23 Sam James
2021-06-06 17:08 Michał Górny
2021-05-14 22:00 Michał Górny
2021-05-14 17:22 Sam James
2021-04-07 23:11 Michał Górny
2021-04-07 22:47 Sam James
2021-04-07  9:23 Michał Górny
2021-04-05 20:28 Andreas K. Hüttel
2021-03-29 21:00 John Helmert III
2021-02-28 21:30 Michał Górny
2021-02-23 18:13 Sergei Trofimovich
2021-02-20 11:02 Sergei Trofimovich
2020-11-30 13:48 Sam James
2020-11-06  8:01 Michał Górny
2020-11-06  6:01 Sam James
2020-10-05  3:05 Michał Górny
2020-09-30  1:49 Sam James
2020-09-11  9:31 Michał Górny
2020-07-23 11:11 Kent Fredric
2019-12-08 10:20 Michał Górny
2019-12-08 10:20 Michał Górny
2019-12-08 10:20 Michał Górny
2019-09-08  6:43 Michał Górny
2019-08-02  8:14 Mikle Kolyada
2019-07-31 11:03 Agostino Sarubbo
2019-07-31 10:59 Agostino Sarubbo
2019-05-29 12:53 Michał Górny
2019-04-07  7:27 Michał Górny
2019-04-07  7:27 Michał Górny
2019-03-10 15:25 Mikle Kolyada
2019-03-10 15:25 Mikle Kolyada
2018-10-15 19:37 Michał Górny
2018-09-30 18:13 Michał Górny
2018-09-21 11:09 Mikle Kolyada
2018-09-19 19:47 Mikle Kolyada
2018-09-19 19:45 Mikle Kolyada
2018-09-11  8:18 Michał Górny
2018-09-07 13:46 Mikle Kolyada
2018-07-20 22:08 Michał Górny
2018-06-02 18:40 Michał Górny
2018-05-09  8:20 Michał Górny
2018-05-09  7:34 Michał Górny
2018-05-09  7:34 Michał Górny
2018-04-15 16:54 Mikle Kolyada
2018-04-11 20:43 Thomas Deutschmann
2018-03-26 19:45 Mikle Kolyada
2018-03-26 16:14 Michał Górny
2018-03-23 13:39 Michał Górny
2018-03-15 15:32 Mikle Kolyada
2018-01-26  1:08 Mikle Kolyada
2017-12-25 11:42 Markus Meier
2017-11-28 19:34 Michał Górny
2017-11-07 16:22 Michał Górny
2017-09-22  4:24 Michał Górny
2017-09-09 11:02 Michał Górny
2017-09-09  9:59 Michał Górny

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=1733700841.141153ee9444becebe8b512ef043e258436e8ab5.kangie@gentoo \
    --to=kangie@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