Files
gentoo/app-eselect/eselect-repository/eselect-repository-15.ebuild
T
Michał Górny 5a68316970 app-eselect/eselect-repository: Update homepage
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2026-04-05 08:55:49 +02:00

62 lines
1.2 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
inherit python-single-r1
DESCRIPTION="Manage repos.conf via eselect"
HOMEPAGE="https://github.com/gentoo/eselect-repository/"
SRC_URI="
https://github.com/gentoo/eselect-repository/archive/v${PV}.tar.gz
-> ${P}.tar.gz
"
LICENSE="GPL-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() {
local EPYTEST_PLUGINS=()
epytest
}
src_install() {
emake "${MAKEARGS[@]}" DESTDIR="${D}" install
einstalldocs
}