dev-python/conda:OS-agnostic, system-level binary package manager and ecosystem (#976)

Signed-off-by: Yachen Wang <OriPoin@outlook.com>
This commit is contained in:
Yachen authored and GitHub committed 2021-06-08 16:43:53 +08:00
1 parent 91f310dc53
commit 157a1394f2
4 files changed
+71

No files matched your search

+1
View File
@@ -0,0 +1 @@
DIST conda-4.10.1.tar.gz 20931611 SHA512 75796b580abcc91c449461302cecb98cd067285ef03d6630c882177b0b0f8f9df56101480943d5a14855ecfca10c5ea7dcb57c569a3ff538add713f82772a6f0
+49
View File
@@ -0,0 +1,49 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_9 )
inherit distutils-r1
DESCRIPTION="OS-agnostic, system-level binary package manager and ecosystem"
HOMEPAGE="https://conda.io/"
SRC_URI="https://github.com/conda/conda/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~x86"
DEPEND="dev-vcs/git
dev-python/pyopenssl
dev-python/requests
dev-python/ruamel-yaml
dev-python/conda-package-handling
dev-python/pycosat"
RDEPEND="${DEPEND}"
BDEPEND=""
IUSE="+user"
distutils_enable_tests pytest
src_prepare() {
echo ${PV} > ${S}/conda/.version
default
}
src_install() {
distutils-r1_src_install "$@"
rm "${D}/usr/bin/conda" || die
cp "${S}/conda/shell/bin/conda" "${D}/usr/bin/conda" || die
if use user ; then
mkdir -p "${D}/etc/conda/" || die
cp "${FILESDIR}/condarc" "${D}/etc/conda/condarc" || die
fi
}
pkg_postinst() {
elog "Initialize conda for shell interaction, "
elog "run 'conda init shells' "
elog "Currently compatible shells are {bash, fish, powershell, tcsh, xonsh, zsh}"
}
+7
View File
@@ -0,0 +1,7 @@
pkgs_dirs:
- ~/.conda/pkgs
envs_dirs:
- ~/.conda/envs
allow_softlinks: False
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">conda/conda</remote-id>
</upstream>
<maintainer type="person">
<email>OriPoin@outlook.com</email>
<name>Yachen Wang</name>
</maintainer>
<use>
<flag name="user">use user's home directory as default pkgs and envs prefix</flag>
</use>
</pkgmetadata>