diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-19 17:22:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-19 17:22:12 +0100 |
commit | b2a3508c3634488d32ec5bbe6b4365ab27185ebd (patch) | |
tree | 408b60b91a5427cc1ecb8a441c9df1f2526eeba1 /app-eselect/eselect-repository/eselect-repository-13.ebuild | |
parent | 8668c0f6c5fd1d084b8b2bdac1cfa1fcba412f65 (diff) |
gentoo auto-resync : 19:09:2022 - 17:22:11
Diffstat (limited to 'app-eselect/eselect-repository/eselect-repository-13.ebuild')
-rw-r--r-- | app-eselect/eselect-repository/eselect-repository-13.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/app-eselect/eselect-repository/eselect-repository-13.ebuild b/app-eselect/eselect-repository/eselect-repository-13.ebuild new file mode 100644 index 000000000000..3c8d049cc8ab --- /dev/null +++ b/app-eselect/eselect-repository/eselect-repository-13.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +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 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="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 +" +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 +} |