@@ -1 +1 @@
DIST conda-package-handling-1.7.3.tar.gz 286290 BLAKE2B a1ea7bae32c42a62fd27f74b1b87dc124cb027cb48dfb8959c104863680c89d7a133ca931f54e4883ce946295e3bc1f74b07b5e0f74aee8174f9b0f7a6ed7cbd SHA512 86ce78b1a3bcaacc59d751cec09a55fa3b539a7adad3edfc6aa10665c868d14977fb045f858590f04f2f54ee9d255556494e294d23c3f61b50af34c902f7aa0c
DIST conda-package-handling-1.7.3.tar.gz 286283 BLAKE2B b26730b8df27e56e13667e944b5a2e3b323191e664261c04a4647bb10702032d46336b70e0cd3b77069f3f27d4c7f9ef04376e2ada7c1440325544e174d2eca4 SHA512 f3c3bd07ba2b725594447913029c2323c498960678888615d452abbe1e779ba3cfb9a2cbe7ea2c93aa4f0356258a3ff2be24034963aae74c348b7ad01aaa403d
@@ -1,7 +1,7 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
EAPI=8

PYTHON_COMPAT=( python3_9 )
inherit distutils-r1
@@ -14,15 +14,15 @@ LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~x86"

DEPEND="dev-python/tqdm
dev-python/six"
DEPEND="dev-python/tqdm[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]"

RDEPEND="${DEPEND}"
BDEPEND=""

distutils_enable_tests pytest

src_prepare() {
sed -i 's/archive_and_deps/archive/' setup.py
default
python_prepare_all() {
sed -i 's/archive_and_deps/archive/' setup.py || die
distutils-r1_python_prepare_all
}
@@ -15,30 +15,33 @@ 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"
dev-python/pyopenssl[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
dev-python/conda-package-handling[${PYTHON_USEDEP}]
dev-python/pycosat[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
BDEPEND=""

IUSE="+user"

distutils_enable_tests pytest

src_prepare() {
echo ${PV} > ${S}/conda/.version
default
python_prepare_all() {
echo ${PV} > conda/.version || die
distutils-r1_python_prepare_all
}

src_install() {
distutils-r1_src_install "$@"
rm "${D}/usr/bin/conda" || die
cp "${S}/conda/shell/bin/conda" "${D}/usr/bin/conda" || die
python_install() {
distutils-r1_python_install
rm "${ED}/usr/bin/conda" || die
python_doscript conda/shell/bin/conda
}

python_install_all() {
if use user ; then
mkdir -p "${D}/etc/conda/" || die
cp "${FILESDIR}/condarc" "${D}/etc/conda/condarc" || die
insinto /etc/conda
doins "${FILESDIR}/condarc"
fi
}

@@ -1,7 +1,7 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
EAPI=8

PYTHON_COMPAT=( python3_9 )
inherit distutils-r1
@@ -14,12 +14,12 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~x86"

DEPEND="dev-python/matplotlib
dev-python/numpy
dev-python/pillow
dev-python/QtPy
dev-python/termcolor
dev-python/pyyaml
dev-python/setuptools"
DEPEND="dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/QtPy[${PYTHON_USEDEP}]
dev-python/termcolor[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
BDEPEND=""
@@ -4,7 +4,7 @@
EAPI=7

PYTHON_COMPAT=(python3_9)
inherit distutils-r1
inherit desktop distutils-r1

DESCRIPTION="Image Polygonal Annotation with Python"
HOMEPAGE="https://github.com/wkentaro/labelme"
@@ -14,22 +14,22 @@ LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~x86"

DEPEND="dev-python/imgviz
dev-python/matplotlib
dev-python/numpy
dev-python/QtPy
dev-python/termcolor
dev-python/pyyaml
dev-python/setuptools"
DEPEND="dev-python/imgviz[${PYTHON_USEDEP}]
dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/QtPy[${PYTHON_USEDEP}]
dev-python/termcolor[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
BDEPEND=""

PATCHES=(
"${FILESDIR}/subElementRect.patch"
)

src_install() {
distutils-r1_src_install "$@"
install -Dm644 "labelme/icons/icon.png" "${D}/usr/share/pixmaps/labelme.png"
install -Dm644 "labelme.desktop" -t "${D}/usr/share/applications"
python_install_all() {
distutils-r1_python_install_all
newicon ${PN}{/icons/icon,}.png
domenu ${PN}.desktop
}
@@ -1,8 +1,8 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
PYTHON_COMPAT=( python3_{8,9} pypy3 )
EAPI=8
PYTHON_COMPAT=( python3_{8,9} )

inherit distutils-r1

@@ -15,13 +15,9 @@ SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
dev-python/PyQt5
dev-python/PyQt5[${PYTHON_USEDEP}]
"

DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
"

python_install_all() {
distutils-r1_python_install_all
}