dev-python/labelme: improve ebuild

This commit is contained in:
Universebenzene authored and 梁永祥 committed 2021-11-20 22:16:52 +08:00
1 parent 842427da88
commit 422d690c53
1 file changed
+12 -12
+12 -12
View File
@@ -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,13 +14,13 @@ 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=""
@@ -28,8 +28,8 @@ 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
}