Open dm9pZCAq opened 3 years ago
i'm currently using this:
diff --git a/app-eselect/eselect-repository/eselect-repository-9.ebuild b/app-eselect/eselect-repository/eselect-repository-9.ebuild index b0b71d29e52..e3aa6be425a 100644 --- a/app-eselect/eselect-repository/eselect-repository-9.ebuild +++ b/app-eselect/eselect-repository/eselect-repository-9.ebuild @@ -13,6 +13,7 @@ SRC_URI="https://github.com/mgorny/eselect-repository/archive/v${PV}.tar.gz -> $ LICENSE="BSD-2" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 sparc x86 ~x64-macos" +IUSE="+curl" REQUIRED_USE=${PYTHON_REQUIRED_USE} RDEPEND="${PYTHON_DEPS} @@ -20,7 +21,19 @@ RDEPEND="${PYTHON_DEPS} $(python_gen_cond_dep ' dev-python/lxml[${PYTHON_MULTI_USEDEP}] ') - net-misc/wget" + !curl? ( net-misc/wget ) + curl? ( net-misc/curl ) +" + +src_prepare() { + if use curl; then + sed -i repository.eselect.in \ + -e 's/wget -N -P/curl -LO --create-dirs --output-dir/' \ + || die + fi + + default +} src_compile() { MAKEARGS=(
but may be you can add option to do this through Makefile
I'd rather make the tool configurable via the config file.
i'm currently using this:
but may be you can add option to do this through Makefile